Slawomir Jaranowski created MENFORCER-353:
---------------------------------------------
Summary: DependencyConvergence - should display artifact
classifier in warning
Key: MENFORCER-353
URL: https://issues.apache.org/jira/browse/MENFORCER-353
Project: Maven Enforcer Plugin
Issue Type: Improvement
Components: Standard Rules
Affects Versions: 3.0.0-M3
Reporter: Slawomir Jaranowski
dependencies to test
{code}
<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>
{code}
We got information (there are other missing converge):
{code}
[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
{code}
To resolve it we should add:
{code}
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<classifier>no_aop</classifier>
<version>4.1.0</version>
</dependency>
{code}
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
{code}
[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
....
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)