@Mojo(name="assembly",
defaultPhase=PACKAGE,
requiresDependencyResolution=RUNTIME,
threadSafe=true)
public class AssemblyMojo
extends MojoSupport
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
config |
protected int |
defaultStartLevel
default start level for bundles in features that don't specify it.
|
protected List<String> |
featureRepositories
Additional feature repositories
|
protected File |
featuresCfgFile
Features configuration file (etc/org.apache.karaf.features.cfg).
|
protected String |
framework
Specify which framework to use
(one of framework, framework-logback, static-framework, static-framework-logback).
|
protected boolean |
ignoreDependencyFlag
Ignore the dependency attribute (dependency="[true|false]") on bundle
|
protected boolean |
includeBuildOutputDirectory
Include project build output directory in the assembly
|
protected boolean |
installAllFeaturesByDefault |
protected String |
javase
Specify the version of Java SE to be assumed for osgi.ee.
|
protected org.apache.karaf.profile.assembly.Builder.KarafVersion |
karafVersion |
protected List<String> |
libraries |
protected List<String> |
pidsToExtract
Glob specifying which configuration pids in the selected boot features
should be extracted to the etc directory.
|
protected String |
propertyFileEdits
Specify an XML file that instructs this goal to apply edits to
one or more standard Karaf property files.
|
protected File |
sourceDirectory
Base directory used to overwrite resources in generated assembly after the build (resource directory).
|
protected File |
startupPropertiesFile
startup.properties file.
|
protected Map<String,String> |
system |
protected File |
systemDirectory
Directory used during build to construction the Karaf system repository.
|
protected Map<String,String> |
translatedUrls
Specify a set of translated urls to use instead of downloading the artifacts
from their original locations.
|
protected boolean |
useReferenceUrls
Use reference: style urls in startup.properties
|
protected File |
workDirectory
Base directory used to copy the resources during the build (working directory).
|
artifactMetadataSource, artifactResolver, container, factory, localRepo, mavenSession, project, projectBuilder, projectHelper, remoteRepos| Constructor and Description |
|---|
AssemblyMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute() |
void |
execute() |
copy, createManagedVersionMap, getLocalRepoUrl, getProject, getProjectHelper, getWorkDirectory, resourceToArtifact, setMavenSession, translateFromMaven@Parameter(defaultValue="${project.basedir}/src/main/resources/assembly")
protected File sourceDirectory
@Parameter(defaultValue="${project.build.directory}/assembly")
protected File workDirectory
@Parameter(defaultValue="${project.build.directory}/assembly/etc/org.apache.karaf.features.cfg")
protected File featuresCfgFile
@Parameter(defaultValue="${project.build.directory}/assembly/etc/startup.properties")
protected File startupPropertiesFile
@Parameter(defaultValue="${project.build.directory}/assembly/system")
protected File systemDirectory
@Parameter protected int defaultStartLevel
@Parameter(defaultValue="false") protected boolean ignoreDependencyFlag
@Parameter protected List<String> featureRepositories
@Parameter(defaultValue="false") protected boolean useReferenceUrls
@Parameter(defaultValue="true") protected boolean includeBuildOutputDirectory
@Parameter protected boolean installAllFeaturesByDefault
@Parameter protected org.apache.karaf.profile.assembly.Builder.KarafVersion karafVersion
@Parameter(defaultValue="1.8") protected String javase
@Parameter protected String framework
@Parameter(defaultValue="${project.basedir}/src/main/karaf/assembly-property-edits.xml")
protected String propertyFileEdits
<property-edits xmlns="http://karaf.apache.org/tools/property-edits/1.0.0">
<edits>
<edit>
<file>config.properties</file>
<operation>put</operation>
<key>karaf.framework</key>
<value>equinox</value>
</edit>
<edit>
<file>config.properties</file>
<operation>extend</operation>
<key>org.osgi.framework.system.capabilities</key>
<value>my-magic-capability</value>
</edit>
<edit>
<file>config.properties</file>
<operation prepend='true'>extend</operation>
<key>some-other-list</key>
<value>my-value-goes-first</value>
</edit>
</edits>
</property-edits>
@Parameter protected List<String> pidsToExtract
@Parameter protected Map<String,String> translatedUrls
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.