Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4345

[regression] Plugin executions contributed by default lifecycle mapping execute after other plugin executions bound to the same phase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-alpha-3
    • 3.0-alpha-3
    • Plugins and Lifecycle
    • None

    Description

      For the following snippet

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

      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.

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: