Extracts NodeJS' executable to a Maven build environment
Pull request Compare This branch is 12 commits behind skwakman:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
nodejs-maven-plugin-test
nodejs-maven-plugin
.gitignore
COPYRIGHT.txt
LICENSE.txt
LICENSES.TXT
NOTICE.txt
README.md
pom.xml

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.3</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 currently supplies a NodeJS binary for the following platforms:

  • Windows (32 and 64 bit)
  • Mac OS (32 and 64 bit)
  • Linux (i386 and amd64)