pax:embed-jar

Embed a jarfile inside a bundle project

mvn pax:embed-jar [-DgroupId=...] -DartifactId=... [-Dversion=...]

Mojo Attributes:

  • Executes as an aggregator plugin.

Required Parameters

Name Type Description
artifactId String The artifactId of the jar to be embedded.

Optional Parameters

Name Type Description
exportContents String The -exportcontents directive for this bundle, see Bnd docs.
groupId String The groupId of the jar to be embedded.
m_factory ArtifactFactory Component factory for Maven artifacts
m_source ArtifactMetadataSource Component for resolving Maven metadata
overwrite boolean When true, overwrite matching directives in the 'osgi.bnd' file.
targetDirectory File The directory containing the POM to be updated. Default value is ${project.basedir}.
unpack boolean When true, unpack the jar inside the bundle.
version String The version of the jar to be embedded.

Parameter Details

artifactId

The artifactId of the jar to be embedded.

  • Type: java.lang.String
  • Required: Yes
  • Expression: ${artifactId}

exportContents The -exportcontents directive for this bundle, see Bnd docs.
  • Type: java.lang.String
  • Required: No
  • Expression: ${exportContents}

groupId The groupId of the jar to be embedded.
  • Type: java.lang.String
  • Required: No
  • Expression: ${groupId}

m_factory Component factory for Maven artifacts
  • Type: org.apache.maven.artifact.factory.ArtifactFactory
  • Required: No

m_source Component for resolving Maven metadata
  • Type: org.apache.maven.artifact.metadata.ArtifactMetadataSource
  • Required: No

overwrite When true, overwrite matching directives in the 'osgi.bnd' file.
  • Type: boolean
  • Required: No
  • Expression: ${overwrite}

targetDirectory The directory containing the POM to be updated.
  • Type: java.io.File
  • Required: No
  • Expression: ${targetDirectory}
  • Default: ${project.basedir}

unpack When true, unpack the jar inside the bundle.
  • Type: boolean
  • Required: No
  • Expression: ${unpack}

version The version of the jar to be embedded.
  • Type: java.lang.String
  • Required: No
  • Expression: ${version}