Closed jakebolam closed 5 years ago
attach node and npm deps to maven
This adds the frontend-maven-plugin to the build process to allow Maven to install npm without having to do it manually before running mvn.
frontend-maven-plugin
npm
mvn
Try mvn clean install and verify that a step like this is present in the trace:
mvn clean install
[INFO] --- frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) @ pipeline-timeline --- [INFO] Node v6.4.0 is already installed. [INFO] NPM 3.10.3 is already installed. [INFO] [INFO] --- exec-maven-plugin:1.6.0:exec (npm install) @ pipeline-timeline ---
The first part is the fe mvn plugin installing node and NPM, and the second is the embedded call to npm install.
npm install
This is largely inspired by the documentation found in the frontend-maven-plugin docs.
Description
attach node and npm deps to maven
This adds the
frontend-maven-plugin
to the build process to allow Maven to installnpm
without having to do it manually before runningmvn
.QA
Try
mvn clean install
and verify that a step like this is present in the trace:The first part is the fe mvn plugin installing node and NPM, and the second is the embedded call to
npm install
.This is largely inspired by the documentation found in the
frontend-maven-plugin
docs.