| Property | Optional | Description |
|---|---|---|
| maven.nbm.manifest | Optional. |
File containing Netbeans-specific manifest entries. The plugin automatically generates some of the entries:
OpenIDE-Module-Implementation-Version: ${pom.currentVersion}
OpenIDE-Module: ${maven.nbm.modulename}
OpenIDE-Module-Specification-Version: normalized version of ${pom.currentVersion}
etc.etc. If you define any of the entries in your manifest file, it overrides anything that gets automatically generated. |
| maven.nbm.modulename | Since 0.6 Optional. Default value is |
Module name. Used when generating the manifest entries and module jar file names. |
| maven.nbm.autoload | Optional. Default value is |
Determines if the module is an autoload module or not. A module cannot be both eager and autoload. |
| maven.nbm.eager | Optional. Default value is |
Determines if the module is an eager module or not. A module cannot be both eager and autoload. |
| maven.nbm.requiresrestart | Optional. Default value is In version 0.1 the default was true, incompatible change. |
If true, the application restarts after installation of the module. Required generally only when the nbm includes files in netbeans/lib subfolder. (AFAIK) |
| maven.nbm.license | Optional. Default value is |
Location of the license file to be included with the nbm. |
| maven.nbm.license.name | Since 0.3 Optional. Default value is |
Name of the license file to be included with the nbm. Eg. |
| maven.nbm.cluster.name | Since 0.3 Optional. Default value is |
The name of the cluster that the module belongs to. |
| maven.nbm.build.dir | Since 0.6 Optional. Default value is |
The output directory of the nbm plugin. The modified project's artifact is placed here. Later also the nbm file for the project. The plugin will create a You might want to make use of this property when you want to merge multiple projects belonging to one cluster and create an installation for it. |
| maven.nbm.distributionURL | Since 0.6 Optional. Default value is |
The URL of the nbm once deployed on the server. Is used when creating the xml description of the autoupdate server. |
| Property | Optional | Description |
|---|---|---|
| netbeans.module.ext | OPTIONAL. Allowed value |
A property of dependency in the POM, if set to For example:
<dependency>
<groupId>forehead</groupId>
<artifactId>forehead</artifactId>
<version>1.0-beta-5</version>
<url>http://forehead.werken.com/</url>
<properties>
<netbeans.module.ext>true</netbeans.module.ext>
</properties>
</dependency>
In case you didn't define the Class-Path manifest attribute, it will be added for you automatically. |
| netbeans.module.dep | OPTIONAL. Allowed types are |
If the property is set on the dependency, it is expected to be a Netbeans module dependency.
When the project is built using the nbm:jar goal, it will build a For example:
<dependency>
<groupId>forehead</groupId>
<artifactId>forehead</artifactId>
<version>1.0-beta-5</version>
<properties>
<netbeans.module.dep>impl</netbeans.module.dep>
</properties>
</dependency>
<dependency>
<groupId>netbeans</groupId>
<artifactId>org-netbeans-modules-projectuiapi</artifactId>
<version>1.0-SNAPSHOT</version>
<type>jar</type>
<properties>
<netbeans.module.dep>spec=org.netbeans.modules.projectuiapi/0 > 1.0</netbeans.module.dep>
</properties>
</dependency>
There are 3 types of allowed values: loose creates a dependency in the format spec creates a dependency based on the specification number. In the module's manifest it looks like this: impl creates a dependency based on the implementation number. It looks like this: |
These properties are related to the signing of the NBM. You should sign NBMs you release. Otherwise the user will be forced to accept a non-signed NBM.
See help for jarsigner and keystore executables located in the jdk's bin directory. These are used to generate the keys and signing the jars.
| Property | Optional | Description |
|---|---|---|
| maven.nbm.sign.keystore |
Optional. Since 0.2. Default value is |
Shall contain path the keystore file. |
| maven.nbm.sign.storepass |
Optional. Since 0.2. Default value is |
Contains the password for the signing of the nbm, you probably want to include it in your $HOME/build.properties file. |
| maven.nbm.sign.alias |
Optional. Since 0.2. Default value is |
Alias in the keystore for signing the nbm. |
These properties are relevant only if you want to generate NBM autoupdate server content. (goals nbm:collect-nbms and nbm:autoupdate)
| Property | Optional | Description |
|---|---|---|
| maven.nbm.autoupdate.name | Since 0.2 Optional, required for nbm:autoupdate goal. Default value is "NBM_AutoUpdate" |
Name for the xml file describing the autoupdate server content information. |
| maven.nbm.build.release.dir | Since 0.2 Optional. Default value is ${maven.build.dir}/nbm_release |
Output location of the autoupdate server content. |