osgi-dp:package

Full name:

de.dentrassi.maven:osgi-dp:0.4.1:package

Description:

Build this project as an OSGi distribution package.

Note: Use the packaging type dp instead of directly configuring this mojo.

Be sure to add this plugin as an extension:

<plugins> <plugin> <groupId>de.dentrassi.maven</groupId> <artifactId>osgi-dp</artifactId> <extensions>true</extensions> </plugin> </plugins>

This project takes the dependencies of this project and builds an OSGi DP from it.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: runtime.
  • Requires dependency collection of artifacts in scope: runtime.
  • Since version: 0.3.0.
  • Binds by default to the lifecycle phase: package.

Optional Parameters

Name Type Since Description
additionalDependencies Dependency[] 0.3.0 Additional dependencies to package
skip boolean 0.3.0 Skip the generation of the DP
Default value is: false.
User property is: osgi-dp.skip.
useQualifiedFilename boolean 0.3.0 Whether or not to use a qualified target filename

By default the project version will be used as filename. If this property is set to true then the qualified OSGi version will be used.


Default value is: false.
version String 0.3.0 An optional explicit version

Note: This version must be a valid OSGi version

By default the version of the project will be used. The -SNAPSHOT suffix will be replaced by the current timestamp.


User property is: version.

Parameter Details

additionalDependencies:

Additional dependencies to package
  • Type: org.apache.maven.model.Dependency[]
  • Since: 0.3.0
  • Required: No

skip:

Skip the generation of the DP
  • Type: boolean
  • Since: 0.3.0
  • Required: No
  • User Property: osgi-dp.skip
  • Default: false

useQualifiedFilename:

Whether or not to use a qualified target filename

By default the project version will be used as filename. If this property is set to true then the qualified OSGi version will be used.

  • Type: boolean
  • Since: 0.3.0
  • Required: No
  • Default: false

version:

An optional explicit version

Note: This version must be a valid OSGi version

By default the version of the project will be used. The -SNAPSHOT suffix will be replaced by the current timestamp.

  • Type: java.lang.String
  • Since: 0.3.0
  • Required: No
  • User Property: version