You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Nicholas White (JIRA)" <ji...@codehaus.org> on 2009/04/22 17:41:45 UTC

[jira] Commented: (SUREFIRE-503) Parent pom settings not overridden

    [ http://jira.codehaus.org/browse/SUREFIRE-503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=173899#action_173899 ] 

Nicholas White commented on SUREFIRE-503:
-----------------------------------------

When do you think this will be fixed? The bug report is almost a year old!

> Parent pom settings not overridden
> ----------------------------------
>
>                 Key: SUREFIRE-503
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-503
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: plugin
>    Affects Versions: 2.4.2
>         Environment: Windows XP SP2, Maven 2.0.9
>            Reporter: Paul Grove
>
> In my team parent pom from which all projects inherit I have this in the pom
> <build>
> 		<plugins>
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-surefire-plugin</artifactId>
> 				<configuration>
> 					<excludes>
> 						<exclude>**/*ITest.java</exclude>
> 					</excludes>
> 				</configuration>
> 			</plugin>
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-surefire-plugin</artifactId>
> 				<executions>
> 					<execution>
> 						<id>surefire-it</id>
> 						<phase>integration-test</phase>
> 						<goals>
> 							<goal>test</goal>
> 						</goals>
> 						<configuration>
> 							<excludes>
> 								<exclude>none</exclude>
> 							</excludes>
> 							<includes>
> 								<include>**/*ITest.java</include>
> 							</includes>
> 						</configuration>
> 					</execution>
> 				</executions>
> 			</plugin>
> 		</plugins>
> 	</build>
> In my project pom I was to add some more exclusions and inclusions so I added this
> <build>
> 		<plugins>
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-surefire-plugin</artifactId>
> 				<configuration>
> 					<excludes>
> 						<exclude>**/functest/**</exclude>
> 						<exclude>**/perftest/**</exclude>
> 					</excludes>
> 				</configuration>
> 			</plugin>
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-surefire-plugin</artifactId>
> 				<executions>
> 					<execution>
> 						<id>surefire-it</id>
> 						<phase>integration-test</phase>
> 						<goals>
> 							<goal>test</goal>
> 						</goals>
> 						<configuration>
> 							<excludes>
> 								<exclude>none</exclude>
> 							</excludes>
> 							<includes>
> 								<include>**/functest/**</include>
> 								<include>**/perftest/**</include>
> 							</includes>
> 						</configuration>
> 					</execution>
> 				</executions>
> 			</plugin>
> 		</plugins>
> 	</build>
> But when I run mvn test all the tests in functest and perftest package still run. but if I add the exclusions and inclusions to the team parent pom it works as expected so I am a bit confused.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira