[ 
https://jira.codehaus.org/browse/MNG-3522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=347826#comment-347826
 ] 

Jörg Schaible commented on MNG-3522:
------------------------------------

So look at the conversation at the list, others mentioned a similar example. 
The whole purpose of this functionality is to define the execution order within 
a phase, profiles will add such executions and you may want to define the order 
nevertheless. So, anyone who implements this, is better be prepared for the 
situation. That's why I proposed a distinction between soft and hard 
requirement (or whatever you will name it). A possible solution can be a 
different notation, e.g. for the example above: "first,(sign)" i.e. an 
execution named "sign" must not have been necessarily defined and will be 
ignored.

> Cannot define execution order explicitly
> ----------------------------------------
>
>                 Key: MNG-3522
>                 URL: https://jira.codehaus.org/browse/MNG-3522
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.0.9
>            Reporter: Thomas Diesler
>             Fix For: Issues to be reviewed for 3.x
>
>
> In this example antrun:run is excuted after dependency:copy-dependencies by 
> virtue of plugin order. Preferable would be an explicit order definition. For 
> example, a plugin could export a 'phase-id' that another uses in its 'phase' 
> element.
> {code:xml}
> <plugins>
>   <plugin>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-dependency-plugin</artifactId>
>     <executions>
>       <execution>
>         <id>copy-dependencies</id>
>         <phase>package</phase>
>         <goals>
>           <goal>copy-dependencies</goal>
>         </goals>
>         <configuration>
>           
> <outputDirectory>${project.build.directory}/thirdparty</outputDirectory>
>           <stripVersion>true</stripVersion>
>         </configuration>
>       </execution>
>     </executions>
>   </plugin>
>   <plugin>
>     <artifactId>maven-antrun-plugin</artifactId>
>     <executions>
>       <execution>
>         <phase>package</phase>
>         <goals>
>           <goal>run</goal>
>         </goals>
>         <configuration>
>           <tasks>
>             <ant antfile="ant/build-concat.xml"/>
>           </tasks>
>         </configuration>
>       </execution>
>     </executions>
>   </plugin>
> </plugins>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to