nodejs-maven-plugin Maven Plugin

Maven plugin for supplying a NodeJS binary on a build environment.

License

License

Categories

Categories

JavaScript Languages Maven Build Tools
GroupId

GroupId

com.github.skwakman.nodejs-maven-plugin
ArtifactId

ArtifactId

nodejs-maven-plugin
Last Version

Last Version

1.0.5-node-0.10.25
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

nodejs-maven-plugin Maven Plugin
Maven plugin for supplying a NodeJS binary on a build environment.
Project URL

Project URL

https://github.com/skwakman/nodejs-maven-plugin

Download nodejs-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.skwakman.nodejs-maven-plugin</groupId>
    <artifactId>nodejs-maven-plugin</artifactId>
    <version>1.0.5-node-0.10.25</version>
</plugin>

Dependencies

compile (2)

Group / Artifact Type Version
org.codehaus.plexus : plexus-archiver jar 2.3
com.github.skwakman.nodejs-maven-binaries : nodejs-maven-binaries zip 0.10.25

provided (3)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.0
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.2
org.codehaus.plexus : plexus-utils jar 3.0.8

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

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)

Versions

Version
1.0.5-node-0.10.25
1.0.4
1.0.3
1.0.2