5
我导入一个Maven项目进入的IntelliJ,但好像它忽略了万无一失插件指定的<configuration>
的IntelliJ Maven的整合
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.5</version>
<configuration>
<argLine>-Djava.endorsed.dirs=${settings.localRepository}/com/sun/metro/webservices-api/2.0.1
</argLine>
<excludes>
<exclude>**/CacheStoreTest.java</exclude>
</excludes>
</configuration>
</plugin>
当我从IDE中运行测试,它拿起webservices- api.jar与JDK6绑定,而不是来自我的Maven仓库的版本,它也在CacheStoreTest中运行测试,即使我已经表明它们应该被排除。
如何在IntelliJ中运行测试? – 2011-03-08 16:57:43
通过右键单击一个测试文件夹并选择“运行所有测试” – 2011-03-08 19:08:49