2
我想用哈德森建立一个Maven的Java项目。我的一些集成测试使用的服务器无法从哈德森服务器访问。所以我想用特殊的配置文件排除它们。排除TestNG的团对Maven构建哈德森
<profile>
<id>hudson</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<excludedGroups>ticketserver,print</excludedGroups>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profile
不幸的是我已经排除了我的一般pom中的一个组。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.10</version>
<configuration>
<excludedGroups>manual</excludedGroups>
</configuration>
使用mvn help:effective-pom我发现,这个设置覆盖了我的配置文件中的一个。在哈德森配置文件中运行时是否有排除所有三个测试类的方法?
不过,我觉得这会让failsage配置到每个配置文件我已经和从一般POM删除它,但似乎并没错,因为我需要重复每一个轮廓,我有。
任何帮助是极大通过定义属性“testGroupsToSkip”,这是在主POM设置理解