jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-3522

Cannot define execution order explicitly

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.0.9
  • Fix Version/s: Issues to be reviewed for 3.x
  • Component/s: Plugins and Lifecycle
  • Labels:
    None
  • Complexity:
    Intermediate

Description

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>

Issue Links

is duplicated by

Bug - A problem which impairs or prevents the functions of the product. MNG-3528 Order of executing plugins in maven 2.0.9

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Improvement - An improvement or enhancement to an existing feature or task. MNG-4727 Allow ordering plugin execution via <id/>

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Improvement - An improvement or enhancement to an existing feature or task. MNG-5090 Maven End Users should be able to control the execution order of plugins without creating a custom Lifecycle and Package Type

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Thomas Diesler added a comment - 14/Apr/08 8:16 AM

This issue probably applies to plugin execution in general, not just antrun

Show
Thomas Diesler added a comment - 14/Apr/08 8:16 AM This issue probably applies to plugin execution in general, not just antrun
Hide
Permalink
Benjamin Bentmann added a comment - 14/Apr/08 8: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.

Show
Benjamin Bentmann added a comment - 14/Apr/08 8: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.
Hide
Permalink
Benjamin Bentmann added a comment - 14/Apr/08 8:35 AM

Maybe you would like to join the discussion at a related proposal named Lifecylce and Plugin Handling.

Show
Benjamin Bentmann added a comment - 14/Apr/08 8:35 AM Maybe you would like to join the discussion at a related proposal named Lifecylce and Plugin Handling.
Hide
Permalink
Wim Deblauwe added a comment - 13/Jul/10 7:14 AM - edited

Voted for this one. I really need it. See MNG-4727 for my usecase and a patch against maven-2.2.x that allows this.

Show
Wim Deblauwe added a comment - 13/Jul/10 7:14 AM - edited Voted for this one. I really need it. See MNG-4727 for my usecase and a patch against maven-2.2.x that allows this.

People

  • Assignee:
    Unassigned
    Reporter:
    Thomas Diesler
Vote (9)
Watch (8)

Dates

  • Created:
    14/Apr/08 8:16 AM
    Updated:
    10/May/11 4:57 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.