npmpack:bower

Full name:

net.kozelka.maven:npmpack-maven-plugin:1.0-SNAPSHOT:bower

Description:

(no description)

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Binds by default to the lifecycle phase: generate-resources.

Required Parameters

Name Type Since Description
anonymize boolean -

If set, the computed checksum is performed on top of anonymized package.json file; this is useful when working with multiple modules with equal dependencies, as it ensures that they share the same cached artifact.

If unset, only line endings are normalized to LF prior to checksum.

Anonymization is a simple process which replaces properties that identify the module with neutral identification; currently it is string "ANONYMIZED" in properties "name" and "version". Note that the package.json is also sorted (properties by name, recursively) and pretty-printed, so that all insignificant differences are eliminated.

The file node_modules/package.json always c
Default value is: true.
basedir File - Current project directory. Used internally to run grunt from the module's directory.
Default value is: ${basedir}.
bowerExecutables String - The executable to run as grunt. We expect that it resides under node_modules/.bin.
Default value is: bower,bower.cmd.
User property is: bower.executable.
manualMode boolean - When true, manual (or maintenance) mode is assumed. In this mode, the plugin is allowed to download artifacts from non-Maven repositories, like NPM registry or from Bower. Otherwise it fails if the needed artifact is not available in maven repository.
Default value is: false.
User property is: npmpack.manual.
node_modules File - Pointer to node_modules directory.

Recommended use: do not change if you wish to use npm-based tools from commandline as well. Otherwise it might be practical to change this to "${project.build.directory}/node_modules".


Default value is: node_modules.
npmExecutables String - The executable to run as NPM. By default, we expect that it is available on PATH.
Default value is: npm,npm.cmd.
User property is: npm.executable.
packageJson File - Pointer to package.json file.

Recommended use: do not change


Default value is: package.json.
skip boolean - The execution is skipped if this is true.
Default value is: false.
User property is: bower.skip.

Optional Parameters

Name Type Since Description
bowerOutputDirectory File - Directory where bower will create its libraries unless existing .bowerrc is defined.
Default value is: ${project.build.directory}/${project.build.finalName}/lib.
bowerrcAutocreate boolean - Create temporary bower configuration file .bowerrc , making bower gather the dependencies into the ${project.build.directory}/${project.build.finalName}/res directory. This option is not effective if the file already exists.
Default value is: true.

Parameter Details

anonymize:

If set, the computed checksum is performed on top of anonymized package.json file; this is useful when working with multiple modules with equal dependencies, as it ensures that they share the same cached artifact.

If unset, only line endings are normalized to LF prior to checksum.

Anonymization is a simple process which replaces properties that identify the module with neutral identification; currently it is string "ANONYMIZED" in properties "name" and "version". Note that the package.json is also sorted (properties by name, recursively) and pretty-printed, so that all insignificant differences are eliminated.

The file node_modules/package.json always c
  • Type: boolean
  • Required: Yes
  • Default: true

basedir:

Current project directory. Used internally to run grunt from the module's directory.
  • Type: java.io.File
  • Required: Yes
  • Default: ${basedir}

bowerExecutables:

The executable to run as grunt. We expect that it resides under node_modules/.bin.
  • Type: java.lang.String
  • Required: Yes
  • User Property: bower.executable
  • Default: bower,bower.cmd

bowerOutputDirectory:

Directory where bower will create its libraries unless existing .bowerrc is defined.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/${project.build.finalName}/lib

bowerrcAutocreate:

Create temporary bower configuration file .bowerrc , making bower gather the dependencies into the ${project.build.directory}/${project.build.finalName}/res directory. This option is not effective if the file already exists.
  • Type: boolean
  • Required: No
  • Default: true

manualMode:

When true, manual (or maintenance) mode is assumed. In this mode, the plugin is allowed to download artifacts from non-Maven repositories, like NPM registry or from Bower. Otherwise it fails if the needed artifact is not available in maven repository.
  • Type: boolean
  • Required: Yes
  • User Property: npmpack.manual
  • Default: false

node_modules:

Pointer to node_modules directory.

Recommended use: do not change if you wish to use npm-based tools from commandline as well. Otherwise it might be practical to change this to "${project.build.directory}/node_modules".

  • Type: java.io.File
  • Required: Yes
  • Default: node_modules

npmExecutables:

The executable to run as NPM. By default, we expect that it is available on PATH.
  • Type: java.lang.String
  • Required: Yes
  • User Property: npm.executable
  • Default: npm,npm.cmd

packageJson:

Pointer to package.json file.

Recommended use: do not change

  • Type: java.io.File
  • Required: Yes
  • Default: package.json

skip:

The execution is skipped if this is true.
  • Type: boolean
  • Required: Yes
  • User Property: bower.skip
  • Default: false