You could try the frontend-maven-plugin (via https://stackoverflow.com/a/19600777/1024571). According the docs:
This plugin downloads/installs Node and NPM locally for your project, runs NPM install, Grunt and/or Karma
Basically it allows you to use Node as part of your build process without requiring it to be installed globally on the build machine.