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

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

    XMLWordPrintableJSON

    Details

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

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

              Dates

              • Created:
                Updated:
                Resolved: