You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2009/09/08 11:40:35 UTC

[jira] Commented: (MNG-4345) [regression] Plugin executions contributed by default lifecycle mapping execute after other plugin executions bound to the same phase

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

Benjamin Bentmann commented on MNG-4345:
----------------------------------------

This was caused by my changes for MNG-4341. In trying to express all the plugin executions solely by means of the POM, it got apparent that the POM is not capable to describe the executional model of Maven 2.x. Plugin executions contributed by default lifecycle mappings are treated differently than ordinary plugin executions but the POM doesn't provide the means to tell those two kinds of plugin executions apart.

> [regression] Plugin executions contributed by default lifecycle mapping execute after other plugin executions bound to the same phase
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4345
>                 URL: http://jira.codehaus.org/browse/MNG-4345
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 3.0-alpha-3
>            Reporter: Benjamin Bentmann
>
> For the following snippet
> {code:xml}
> <plugin>
>   <groupId>org.apache.maven.its.plugins</groupId>
>   <artifactId>maven-it-plugin-log-file</artifactId>
>   <version>2.1-SNAPSHOT</version>
>   <executions>
>     <execution>
>       <phase>process-resources</phase>
>       <goals>
>         <goal>log-string</goal>
>       </goals>
>     </execution>
>   </executions>
> </plugin>
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-resources-plugin</artifactId>
>   <version>0.1-stub-SNAPSHOT</version>
> </plugin>
> {code}
> where both maven-it-plugin-log-file and maven-resources-plugin bind executions to the lifecycle phase "process-resources" and maven-resources-plugin is declared after maven-it-plugin-log-file with respect to POM order, trunk executes the goal {{log-string}} before {{resources}}, in contrast to Maven 2.

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