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.