[ http://jira.codehaus.org/browse/MNG-2054?page=all ] Brian Fox reopened MNG-2054: ----------------------------
There was some regression on this issue between the RC and the final version. In 2.0.2, the sample ran the sources jar 3 times. In 2.0.3 RC, it ran only once (correct). In 2.0.3 final it now runs 2 times: [INFO] Installing E:\svn\dsms-2.1\legacy\hl7\target\hl7-2.1.0.7-SNAPSHOT.jar to e:\stc\mavenRepo\com\stchome\products\dsms\legacy\hl7\2.1.0.7-SNAPSHOT\hl7-2.1.0 .7-SNAPSHOT.jar [INFO] Installing E:\svn\dsms-2.1\legacy\hl7\target\hl7-2.1.0.7-SNAPSHOT-sources .jar to e:\stc\mavenRepo\com\stchome\products\dsms\legacy\hl7\2.1.0.7-SNAPSHOT\h l7-2.1.0.7-SNAPSHOT-sources.jar [INFO] Installing E:\svn\dsms-2.1\legacy\hl7\target\hl7-2.1.0.7-SNAPSHOT-sources .jar to e:\stc\mavenRepo\com\stchome\products\dsms\legacy\hl7\2.1.0.7-SNAPSHOT\h l7-2.1.0.7-SNAPSHOT-sources.jar > Multiple Inheritence causes plugin executions to run multiple times (Test > Case Attached) > ---------------------------------------------------------------------------------------- > > Key: MNG-2054 > URL: http://jira.codehaus.org/browse/MNG-2054 > Project: Maven 2 > Type: Bug > Components: Inheritence and Interpolation > Versions: 2.0.2 > Environment: WinXp > Reporter: Brian Fox > Assignee: John Casey > Priority: Critical > Fix For: 2.0.3 > Attachments: sample.zip > > > See the attached sample. If a plugin execution is set in a parent of a > parent, when the child is built from either aggregator, the plugin execution > runs multiple times. In my sample, I set the sources to be generated, but > when run, see that the sources are generated and installed 2x. > [INFO] Building jar: > E:\STC\sample\sample-parent2\sample-jar\target\sample-jar-SNAPSHOT-tests.jar > [INFO] [install:install] > [INFO] Installing > E:\STC\sample\sample-parent2\sample-jar\target\sample-jar-SNAPSHOT.jar to > f:\mavenRepo\sampl > e-project\sample-jar\SNAPSHOT\sample-jar-SNAPSHOT.jar > [INFO] Installing > E:\STC\sample\sample-parent2\sample-jar\target\sample-jar-SNAPSHOT-sources.jar > to f:\mavenRe > po\sample-project\sample-jar\SNAPSHOT\sample-jar-SNAPSHOT-sources.jar > [INFO] Installing > E:\STC\sample\sample-parent2\sample-jar\target\sample-jar-SNAPSHOT-sources.jar > to f:\mavenRe > po\sample-project\sample-jar\SNAPSHOT\sample-jar-SNAPSHOT-sources.jar > [INFO] Installing > E:\STC\sample\sample-parent2\sample-jar\target\sample-jar-SNAPSHOT-tests.jar > to f:\mavenRepo > \sample-project\sample-jar\SNAPSHOT\sample-jar-SNAPSHOT-tests.jar > [INFO] > If run directly from the child build, the sources are only built 1x: > [INFO] [jar:jar] > [INFO] Building jar: > E:\STC\sample\sample-parent2\sample-jar\target\sample-jar-SNAPSHOT.jar > [INFO] [source:jar {execution: attach-source}] > [INFO] Building jar: > E:\STC\sample\sample-parent2\sample-jar\target\sample-jar-SNAPSHOT-sources.jar > [INFO] [jar:test-jar {execution: default}] > [INFO] Building jar: > E:\STC\sample\sample-parent2\sample-jar\target\sample-jar-SNAPSHOT-tests.jar > [INFO] [install:install] > [INFO] Installing > E:\STC\sample\sample-parent2\sample-jar\target\sample-jar-SNAPSHOT.jar to > f:\mavenRepo\sampl > e-project\sample-jar\SNAPSHOT\sample-jar-SNAPSHOT.jar > [INFO] Installing > E:\STC\sample\sample-parent2\sample-jar\target\sample-jar-SNAPSHOT-sources.jar > to f:\mavenRe > po\sample-project\sample-jar\SNAPSHOT\sample-jar-SNAPSHOT-sources.jar > [INFO] Installing > E:\STC\sample\sample-parent2\sample-jar\target\sample-jar-SNAPSHOT-tests.jar > to f:\mavenRepo > \sample-project\sample-jar\SNAPSHOT\sample-jar-SNAPSHOT-tests.jar -- 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