org.apache.felix.bundleplugin

Class BundleAllPlugin

public class BundleAllPlugin extends ManifestPlugin

Create OSGi bundles from all dependencies in the Maven project

UNKNOWN: bundleall package test build an OSGi bundle jar for all transitive dependencies

Method Summary
protected BundleInfobundle(MavenProject project)
Bundle one project only without building its childre
protected BundleInfobundleAll(MavenProject project, int maxDepth)
Bundle a project and its transitive dependencies up to some depth level
voidexecute()
protected StringgetBundleName(MavenProject project)
protected FilegetFile(Artifact artifact)
Use previously built bundles when available.
protected FilegetOutputFile(Artifact artifact)
protected voidlogDuplicatedPackages(BundleInfo bundleInfo)
Log what packages are exported in more than one bundle
protected booleansnapshotMatch(Artifact artifact, String bundleName)
Check that the bundleName provided correspond to the artifact provided.

Method Detail

bundle

protected BundleInfo bundle(MavenProject project)
Bundle one project only without building its childre

Parameters: project

Throws: MojoExecutionException

bundleAll

protected BundleInfo bundleAll(MavenProject project, int maxDepth)
Bundle a project and its transitive dependencies up to some depth level

Parameters: project maxDepth how deep to process the dependency tree

Throws: MojoExecutionException

execute

public void execute()

getBundleName

protected String getBundleName(MavenProject project)

getFile

protected File getFile(Artifact artifact)
Use previously built bundles when available.

Parameters: artifact

getOutputFile

protected File getOutputFile(Artifact artifact)

logDuplicatedPackages

protected void logDuplicatedPackages(BundleInfo bundleInfo)
Log what packages are exported in more than one bundle

snapshotMatch

protected boolean snapshotMatch(Artifact artifact, String bundleName)
Check that the bundleName provided correspond to the artifact provided. Used to determine when the bundle name is a timestamped snapshot and the artifact is a snapshot not timestamped.

Parameters: artifact artifact with snapshot version bundleName bundle file name

Returns: if both represent the same artifact and version, forgetting about the snapshot timestamp

Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.