Plugin documentation

Goals available:

GoalDescription
pax:compileExtends CompilerMojo to support compiling against OSGi bundles with embedded jars.
Inherited parameters can still be used, but unfortunately don't appear in the generated docs.
pax:testCompileExtends TestCompilerMojo to support compiling against OSGi bundles with embedded jars.
Inherited parameters can still be used, but unfortunately don't appear in the generated docs.
pax:runProvision all local and imported bundles onto the selected OSGi framework
mvn pax:run [-Dframework=felix|equinox|kf|concierge] [-Ddeploy=minimal,log,war,...]
pax:cleanRemove generated IDE files, but support limited recovery during the same build session.
So 'mvn pax:clean pax:eclipse' won't wipe out your Eclipse metadata on a compile error.
pax:eclipseExtends EclipsePlugin to provide customized Eclipse project files for Pax-Construct projects.
Inherited parameters can still be used, but unfortunately don't appear in the generated docs.
pax:provisionProvision all local and imported bundles onto the selected OSGi framework
mvn pax:provision [-Dframework=felix|equinox|kf|concierge] [-Dprofiles=minimal,log,war,...]
If you don't have Pax-Runner in your local Maven repository this command will automatically attempt to download the latest release. It will then continue to use this locally installed version of Pax-Runner unless you add -U to force it to check online for a later release, or -Drunner=version to temporarily use a different version.
pax:cloneClones an existing project and produces a script (plus archetypes) to mimic its structure using Pax-Construct
mvn pax:clone
pax:create-projectCreate a new OSGi project tree that supports wrapping, compiling and provisioning of bundles
mvn org.ops4j:maven-pax-plugin:create-project -DgroupId=... -DartifactId=... [-Dversion=...]
pax:create-bundleCreate a new bundle project inside an existing Pax-Construct OSGi project
mvn pax:create-bundle -Dpackage=... [-DbundleName=...] [-Dversion=...]
or create a standalone version which doesn't require an existing project
cd some-empty-folder
mvn org.ops4j:maven-pax-plugin:create-bundle ...etc...
pax:wrap-jarCreate a new wrapper project inside an existing Pax-Construct OSGi project
mvn pax:wrap-jar [-DgroupId=...] -DartifactId=... [-Dversion=...] [-Dclassifier=...]
or create a standalone version which doesn't require an existing project
cd some-empty-folder
mvn org.ops4j:maven-pax-plugin:wrap-jar ...etc...
pax:updateUpdates a Pax-Construct project or (when run in the scripts directory) the installed scripts to the latest version
mvn pax:update [-Dversion=...]
pax:import-bundleImport an OSGi bundle as a project dependency and mark it for deployment
mvn pax:import-bundle [-DgroupId=...] -DartifactId=... [-Dversion=...]
pax:add-repositoryAdd a Maven repository element to a project
mvn pax:add-repository -DrepositoryId=... -DrepositoryURL=...
pax:create-moduleCreate a new module inside a project.
mvn org.ops4j:maven-pax-plugin:create-module [-DgroupId=...] -DartifactId=... [-Dversion=...]
pax:move-bundleMove a bundle project to a new directory, updating and creating POMs as necessary
mvn pax:move-bundle -DbundleName=... -DtargetDirectory=...
pax:remove-bundleRemove a bundle project and any references to it in the project tree, updating POMs as necessary
mvn pax:remove-bundle -DbundleName=...
pax:embed-jarEmbed a jarfile inside a bundle project
mvn pax:embed-jar [-DgroupId=...] -DartifactId=... [-Dversion=...]