我想使用 hudson 来构建一个 maven-java 项目。我的一些集成测试使用无法从 hudson-server 访问的服务器。所以我想使用特殊的配置文件排除它们。
<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.xml 中排除了一个组。
<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 我发现,此设置会覆盖我个人资料中的设置。在 hudson 配置文件中运行时,是否可以排除所有三个测试类?
我虽然将故障配置放入我拥有的每个配置文件中并将其从一般 pom 中删除,但这似乎是正确的,因为我需要为我拥有的每个配置文件重复它。
任何帮助是极大的赞赏