You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Scott Kawaguchi (JIRA)" <ji...@codehaus.org> on 2012/08/23 04:29:21 UTC

[jira] (MNG-3522) Cannot define execution order explicitly

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

Scott Kawaguchi commented on MNG-3522:
--------------------------------------

need this one too trying to compile clojure and java in same module.
                
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira