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

[regression] Plugin definitions from child and parent are not merged when version differs

    XMLWordPrintableJSON

Details

    • Patch

    Description

      Parent POM snippet

      <plugins>
        <plugin>
          <groupId>org.apache.maven.its.plugins</groupId>
          <artifactId>maven-it-plugin-configuration</artifactId>
          <!-- Note missing version element -->
          <configuration>
            <stringParam>PASSED</stringParam>
          </configuration>
        </plugin>
      </plugins>
      

      Child POM snippet:

      <plugins>
        <plugin>
          <groupId>org.apache.maven.its.plugins</groupId>
          <artifactId>maven-it-plugin-configuration</artifactId>
          <version>2.1-SNAPSHOT</version>
        </plugin>
      </plugins>
      

      Effective child POM:

      <plugins>
        <plugin>
          <groupId>org.apache.maven.its.plugins</groupId>
          <artifactId>maven-it-plugin-configuration</artifactId>
          <version>2.1-SNAPSHOT</version>
        </plugin>
      </plugins>
      

      i.e. the configuration from the parent POM is completely lost.

      Attachments

        1. plugin-model-container.patch
          23 kB
          Benjamin Bentmann

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: