mvn compile时报错

解决方法:
将pom.xml中的原本的
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.9</version>
<scope>test</scope>
</dependency>
改成
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.9</version>
</dependency>
本文介绍了一种解决mvncompile时报错的方法,通过修改pom.xml文件中junit依赖的配置来解决问题。
1859

被折叠的 条评论
为什么被折叠?



