首页 > 其他分享 >在maven的web项目的test的文件执行main方法报错Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:exe问题

在maven的web项目的test的文件执行main方法报错Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:exe问题

时间:2022-11-02 12:58:33浏览次数:50  
标签:web maven 报错 3.1 test org mojo codehaus

在pom.xml添加这个插件

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<classpathScope>test</classpathScope>
</configuration>
</plugin>
</plugins>
</build>

标签:web,maven,报错,3.1,test,org,mojo,codehaus
From: https://www.cnblogs.com/xiaofeilin/p/16850646.html

相关文章