2011-03-08 16 views
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中运行测试,即使我已经表明它们应该被排除。

+0

如何在IntelliJ中运行测试? – 2011-03-08 16:57:43

+0

通过右键单击一个测试文件夹并选择“运行所有测试” – 2011-03-08 19:08:49

回答

1

这是一个known issue,请观看/投票。

+0

谢谢,我已投票赞成 – 2011-03-08 19:08:07