[ 
http://jira.codehaus.org/browse/MNG-2258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=187501#action_187501
 ] 

John Casey commented on MNG-2258:
---------------------------------

Re-specifying the same plugin in two different XML blocks of the build section 
within the same POM (without using profiles) is NOT valid. This is a recipe for 
disaster. If users must replicate any new configurations across multiple plugin 
sections just to get consistent behavior for all mojos in a plugin, this will 
cause massive confusion.

I do agree that we should detect this scenario and fail with a validation 
error, so I'm not going to close this issue yet. But if you want two mojo 
executions from the same plugin to happen before and after another mojo from 
another plugin, you must assign them to different phases to arrange this.

> Wrong execution order of plugins in same phase
> ----------------------------------------------
>
>                 Key: MNG-2258
>                 URL: http://jira.codehaus.org/browse/MNG-2258
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>         Environment: N/A
>            Reporter: David J. M. Karlsen
>            Priority: Blocker
>         Attachments: mavenTest.zip
>
>
> AFAIK plugins should be execute in the same order as they are listed in the 
> POM, when bound to the same phase. This does not happen, the execution order 
> is arbitrary.

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

        

Reply via email to