Embed a jarfile inside a bundle project
mvn pax:embed-jar [-DgroupId=...] -DartifactId=... [-Dversion=...]
Mojo Attributes:
| Name | Type | Description |
|---|---|---|
| artifactId | String |
The artifactId of the jar to be embedded. |
| 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. |
The artifactId of the jar to be embedded.
java.lang.StringYes${artifactId}java.lang.StringNo${exportContents}java.lang.StringNo${groupId}org.apache.maven.artifact.factory.ArtifactFactoryNoorg.apache.maven.artifact.metadata.ArtifactMetadataSourceNobooleanNo${overwrite}java.io.FileNo${targetDirectory}${project.basedir}booleanNo${unpack}java.lang.StringNo${version}