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

[regression] Plugin executions without id are lost when multiple executions are defined

    XMLWordPrintableJSON

Details

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

    Description

      Input POM:

      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.its.plugins</groupId>
            <artifactId>maven-it-plugin-log-file</artifactId>
            <version>2.1-SNAPSHOT</version>
            <configuration>
              <logFile>target/exec.log</logFile>
              <string>exec-/string>
            </configuration>
            <executions>
              <execution>
                <id>exec-1</id>
                <phase>validate</phase>
                <goals>
                  <goal>log-string</goal>
                </goals>
              </execution>
              <execution>
                <!-- NOTE: <id> deliberately omitted here! -->
                <phase>validate</phase>
                <goals>
                  <goal>log-string</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      

      Effective POM:

      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.its.plugins</groupId>
            <artifactId>maven-it-plugin-log-file</artifactId>
            <version>2.1-SNAPSHOT</version>
            <configuration>
              <logFile>target/exec.log</logFile>
              <string>exec</string>
            </configuration>
            <executions>
              <execution>
                <id>exec-1</id>
                <phase>validate</phase>
                <goals>
                  <goal>log-string</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      

      Note that the execution without <id> is missing.

      Attachments

        Activity

          People

            sisbell Britton Isbell
            bentmann Benjamin Bentmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: