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:

  • 1. pick the IDE/platform module which contents you want to brand. eg. org-openide-windows.jar
  • 2. locate the jar within the IDE/platform installation and it's cluster, eg. modules/org-openide-windows.jar
  • 3. create the same folder structure in src/main/nbm-branding, make folder with the module's jar name as well. eg. create folder by name modules/org-openide-windows.jar
  • 4. within that folder place your branding modifications at the same location, as if they were withn the jar, eg. org/openide/windows/ui/Bundle.properties and place the changed bundle keys there.

Mojo Attributes :

  • Requires a Maven 2.0 project to execute.
  • Automatically executes within the lifecycle phase: package

Required Parameters

Name Type Description
brandingSources String Location of the branded resources.
brandingToken String The branding token used by the application.
cluster String cluster of the branding. Default value is maven1.
nbmBuildDir String directory where the the binary content is created.

Parameter Details

brandingSources

Location of the branded resources.

  • Type : java.lang.String
  • Required : Yes
  • Expression : ${basedir}/src/main/nbm-branding

brandingToken

The branding token used by the application.

  • Type : java.lang.String
  • Required : Yes
  • Expression : ${netbeans.branding.token}

cluster

cluster of the branding.

  • Type : java.lang.String
  • Required : Yes
  • Default : maven1

nbmBuildDir

directory where the the binary content is created.

  • Type : java.lang.String
  • Required : Yes
  • Expression : ${project.build.directory}/nbm