Skip to content

Unpack node.js to local maven repo so it is reused after 'mvn clean' #9

@ghost

Description

Both our CI server and our developers often use mvn clean install to ensure the build is in a consistent state. As nodejs-maven-plugin unpacks the node.js binary to the project folder, this step is repeated each time even though most of the time the build uses the same node.js binary as the last build. This slows down builds considerably.

I propose that instead of defining <targetDirectory>, the plugin should allow an optional parameter that makes it download the node.js binary into the local maven repository, using a path that includes the version. The plugin could then store the path to the binary in a variable for use by other plugins.

This way, the plugin could simply skip the download step when the current release was already downloaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions