Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Extracts NodeJS' executable to a Maven build environment
Java

Merge pull request #7 from jtarchie/patch-1

update to correct version number
latest commit 85851dc781
Sannie Kwakman authored

README.md

nodejs-maven-plugin

Extracts a NodeJS executable to a Maven build environment. Requires Maven 3.x or higher.

Usage

The following POM plugin configuration will extract the NodeJs executable to directory ${basedir}/target/nodejs/

<plugins>
  <plugin>
    <groupId>com.github.skwakman.nodejs-maven-plugin</groupId>
    <artifactId>nodejs-maven-plugin</artifactId>
    <version>1.0.5-node-0.10.25</version>
    <executions>
      <execution>
        <goals>
          <goal>extract</goal>
        </goals>
      </execution>
    </executions>
    <configuration>
        <!-- target directory for node binaries -->
        <targetDirectory>
            ${basedir}/target/nodejs/
        </targetDirectory>
    </configuration>
  </plugin>
</plugins>

Supported platforms

The plugin supplies a NodeJS binary for the following platforms:

  • Windows (32 and 64 bit)
  • Mac OS (32 and 64 bit)
  • Linux (i386 and amd64)
Something went wrong with that request. Please try again.