Maven Bundle Plugin - Plugin Documentation

Maven Bundle Plugin

##### Overview

- Introduction
- Goals
- Wiki
- FAQ
- Release Notes

##### Project Documentation

- Project Information
- Project Reports
  - JIRA Report
  - Plugin Documentation
  - Source Xref
  - Surefire Report
  - Test Source Xref

## Plugin Documentation

Goals available for this plugin:

Goal | Description
--- | ---
bundle:ant | Generate Ant script to create the bundle (you should run ant:ant first).
bundle:bundle | Create an OSGi bundle from Maven project
bundle:bundleall | Deprecated. The bundleall goal is no longer supported and may be removed in a future release
bundle:clean | Clean an OBR repository by finding and removing missing resources.
bundle:cleanVersions | No description.
bundle:deploy | Deploys bundle details to a remote OBR repository (life-cycle goal)
bundle:deploy-file | Deploys bundle details to a remote OBR repository (command-line goal)
bundle:index | Index the content of a maven repository using OBR
bundle:install | Installs bundle details in the local OBR repository (life-cycle goal)
bundle:install-file | Installs bundle details in the local OBR repository (command-line goal)
bundle:instructions | Generate BND instructions for this project
bundle:manifest | Generate an OSGi manifest for this project
bundle:remote-clean | Clean a remote repository file. It just looks for every resources and check that pointed file exists.
bundle:wrap | Deprecated. The wrap goal is no longer supported and may be removed in a future release

### System Requirements

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

Maven | 2.0
JDK | 1.5
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>org.apache.felix</groupId>
              <artifactId>maven-bundle-plugin</artifactId>
              <version>2.4.0-SNAPSHOT</version>
            </plugin>
            ...
          </plugins>
        </pluginManagement>
        <!-- To use the plugin goals in your POM or parent POM -->
        <plugins>
          <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <version>2.4.0-SNAPSHOT</version>
          </plugin>
          ...
        </plugins>
      </build>
      ...
    </project>

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