Plugin Documentation

Goals available for this plugin:

Goal Description
npmpack:bower No description.
npmpack:grunt Executes grunt in order to perform grunt-based build.
npmpack:node_modules Prepares the node_modules directory.

If it exists, uses MD5 hash of the package.json file is used to determine if its contents should be updated from "npm install".

If it does not exist, unpacks it from an archive within maven repository. If that does not exist, uses "npm install" to produce it.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 2.0
JDK Default target for maven-compiler-plugin version 3.1
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

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>net.kozelka.maven</groupId>
          <artifactId>npmpack-maven-plugin</artifactId>
          <version>1.0-SNAPSHOT</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>net.kozelka.maven</groupId>
        <artifactId>npmpack-maven-plugin</artifactId>
        <version>1.0-SNAPSHOT</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"