使用maven安装grunt
我一直坚持使用maven进行构建和编译,但现在引入JavaScript构建和自动化带来了一个有趣的挑战,我们可以使用maven安装Grunt吗 我搜索并找到了很多pom.xml,运行grunt和yoeman等,但没有一个用于安装grunt 比如:使用maven安装grunt,maven,gruntjs,Maven,Gruntjs,我一直坚持使用maven进行构建和编译,但现在引入JavaScript构建和自动化带来了一个有趣的挑战,我们可以使用maven安装Grunt吗 我搜索并找到了很多pom.xml,运行grunt和yoeman等,但没有一个用于安装grunt 比如: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>Install Grunt</id>
<phase>prepare-package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>grunt</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
对不起,这是一个很晚的回答。。。通过使用前端maven插件,您可以通过将Grunt放入package.json中来安装Grunt。然后,npm将为您下载它。就像示例项目中一样