You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brian Fox (JIRA)" <ji...@codehaus.org> on 2006/02/08 21:08:47 UTC

[jira] Created: (MNG-2054) Multiple Inheritence causes plugin executions to run multiple times (Test Case Attached)

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
 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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-2054) Multiple Inheritence causes plugin executions to run multiple times (Test Case Attached)

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2054?page=all ]

Carlos Sanchez updated MNG-2054:
--------------------------------

       Priority: Critical  (was: Major)
    Fix Version: 2.0.3

> 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
>     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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Reopened: (MNG-2054) Multiple Inheritence causes plugin executions to run multiple times (Test Case Attached)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2054?page=all ]
     
John Casey reopened MNG-2054:
-----------------------------


> 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
>     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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-2054) Multiple Inheritence causes plugin executions to run multiple times (Test Case Attached)

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2054?page=comments#action_59328 ] 

Brian Fox commented on MNG-2054:
--------------------------------

I verified in my sample and in my real project that this appears to be fixed in 2.0.3. The fixed version should be updated so that the JIRA report reflects the correct information. I'd like to see this get created as an integration test to prevent future regresion, but I'm not 100% sure how to test for this condition.

> 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
>     Priority: Critical
>      Fix For: 2.0.4
>  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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-2054) Multiple Inheritence causes plugin executions to run multiple times (Test Case Attached)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2054?page=all ]
     
John Casey closed MNG-2054:
---------------------------

    Resolution: Fixed

confirmed fixed by Brian Fox, I just added a variant of sample.zip as it0096.

> 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
>     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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-2054) Multiple Inheritence causes plugin executions to run multiple times (Test Case Attached)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2054?page=all ]
     
John Casey closed MNG-2054:
---------------------------

      Assign To: John Casey
     Resolution: Fixed
    Fix Version:     (was: 2.0.4)
                 2.0.3

> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-2054) Multiple Inheritence causes plugin executions to run multiple times (Test Case Attached)

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2054?page=comments#action_58178 ] 

Brian Fox commented on MNG-2054:
--------------------------------

Further investigation using help:effective-pom shows that the plugin configuration actually gets included 2x in the pom. Shouldn't executions with the same name be merged with their parent?

> 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
>  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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-2054) Multiple Inheritence causes plugin executions to run multiple times (Test Case Attached)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2054?page=all ]

John Casey updated MNG-2054:
----------------------------

    Fix Version:     (was: 2.0.3)
                 2.0.4

> 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
>     Priority: Critical
>      Fix For: 2.0.4
>  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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org