Plugin Documentation

Goals available for this plugin:

Goal Description
osgi-dp:build Build an OSGi distribution package based on the existing project

This mojo allows building an OSGi DP based on the main artifact, optional Tycho feature dependencies and additional dependencies.

osgi-dp:bundle Build this project as an OSGi distribution package.

This project takes the main attachment and the dependencies of this project and builds an OSGi DP from it. By default only direct compile and runtime dependencies will be added to the package. All extra dependencies will be included.

osgi-dp:help Display help information on osgi-dp.
Call mvn osgi-dp:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
osgi-dp:package 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.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 3.3
JDK 1.8
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>de.dentrassi.maven</groupId>
          <artifactId>osgi-dp</artifactId>
          <version>0.4.1</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>de.dentrassi.maven</groupId>
        <artifactId>osgi-dp</artifactId>
        <version>0.4.1</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"