org.apache.felix.bundleplugin
public class BundlePlugin extends AbstractMojo
UNKNOWN: bundle package test build an OSGi bundle jar
| Field Summary | |
|---|---|
| protected String | classifier
Classifier type of the bundle to be installed. |
| protected String | excludeDependencies
Comma separated list of artifactIds to exclude from the dependency classpath passed to BND (use "true" to exclude everything)
|
| protected File | manifestLocation
Directory where the manifest will be written
|
| protected boolean | unpackBundle
When true, unpack the bundle contents to the outputDirectory
|
| Method Summary | |
|---|---|
| protected Builder | buildOSGiBundle(MavenProject currentProject, Map originalInstructions, Properties properties, Jar[] classpath) |
| protected String | convertVersionToOsgi(String version)
Convert a Maven version into an OSGi compliant version
|
| protected static void | dumpClasspath(String title, List classpath, Log log) |
| protected static void | dumpInstructions(String title, Properties properties, Log log) |
| protected static void | dumpManifest(String title, Manifest manifest, Log log) |
| void | execute() |
| protected void | execute(MavenProject currentProject, Map originalInstructions, Properties properties) |
| protected void | execute(MavenProject currentProject, Map originalInstructions, Properties properties, Jar[] classpath) |
| protected String | getBuildDirectory() |
| protected String | getBundleName(MavenProject currentProject)
TODO this should return getMaven2Osgi().getBundleFileName( project.getArtifact() ) |
| protected Jar[] | getClasspath(MavenProject currentProject) |
| protected Properties | getDefaultProperties(MavenProject currentProject) |
| protected Collection | getEmbeddableArtifacts(MavenProject project, Analyzer analyzer) |
| protected File | getFile(Artifact artifact)
Get the file for an Artifact
|
| protected Maven2OsgiConverter | getMaven2OsgiConverter() |
| protected File | getOutputDirectory() |
| protected MavenProject | getProject() |
| protected static void | includeMavenResources(MavenProject currentProject, Analyzer analyzer, Log log) |
| protected void | mergeMavenManifest(MavenProject currentProject, Jar jar, String[] removeHeaders, Log log) |
| protected static String | removeTagFromInstruction(String instruction, String tag) |
| protected void | setBasedir(File _basedir) |
| protected void | setBuildDirectory(String _buildirectory) |
| protected void | setMaven2OsgiConverter(Maven2OsgiConverter maven2OsgiConverter) |
| protected void | setOutputDirectory(File _outputDirectory) |
| protected static Map | transformDirectives(Map originalInstructions) |
UNKNOWN: expression="${classifier}"
UNKNOWN: expression="${excludeDependencies}"
UNKNOWN: expression="${manifestLocation}" default-value="${project.build.outputDirectory}/META-INF"
UNKNOWN: expression="${unpackBundle}"
Parameters: version Maven version
Returns: the OSGi version
See Also: org.apache.maven.plugin.AbstractMojo#execute()
Parameters: artifact