使用安装在系统中的节点和npm,通过插件只执行gulp,grunt,npm,bower任务,而不安装节点和npm,这是可能的吗?
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
<version>@project.version@</version>
<executions>
<!-- <execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v0.12.2</nodeVersion>
<npmVersion>2.7.6</npmVersion>
</configuration>
</execution>-->
<execution>
<id>grunt build</id>
<goals>
<goal>grunt</goal>
</goals>
<configuration>
<arguments>--no-color</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>发布于 2016-09-14 19:18:11
根据作者对这个问题的评论,看起来不像是这样:
https://github.com/eirslett/frontend-maven-plugin/issues/277
Maven-exec-plugin可能有你需要的东西。
https://stackoverflow.com/questions/35638367
复制相似问题