Issue Details (XML | Word | Printable)

Key: MNG-3522
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Thomas Diesler
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2

Cannot define execution order explicitly

Created: 14/Apr/08 08:16 AM   Updated: 12/Jun/08 09:37 PM
Component/s: Plugins and Lifecycle
Affects Version/s: 2.0.9
Fix Version/s: 3.0

Time Tracking:
Not Specified

Issue Links:
Duplicate
 

Complexity: Intermediate


 Description  « Hide
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.
<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>


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Thomas Diesler added a comment - 14/Apr/08 08:16 AM
This issue probably applies to plugin execution in general, not just antrun

Benjamin Bentmann added a comment - 14/Apr/08 08:24 AM
Thomas, when posting XML/Java snippets of any other text with preformatting, please consider to use the proper wiki syntax. This greatly eases reading.

Benjamin Bentmann added a comment - 14/Apr/08 08:35 AM
Maybe you would like to join the discussion at a related proposal named Lifecylce and Plugin Handling.