Primary Goals

Goal Description
nbm:jar

Creates a netbeans module jar.

Basic Netbeans manifest attributes are generated by default. It includes the possibility to add additional netbeans manifest entries using the maven.nbm.manifest property. The generated defaults only apply when the attributes are not defined in the manifest entry of the jar or the maven.nbm.manifest file.

OpenIDE-Module-Module-Dependencies attribute is also constructed. However, only the dependencies marked with property netbeans.module.dep are included.

Class-Path attribute is also constructed, only for dependencies with property netbeans.module.ext

Also localizable attributes OpenIDE-Module-Display-Category OpenIDE-Module-Name OpenIDE-Module-Short-Description OpenIDE-Module-Long-Description are defined, only in the case the manifest entry doesn't include the OpenIDE-Module-Localizing-Bundle attribute. If that one is defined, it is assumed that the attributes are defined in the properties file.

nbm:nbm

Creates the nbm file. It includes the module jar, and also it's dependencies if they are marked in this manner:

<properties> <netbeans.module.ext>true</netbeans.module.ext> </properties>

The license file is included if defined.

nbm:autoupdate

Creates a Netbeans autoupdate structure.

For nbms collected by the nbm:collect-nbms the goal generates the xml describing the autoupdate server. That can be used for setting up an autoupdate server.

Secondary Goals

Goal Description
nbm:fill-repository

This goal extracts Netbeans module jars from the Netbeans IDE/Platform installation and puts them into the local maven repository. It will figure out the correct version information by examining the module jar's manifest.

nbm:prepare-nbm-resources

This goal is a prerequisite of nbm:nbm, it copies all the required resources into the ${maven.nbm.build.dir}/netbeans file structure which is later used to build the nbm file. By default copies the netbeans module jar and all the jars specified by the Class-Path: manifest attribute. This goal can be used in the custom maven.xml scripts to copy additional resources that should be included into the nbm.

nbm:install

Installs the NBM and the jar with netbeans enhanced manifest attributes into the local repository.

nbm:collect-nbms

Collects all the project's NBM files (the primary artifact. Default target location is ${maven.build.dir}/nbm_release directory. That location is later used by the nbm:autoupdate goal to create the autoupdate server file structure.