|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.felix.bundleplugin.BundlePlugin
public class BundlePlugin
Create an OSGi bundle from Maven project
Field Summary | |
---|---|
protected java.lang.String |
classifier
Classifier type of the bundle to be installed. |
protected java.io.File |
dumpClasspath
File where the BND class-path will be dumped |
protected java.io.File |
dumpInstructions
File where the BND instructions will be dumped |
protected java.lang.String |
excludeDependencies
Comma separated list of artifactIds to exclude from the dependency classpath passed to BND (use "true" to exclude everything) |
protected java.io.File |
manifestLocation
Directory where the manifest will be written |
protected java.util.List |
supportedProjectTypes
Project types which this plugin supports. |
protected boolean |
unpackBundle
When true, unpack the bundle contents to the outputDirectory |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
BundlePlugin()
|
Method Summary | |
---|---|
protected void |
addMavenInstructions(org.apache.maven.project.MavenProject currentProject,
aQute.lib.osgi.Builder builder)
|
protected aQute.lib.osgi.Builder |
buildOSGiBundle(org.apache.maven.project.MavenProject currentProject,
java.util.Map originalInstructions,
java.util.Properties properties,
aQute.lib.osgi.Jar[] classpath)
|
protected java.lang.String |
convertVersionToOsgi(java.lang.String version)
Convert a Maven version into an OSGi compliant version |
protected static java.lang.StringBuilder |
dumpClasspath(java.util.List classpath,
java.lang.StringBuilder buf)
|
protected static java.lang.StringBuilder |
dumpInstructions(java.util.Properties properties,
java.lang.StringBuilder buf)
|
protected static java.lang.StringBuilder |
dumpManifest(java.util.jar.Manifest manifest,
java.lang.StringBuilder buf)
|
void |
execute()
|
protected void |
execute(org.apache.maven.project.MavenProject currentProject,
java.util.Map originalInstructions,
java.util.Properties properties)
|
protected void |
execute(org.apache.maven.project.MavenProject currentProject,
java.util.Map originalInstructions,
java.util.Properties properties,
aQute.lib.osgi.Jar[] classpath)
|
protected static java.io.File |
getBase(org.apache.maven.project.MavenProject currentProject)
|
protected java.lang.String |
getBuildDirectory()
|
protected java.lang.String |
getBundleName(org.apache.maven.project.MavenProject currentProject)
TODO this should return getMaven2Osgi().getBundleFileName( project.getArtifact() ) |
protected aQute.lib.osgi.Jar[] |
getClasspath(org.apache.maven.project.MavenProject currentProject)
|
protected java.util.Properties |
getDefaultProperties(org.apache.maven.project.MavenProject currentProject)
|
protected java.util.Collection |
getEmbeddableArtifacts(org.apache.maven.project.MavenProject currentProject,
aQute.lib.osgi.Analyzer analyzer)
|
protected java.io.File |
getFile(org.apache.maven.artifact.Artifact artifact)
Get the file for an Artifact |
protected Maven2OsgiConverter |
getMaven2OsgiConverter()
|
protected static java.lang.String |
getMavenResourcePaths(org.apache.maven.project.MavenProject currentProject)
|
protected java.util.Set |
getOptionalPackages(org.apache.maven.project.MavenProject currentProject)
|
protected aQute.lib.osgi.Builder |
getOSGiBuilder(org.apache.maven.project.MavenProject currentProject,
java.util.Map originalInstructions,
java.util.Properties properties,
aQute.lib.osgi.Jar[] classpath)
|
protected java.io.File |
getOutputDirectory()
|
protected org.apache.maven.project.MavenProject |
getProject()
|
protected static void |
includeMavenResources(org.apache.maven.project.MavenProject currentProject,
aQute.lib.osgi.Analyzer analyzer,
org.apache.maven.plugin.logging.Log log)
|
protected boolean |
isTransitivelyOptional(java.util.HashSet optionalArtifactIds,
org.apache.maven.artifact.Artifact artifact)
Check to see if any dependency along the dependency trail of the artifact is optional. |
protected void |
mergeMavenManifest(org.apache.maven.project.MavenProject currentProject,
aQute.lib.osgi.Builder builder)
|
protected static java.lang.String |
removeTagFromInstruction(java.lang.String instruction,
java.lang.String tag)
|
protected boolean |
reportErrors(java.lang.String prefix,
aQute.lib.osgi.Analyzer analyzer)
|
protected void |
setBuildDirectory(java.lang.String _buildirectory)
|
protected void |
setMaven2OsgiConverter(Maven2OsgiConverter maven2OsgiConverter)
|
protected void |
setOutputDirectory(java.io.File _outputDirectory)
|
protected static java.util.Map |
transformDirectives(java.util.Map originalInstructions)
|
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.File manifestLocation
protected java.io.File dumpInstructions
protected java.io.File dumpClasspath
protected boolean unpackBundle
protected java.lang.String excludeDependencies
protected java.lang.String classifier
protected java.util.List supportedProjectTypes
Constructor Detail |
---|
public BundlePlugin()
Method Detail |
---|
protected Maven2OsgiConverter getMaven2OsgiConverter()
protected void setMaven2OsgiConverter(Maven2OsgiConverter maven2OsgiConverter)
protected org.apache.maven.project.MavenProject getProject()
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
Mojo.execute()
protected void execute(org.apache.maven.project.MavenProject currentProject, java.util.Map originalInstructions, java.util.Properties properties) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected static java.util.Map transformDirectives(java.util.Map originalInstructions)
protected boolean reportErrors(java.lang.String prefix, aQute.lib.osgi.Analyzer analyzer)
protected void execute(org.apache.maven.project.MavenProject currentProject, java.util.Map originalInstructions, java.util.Properties properties, aQute.lib.osgi.Jar[] classpath) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected aQute.lib.osgi.Builder getOSGiBuilder(org.apache.maven.project.MavenProject currentProject, java.util.Map originalInstructions, java.util.Properties properties, aQute.lib.osgi.Jar[] classpath) throws java.lang.Exception
java.lang.Exception
protected void addMavenInstructions(org.apache.maven.project.MavenProject currentProject, aQute.lib.osgi.Builder builder) throws java.lang.Exception
java.lang.Exception
protected aQute.lib.osgi.Builder buildOSGiBundle(org.apache.maven.project.MavenProject currentProject, java.util.Map originalInstructions, java.util.Properties properties, aQute.lib.osgi.Jar[] classpath) throws java.lang.Exception
java.lang.Exception
protected static java.lang.StringBuilder dumpInstructions(java.util.Properties properties, java.lang.StringBuilder buf)
protected static java.lang.StringBuilder dumpClasspath(java.util.List classpath, java.lang.StringBuilder buf)
protected static java.lang.StringBuilder dumpManifest(java.util.jar.Manifest manifest, java.lang.StringBuilder buf)
protected static void includeMavenResources(org.apache.maven.project.MavenProject currentProject, aQute.lib.osgi.Analyzer analyzer, org.apache.maven.plugin.logging.Log log)
protected void mergeMavenManifest(org.apache.maven.project.MavenProject currentProject, aQute.lib.osgi.Builder builder) throws java.lang.Exception
java.lang.Exception
protected java.util.Set getOptionalPackages(org.apache.maven.project.MavenProject currentProject) throws java.io.IOException, org.apache.maven.plugin.MojoExecutionException
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
protected boolean isTransitivelyOptional(java.util.HashSet optionalArtifactIds, org.apache.maven.artifact.Artifact artifact)
artifact
- protected static java.lang.String removeTagFromInstruction(java.lang.String instruction, java.lang.String tag)
protected aQute.lib.osgi.Jar[] getClasspath(org.apache.maven.project.MavenProject currentProject) throws java.io.IOException, org.apache.maven.plugin.MojoExecutionException
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
protected java.io.File getFile(org.apache.maven.artifact.Artifact artifact)
artifact
- protected java.lang.String convertVersionToOsgi(java.lang.String version)
version
- Maven version
protected java.lang.String getBundleName(org.apache.maven.project.MavenProject currentProject)
protected java.lang.String getBuildDirectory()
protected void setBuildDirectory(java.lang.String _buildirectory)
protected java.util.Properties getDefaultProperties(org.apache.maven.project.MavenProject currentProject)
protected static java.io.File getBase(org.apache.maven.project.MavenProject currentProject)
protected java.io.File getOutputDirectory()
protected void setOutputDirectory(java.io.File _outputDirectory)
protected static java.lang.String getMavenResourcePaths(org.apache.maven.project.MavenProject currentProject)
protected java.util.Collection getEmbeddableArtifacts(org.apache.maven.project.MavenProject currentProject, aQute.lib.osgi.Analyzer analyzer) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |