tycho-wrap:wrap
Full name:
org.eclipse.tycho:tycho-wrap-plugin:6.0.0-SNAPSHOT:wrap
Description:
This mojos allows creating OSGi jars by specifying an arbitrary input and output, some bnd instructions and (optionally) attach the result to the maven project. This has the advantage that projects are able to publish two "flavors" of their artifact: a plain one and an OSGi-fied one that could help to convince projects to provide such things as it has zero influence to their build and ways how they build artifacts.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
package.
Required Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<input> |
File |
- |
No description. Default: ${project.build.directory}/${project.build.finalName}.${project.packaging}User Property: input |
<output> |
File |
- |
No description. Default: ${project.build.directory}/${project.build.finalName}-bundle.${project.packaging}User Property: output |
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<attach> |
boolean |
- |
If enabled attach the generated file as an artifact to the project Default: trueUser Property: attach |
<bnd> |
String |
- |
Bnd instructions for this project specified directly in the pom file. This is generally be done using a <![CDATA[]]> section. If the project has a bndfile, then this configuration element is ignored.
The bnd instructions for this project are merged with the bnd instructions, if any, for the parent project. |
<bndfile> |
String |
- |
File path to a bnd file containing bnd instructions for this project. Defaults to bnd.bnd. The file path can be an absolute or relative to the project directory.
The bnd instructions for this project are merged with the bnd instructions, if any, for the parent project. Default: bnd.bnd |
<classifier> |
String |
- |
The classifier to use when attach this to the project Default: bundleUser Property: classifier |
Parameter Details
<attach>
- Type:
boolean - Required:
No - User Property:
attach - Default:
true
<bnd>
<![CDATA[]]> section. If the project has a bndfile, then this configuration element is ignored.
The bnd instructions for this project are merged with the bnd instructions, if any, for the parent project.
- Type:
java.lang.String - Required:
No
<bndfile>
bnd.bnd. The file path can be an absolute or relative to the project directory.
The bnd instructions for this project are merged with the bnd instructions, if any, for the parent project.
- Type:
java.lang.String - Required:
No - Default:
bnd.bnd
<classifier>
- Type:
java.lang.String - Required:
No - User Property:
classifier - Default:
bundle
<input>
- Type:
java.io.File - Required:
Yes - User Property:
input - Default:
${project.build.directory}/${project.build.finalName}.${project.packaging}
<output>
- Type:
java.io.File - Required:
Yes - User Property:
output - Default:
${project.build.directory}/${project.build.finalName}-bundle.${project.packaging}
