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

Outdated version of maven-dependency-plugin in Maven 3.6.3

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.6.3
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Java 11.0.7; Maven 3.6.3; Linux

      Description

      When I run "mvn dependency:tree" with maven 3.6.3 to view the dependency hierarchy of the project currently being built, the result shows that the version of maven-dependency-plugin is 2.8.

      For example, I have a pom.xml file like this:

       

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>org.codehaus.mojo.flatten.its</groupId>
        <artifactId>test</artifactId>
        <version>0.0.1-SNAPSHOT</version>
      
        <dependencies>
          <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.13</version>
          </dependency>
        </dependencies>
      </project>
      

      When I run "mvn dependency:tree", the result is as follows:

       

      It shows that the maven-dependency-plugin version is 2.8.

      I have checked the org.apache:apache:23 where the maven-dependency-plugin is managed and the its version is defined as 3.1.1. But the output of dependency:tree shows the version is 2.8. So I think it is not an updating issue but a bug.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                yangnuoyu Nuoyu Yang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: