Collection elements inside a per-execution plugin config are collapsed in combination with pluginManagement -----------------------------------------------------------------------------------------------------------
Key: MNG-3864 URL: http://jira.codehaus.org/browse/MNG-3864 Project: Maven 2 Issue Type: Bug Components: Plugins and Lifecycle, POM Affects Versions: 3.0-alpha-1 Reporter: Benjamin Bentmann The build for plexus-classworlds is currently failing because the POM snippet: {code:xml} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.0</version> <executions> <execution> <phase>generate-test-resources</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>ant</groupId> <artifactId>ant</artifactId> <version>1.6.5</version> </artifactItem> <artifactItem> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.0.3</version> </artifactItem> <artifactItem> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> <version>1.3.02</version> </artifactItem> </artifactItems> <outputDirectory>${project.build.directory}/test-lib</outputDirectory> </configuration> </execution> </executions> </plugin> {code} ends up as the effective POM {code:xml} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.0</version> <executions> <execution> <phase>generate-test-resources</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>ant</groupId> <artifactId>ant</artifactId> <version>1.6.5</version> </artifactItem> </artifactItems> <outputDirectory>${project.build.directory}/test-lib</outputDirectory> </configuration> </execution> </executions> </plugin> {code} i.e. all but the first {{<artifactItem>}} element are lost. -- 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