You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/07/29 10:04:00 UTC
[jira] [Closed] (MENFORCER-353) Consistently format artifacts same
as dependency:tree
[ https://issues.apache.org/jira/browse/MENFORCER-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MENFORCER-353.
------------------------------------
Resolution: Fixed
Fixed with [8bfbb802d9d6925eb248a13457db1210f0dd59a6|https://gitbox.apache.org/repos/asf?p=maven-enforcer.git;a=commit;h=8bfbb802d9d6925eb248a13457db1210f0dd59a6].
> Consistently format artifacts same as dependency:tree
> -----------------------------------------------------
>
> 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
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 3.0.0-M4
>
>
> 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)