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

[regression] Maven erroneously assumes "org.apache.maven.plugins" for dependencies without groupId

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0-alpha-1
    • 3.0-alpha-1
    • Dependencies, POM
    • None

    Description

      POM snippet:

      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>test</artifactId>
            <version>1.0</version>
          </dependency>
        </dependencies>
      </dependencyManagement>
      
      <dependencies>
        <dependency>
          <artifactId>test</artifactId>
          <version>1.0</version>
        </dependency>
      </dependencies>
      

      delivers effective POM

      <dependencies>
        <dependency>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>test</artifactId>
          <version>1.0</version>
          <scope>compile</scope>
        </dependency>
      </dependencies>
      

      although the POM should not pass validation.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: