Goals available for this plugin:
| Goal | Description |
|---|---|
| nbm:autoupdate | Create the Netbeans autopdate site definition. |
| nbm:branding | Package branding resources for NetBeans platform/IDE based
application. The format of branding resources is the same as in
NetBeans Ant-based projects. The src/main/nbm-branding
folder of the project is assumed to contain the branding content.
Within the directory, the following folder structure is assumed:
|
| nbm:cluster | Create the Netbeans module clusters from reactor |
| nbm:cluster-app | Create the Netbeans module clusters/application for the 'nbm-application' packaging projects |
| nbm:help | Display help information on nbm-maven-plugin. Call mvn nbm:help -Ddetail=true -Dgoal=<goal-name>to display parameter details. |
| nbm:manifest | Goal for generating NetBeans module system specific manifest
entries, part of "nbm" lifecycle/packaging. In order to have the
generated manifest picked up by the maven-jar-plugin, one shall add
the following configuration snippet to maven-jar-plugin.
<plugin> |
| nbm:nbm | Create the Netbeans module artifact (nbm file), part of "nbm" lifecycle/packaging. |
| nbm:populate-repository | A goal for identifying netbeans modules from the installation and populating the local repository with them. Optionally you can also deploy to a remote repository. If you are looking for an existing remote repository for netbeans artifacts, check out http://bits.netbeans.org/maven2/, it contains API artifacts for multiple releases. See this HOWTO on how to generate the NetBeans binaries required by this goal. Compatibility Note: The 3.0+ version puts all unrecognized, non-module, 3rd party jars in the org.netbeans.external group and adds them as dependencies to respective modules. That can cause backward incompatibility with earlier versions which generated incomplete (different) maven metadata. |
| nbm:run-ide | Run NetBeans IDE with additional custom module clusters, to be used in conjunction with nbm:cluster. |
| nbm:run-platform | Run a branded application on top of NetBeans Platform. To be used with projects with nbm-application packaging only and the project needs to be built first. |
| nbm:standalone-zip | Create a standalone application out of the composed clusters of nbm-application |
| nbm:webstart-app | Create webstartable binaries for a 'nbm-application'. |
The following specifies the minimum requirements to run this Maven plugin:
| Maven | 2.0.6 |
| JDK | 1.6 |
| Memory | No minimum requirement. |
| Disk Space | No minimum requirement. |
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.codehaus.mojo</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<version>3.6</version>
</plugin>
...
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<version>3.6</version>
</plugin>
...
</plugins>
</build>
...
</project>
For more information, see "Guide to Configuring Plug-ins"