Angular 使用maven构建角度代码花费了太多时间
我正在使用maven构建angular应用程序并在tomcat中部署。在Angular 使用maven构建角度代码花费了太多时间,angular,maven,npm,Angular,Maven,Npm,我正在使用maven构建angular应用程序并在tomcat中部署。在pom.xml中,我提到了以下代码 <execution> <id>install node and npm</id> <goals> <goal>install-node-and-npm</go
pom.xml
中,我提到了以下代码
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<phase>validate</phase>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<phase>validate</phase>
</execution>
安装节点和npm
安装节点和npm
验证
npm安装
npm
验证
这工作正常,应用程序工作正常
问题是,每当我构建代码时,它都会安装node和rpm以及所有的包,这需要很长时间才能完成构建过程。有什么解决办法吗