nodejs-binaries

Node.js Binaries as a Maven dependency

License

License

Categories

Categories

JavaScript Languages
GroupId

GroupId

com.github.leonardo-couto
ArtifactId

ArtifactId

nodejs-binaries
Last Version

Last Version

7.5.0
Release Date

Release Date

Type

Type

tar.gz
Description

Description

nodejs-binaries
Node.js Binaries as a Maven dependency
Project URL

Project URL

http://github.com/leonardo-couto/nodejs-binaries
Source Code Management

Source Code Management

https://github.com/leonardo-couto/nodejs-binaries

Download nodejs-binaries

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

nodejs-binaries

Node.js Linux and MacOS binaries as a Maven dependency.

Usage

In your pom.xml add the following properties and dependency.

  <project>
    ...
    <properties>
      ...
      <node.os>linux</node.os>
      <node.arch>x86</node.arch>
    </properties>
    
    <dependencies>
      ...
      <dependency>
        <groupId>com.github.leonardo-couto</groupId>
        <artifactId>nodejs-binaries</artifactId>
        <version>10.0.28.1</version>
        <classifier>${node.os}-${node.arch}</classifier>
        <type>tar.gz</type>
      </dependency>
    </dependencies>
  </project>

Possible values supported for OS (node.os) are linux and macos. For architecture (node.arch) values x86 and x64 are valid.

You can let Maven choose the package based on user operational system and architecture through Maven profile activation.

  <profiles>
    <profile>
      <id>x64</id>
      <activation>
        <os>
          <arch>x64</arch>
        </os>
      </activation>
      <properties>
        <node.arch>x64</node.arch>
      </properties>
    </profile>
    <profile>
      <id>mac</id>
      <activation>
        <os>
          <family>mac</family>
        </os>
      </activation>
      <properties>
        <node.os>macos</node.os>
      </properties>
    </profile>
    ...

Versions

Version
7.5.0
0.12.5
0.10.28.1
0.10.28