解决Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project


 

我运行这个main方法是,却报错,报错信息为

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project xiaowei: Command execution failed.

 

在pom文件中添加插件


1
<plugin> 2 <groupId>org.codehaus.mojo</groupId> 3 <artifactId>exec-maven-plugin</artifactId> 4 <version>1.6.0</version> 5 <executions> 6 <execution> 7 <goals> 8 <goal>java</goal> 9 </goals> 10 </execution> 11 </executions> 12 <configuration> 13 <classpathScope>test</classpathScope> 14 </configuration> 15 </plugin>

 

 

posted @ 2023-10-27 16:45  永不秃  阅读(864)  评论(0编辑  收藏  举报