Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-353

Consistently format artifacts same as dependency:tree

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-M3
    • 3.0.0
    • Standard Rules
    • None

    Description

      dependencies to test

          <dependencies>
              <dependency>
                  <groupId>org.testng</groupId>
                  <artifactId>testng</artifactId>
                  <version>7.1.0</version>
              </dependency>
      
              <dependency>
                  <groupId>org.apache.maven</groupId>
                  <artifactId>maven-core</artifactId>
                  <version>3.5.0</version>
              </dependency>
          </dependencies>
      

      We got information (there are other missing converge):

      [WARNING] 
      Dependency convergence error for com.google.inject:guice:4.1.0 paths to dependency are:
      +-test.example.com:test:1.0.0-SNAPSHOT
        +-org.testng:testng:7.1.0
          +-com.google.inject:guice:4.1.0
      and
      +-test.example.com:test:1.0.0-SNAPSHOT
        +-org.apache.maven:maven-core:3.5.0
          +-com.google.inject:guice:4.0
      

      To resolve it we should add:

                  <dependency>
                      <groupId>com.google.inject</groupId>
                      <artifactId>guice</artifactId>
                      <classifier>no_aop</classifier>
                      <version>4.1.0</version>
                  </dependency>
      

      In log message information about artifact classifier is missing. It will be useful to know classifier, in other case we need do some more discovery to find it.

      Eg dependency:tree show it

      [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ test ---
      [INFO] test.example.com:test:jar:1.0.0-SNAPSHOT
      [INFO] +- org.testng:testng:jar:7.1.0:compile
      [INFO] |  +- com.beust:jcommander:jar:1.72:compile
      [INFO] |  +- com.google.inject:guice:jar:no_aop:4.1.0:compile
      ....
      

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              sjaranowski Slawomir Jaranowski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: