|
||||||||||
| 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
org.apache.felix.bundleplugin.ManifestPlugin
org.apache.felix.bundleplugin.BundleAllPlugin
public class BundleAllPlugin
Create OSGi bundles from all dependencies in the Maven project
| Field Summary |
|---|
| Fields inherited from class org.apache.felix.bundleplugin.BundlePlugin |
|---|
classifier, excludeDependencies, manifestLocation, unpackBundle |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
BundleAllPlugin()
|
|
| Method Summary | |
|---|---|
protected BundleInfo |
bundle(org.apache.maven.project.MavenProject project)
Bundle one project only without building its childre |
protected BundleInfo |
bundleAll(org.apache.maven.project.MavenProject project,
int maxDepth)
Bundle a project and its transitive dependencies up to some depth level |
void |
execute()
|
protected java.lang.String |
getBundleName(org.apache.maven.project.MavenProject project)
TODO this should return getMaven2Osgi().getBundleFileName( project.getArtifact() ) |
protected java.io.File |
getFile(org.apache.maven.artifact.Artifact artifact)
Use previously built bundles when available. |
protected java.io.File |
getOutputFile(org.apache.maven.artifact.Artifact artifact)
|
protected void |
logDuplicatedPackages(BundleInfo bundleInfo)
Log what packages are exported in more than one bundle |
protected boolean |
snapshotMatch(org.apache.maven.artifact.Artifact artifact,
java.lang.String bundleName)
Check that the bundleName provided correspond to the artifact provided. |
| Methods inherited from class org.apache.felix.bundleplugin.ManifestPlugin |
|---|
execute, getAnalyzer, getAnalyzer, getManifest, getManifest, writeManifest |
| Methods inherited from class org.apache.felix.bundleplugin.BundlePlugin |
|---|
buildOSGiBundle, convertVersionToOsgi, dumpClasspath, dumpInstructions, dumpManifest, execute, getBuildDirectory, getClasspath, getDefaultProperties, getEmbeddableArtifacts, getMaven2OsgiConverter, getOutputDirectory, getProject, includeMavenResources, mergeMavenManifest, removeTagFromInstruction, setBasedir, setBuildDirectory, setMaven2OsgiConverter, setOutputDirectory, transformDirectives |
| 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 |
| Constructor Detail |
|---|
public BundleAllPlugin()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class BundlePluginorg.apache.maven.plugin.MojoExecutionExceptionMojo.execute()
protected BundleInfo bundleAll(org.apache.maven.project.MavenProject project,
int maxDepth)
throws org.apache.maven.plugin.MojoExecutionException
project - maxDepth - how deep to process the dependency tree
org.apache.maven.plugin.MojoExecutionException
protected BundleInfo bundle(org.apache.maven.project.MavenProject project)
throws org.apache.maven.plugin.MojoExecutionException
project -
org.apache.maven.plugin.MojoExecutionExceptionprotected java.lang.String getBundleName(org.apache.maven.project.MavenProject project)
BundlePlugin
getBundleName in class BundlePluginprotected java.io.File getFile(org.apache.maven.artifact.Artifact artifact)
getFile in class BundlePluginartifact -
protected boolean snapshotMatch(org.apache.maven.artifact.Artifact artifact,
java.lang.String bundleName)
artifact - artifact with snapshot versionbundleName - bundle file name
protected java.io.File getOutputFile(org.apache.maven.artifact.Artifact artifact)
protected void logDuplicatedPackages(BundleInfo bundleInfo)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||