You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Grove (JIRA)" <ji...@codehaus.org> on 2008/06/23 12:45:26 UTC
[jira] Created: (SUREFIRE-503) Parent pom settings not overridden
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
[jira] Issue Comment Edited: (SUREFIRE-503) Parent pom settings not
overridden
Posted by "Paul Grove (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=139300#action_139300 ]
paulg edited comment on SUREFIRE-503 at 6/23/08 5:46 AM:
--------------------------------------------------------------
The includes and excludes do have two stars ** the editor stripped them out and made the text bold must be some sort of wiki markup processing!!
was (Author: paulg):
The includes and excludes do have to stars ** the editor sripped them out and made the text bold must be some sort of wiki markup processing!!
> 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
[jira] Commented: (SUREFIRE-503) Parent pom settings not overridden
Posted by "Paul Grove (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=139300#action_139300 ]
Paul Grove commented on SUREFIRE-503:
-------------------------------------
The includes and excludes do have to stars ** the editor sripped them out and made the text bold must be some sort of wiki markup processing!!
> 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
[jira] Updated: (SUREFIRE-503) Parent pom settings not overridden
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated SUREFIRE-503:
---------------------------------------
Description:
In my team parent pom from which all projects inherit I have this in the pom
{code:xml}
<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>
{code}
In my project pom I was to add some more exclusions and inclusions so I added this
{code:xml}
<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>
{code}
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.
was:
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.
> Parent pom settings not overridden
> ----------------------------------
>
> Key: SUREFIRE-503
> URL: http://jira.codehaus.org/browse/SUREFIRE-503
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire 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
> {code:xml}
> <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>
> {code}
> In my project pom I was to add some more exclusions and inclusions so I added this
> {code:xml}
> <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>
> {code}
> 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
[jira] Closed: (SUREFIRE-503) Parent pom settings not overridden
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed SUREFIRE-503.
--------------------------------------
Resolution: Not A Bug
Assignee: Benjamin Bentmann
This is a misconfiguration, duplicate plugin declarations are not allowed. The proper setup for the parent POM and the child POM is:
{code:xml}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*ITest.java</exclude>
</excludes>
</configuration>
<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>
{code}
{code:xml}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/functest/**</exclude>
<exclude>**/perftest/**</exclude>
</excludes>
</configuration>
<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>
{code}
> Parent pom settings not overridden
> ----------------------------------
>
> Key: SUREFIRE-503
> URL: http://jira.codehaus.org/browse/SUREFIRE-503
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.4.2
> Environment: Windows XP SP2, Maven 2.0.9
> Reporter: Paul Grove
> Assignee: Benjamin Bentmann
>
> In my team parent pom from which all projects inherit I have this in the pom
> {code:xml}
> <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>
> {code}
> In my project pom I was to add some more exclusions and inclusions so I added this
> {code:xml}
> <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>
> {code}
> 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
[jira] Commented: (SUREFIRE-503) Parent pom settings not overridden
Posted by "Nicholas White (JIRA)" <ji...@codehaus.org>.
[ 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