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

在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>
posted @ 2022-11-02 12:36  小林不会飞  阅读(1019)  评论(0编辑  收藏  举报