Extracts a NodeJS executable to a Maven build environment. Requires Maven 3.x or higher.
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.4</version>
<executions>
<execution>
<goals>
<goal>extract</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- target directory for node binaries -->
<targetDirectory>
${basedir}/target/nodejs/
</targetDirectory>
</configuration>
</plugin>
</plugins>
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)