
[英]Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (default) on project mavenproject2:
[英]Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (exec-grunt) on project, Process exited with an error: 3 (Exit value: 3)
我有一个使用 Angularjs 版本 1.6.9 作为前端和 spring boot 1.3.0 RELEASE 作为后端构建的 UI 应用程序。 Grunt 是一个使用的 JavaScript 任务运行器。
为了构建项目,我们在 pom.xml 中有以下插件
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>exec-npm-install</id>
<phase>generate-sources</phase>
<configuration>
<executable>npm</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
<execution>
<id>exec-bower-install</id>
<phase>generate-sources</phase>
<configuration>
<executable>bower</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
<execution>
<id>exec-grunt</id>
<phase>generate-resources</phase>
<configuration>
<executable>grunt</executable>
<arguments>
<argument>clean</argument>
<argument>build</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
执行mvn clean install
命令时出现以下错误
[错误]无法在项目App-UI上执行目标org.codehaus.mojo:exec-maven-plugin:1.3.2:exec(exec-grunt):命令执行失败。:进程退出并出现错误:3(退出值: 3) -> [帮助 1]
谁能建议这里可能是什么问题?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.