pax-embed-jar [-g groupId] -a artifactId [-v version] [-o] [-- mvnOpts ...]

Embed a third-party jar inside an OSGi bundle, use -o to overwrite an existing entry.

  • if no groupId is given, it is assumed to be the same as the artifactId.
  • if no version is given, the latest version in the repository is selected.

Additional Maven options

-Dunpackunpack the jar contents inside the bundle
-DexportContents=directive-exportcontents BND directive
-DtargetDirectory=pathalternative location of the embedding bundle

Examples

pax-embed-jar -a junit -v 3.8.2 -- -Dunpack