[ https://jira.codehaus.org/browse/MNG-5174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MNG-5174: ----------------------------------- Attachment: MNG-5174.zip Running {{mvn package -V}} on the attached example project yields: {noformat} Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100) Java version: 1.5.0_22, vendor: Sun Microsystems Inc. Java home: D:\java\jdk-1.5\jre Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building test 0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-dependency-plugin:2.3:copy-dependencies (copy-dependencies) @ test --- [INFO] junit-3.8.2.jar already exists in destination. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.565s [INFO] Finished at: Thu Sep 15 15:08:16 CEST 2011 [INFO] Final Memory: 9M/157M [INFO] ------------------------------------------------------------------------ {noformat} i.e. the issue cannot be reproduced from the provided information. > Plugin Configuration from Grandparent Not Executed on Grandchild > ---------------------------------------------------------------- > > Key: MNG-5174 > URL: https://jira.codehaus.org/browse/MNG-5174 > Project: Maven 2 & 3 > Issue Type: Bug > Components: Inheritance and Interpolation > Affects Versions: 3.0.2 > Environment: ava version: 1.6.0_24, vendor: Apple Inc. > Default locale: en_US, platform encoding: MacRoman > OS name: "mac os x", version: "10.6.7", arch: "x86_64", family: "mac" > Reporter: Lon Binder > Priority: Blocker > Attachments: build.log, MNG-5174.zip > > > Summary: The configuration of a plugin in the grandparent of a project, > whether in <plugins> or <pluginManagement> is not properly inherited to > grandchild. > To reproduce: > Setup: > POM C extends POM B; POM B extends POM A > POM A includes: > {code} > ... > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-dependency-plugin</artifactId> > <version>2.3</version> > <executions> > <execution> > <id>copy-dependencies</id> > <phase>package</phase> > <goals> > > <goal>copy-dependencies</goal> > </goals> > <configuration> > > <outputDirectory>${project.build.directory}/dependency-libs</outputDirectory> > </configuration> > </execution> > </executions> > </plugin> > </plugins> > > </build> > ... > {code} > Then in the POM C folder execute {{mvn package}}. The plugin does not work. > If the same configuration is moved or copied to POM B, then the execution in > POM C's folder is repeated, it works fine. > The same holds true if the above is moved to POM A's {{<pluginManagement>}} > node (and the appropriate {{<plugin>}} groupId and artifactId are added to > POM C). It even holds true if you do this and add additional to POM B. > Unless the full config is in POM B (or POM C) then it will not run from POM C. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira