|
||||||||||
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 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 |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
BundlePlugin()
|
Method Summary | |
---|---|
protected aQute.lib.osgi.Builder |
buildOSGiBundle(org.apache.maven.project.MavenProject currentProject,
Map originalInstructions,
Properties properties,
aQute.lib.osgi.Jar[] classpath)
|
protected String |
convertVersionToOsgi(String version)
Convert a Maven version into an OSGi compliant version |
protected static void |
dumpClasspath(String title,
List classpath,
org.apache.maven.plugin.logging.Log log)
|
protected static void |
dumpInstructions(String title,
Properties properties,
org.apache.maven.plugin.logging.Log log)
|
protected static void |
dumpManifest(String title,
Manifest manifest,
org.apache.maven.plugin.logging.Log log)
|
void |
execute()
|
protected void |
execute(org.apache.maven.project.MavenProject currentProject,
Map originalInstructions,
Properties properties)
|
protected void |
execute(org.apache.maven.project.MavenProject currentProject,
Map originalInstructions,
Properties properties,
aQute.lib.osgi.Jar[] classpath)
|
protected String |
getBuildDirectory()
|
protected 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 Properties |
getDefaultProperties(org.apache.maven.project.MavenProject currentProject)
|
protected Collection |
getEmbeddableArtifacts(org.apache.maven.project.MavenProject project,
aQute.lib.osgi.Analyzer analyzer)
|
protected File |
getFile(org.apache.maven.artifact.Artifact artifact)
Get the file for an Artifact |
protected Maven2OsgiConverter |
getMaven2OsgiConverter()
|
protected 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 void |
mergeMavenManifest(org.apache.maven.project.MavenProject currentProject,
aQute.lib.osgi.Jar jar,
String[] removeHeaders,
org.apache.maven.plugin.logging.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)
|
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 File manifestLocation
protected boolean unpackBundle
protected String excludeDependencies
protected String classifier
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, Map originalInstructions, Properties properties) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected static Map transformDirectives(Map originalInstructions)
protected void execute(org.apache.maven.project.MavenProject currentProject, Map originalInstructions, Properties properties, aQute.lib.osgi.Jar[] classpath) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected aQute.lib.osgi.Builder buildOSGiBundle(org.apache.maven.project.MavenProject currentProject, Map originalInstructions, Properties properties, aQute.lib.osgi.Jar[] classpath) throws Exception
Exception
protected static void dumpInstructions(String title, Properties properties, org.apache.maven.plugin.logging.Log log)
protected static void dumpClasspath(String title, List classpath, org.apache.maven.plugin.logging.Log log)
protected static void dumpManifest(String title, Manifest manifest, org.apache.maven.plugin.logging.Log log)
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.Jar jar, String[] removeHeaders, org.apache.maven.plugin.logging.Log log) throws IOException
IOException
protected static String removeTagFromInstruction(String instruction, String tag)
protected aQute.lib.osgi.Jar[] getClasspath(org.apache.maven.project.MavenProject currentProject) throws IOException, org.apache.maven.plugin.MojoExecutionException
IOException
org.apache.maven.plugin.MojoExecutionException
protected File getFile(org.apache.maven.artifact.Artifact artifact)
artifact
- protected String convertVersionToOsgi(String version)
version
- Maven version
protected String getBundleName(org.apache.maven.project.MavenProject currentProject)
protected String getBuildDirectory()
protected void setBuildDirectory(String _buildirectory)
protected Properties getDefaultProperties(org.apache.maven.project.MavenProject currentProject)
protected void setBasedir(File _basedir)
protected File getOutputDirectory()
protected void setOutputDirectory(File _outputDirectory)
protected Collection getEmbeddableArtifacts(org.apache.maven.project.MavenProject project, 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 |