Usage

Goals of this plugin are not intended to be executed directly, they are enabled via the nexus-plugin packaging lifecycle.

Basic Configuration

Add a plugin definition with extensions enabled:

<plugin>
    <groupId>org.sonatype.nexus</groupId>
    <artifactId>nexus-plugin-bundle-maven-plugin</artifactId>
    <extensions>true</extensions>
</plugin>

Set the packaging of the project/module to nexus-plugin:

<packaging>nexus-plugin</packaging>

Plugin Information

Configure the plugin name and description, which are shown in the Nexus plugin console:

<plugin>
    <groupId>org.sonatype.nexus</groupId>
    <artifactId>nexus-plugin-bundle-maven-plugin</artifactId>
    <configuration>
        <pluginName>My Nexus Plugin</pluginName>
        <pluginDescription>This is my super-awesome Nexus plugin!</pluginDescription>
    </configuration>
</plugin>

Shared Dependencies

If the plugin provides dependencies which are to be made available to other plugins, mark them as shared:

<plugin>
    <groupId>org.sonatype.nexus</groupId>
    <artifactId>nexus-plugin-bundle-maven-plugin</artifactId>
    <configuration>
        <sharedDependencies>
            <sharedDependency>for:bar</sharedDependency>
        </sharedDependencies>
    </configuration>
</plugin>