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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-alpha-3
    • Fix Version/s: 3.0-alpha-3
    • Component/s: Plugins and Lifecycle
    • Labels:
      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

              • Assignee:
                bentmann Benjamin Bentmann
                Reporter:
                bentmann Benjamin Bentmann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: