You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2023/03/14 22:22:00 UTC

[jira] [Commented] (MENFORCER-400) DependencyConvergence - poor error message

    [ https://issues.apache.org/jira/browse/MENFORCER-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17700403#comment-17700403 ] 

Slawomir Jaranowski commented on MENFORCER-400:
-----------------------------------------------

Please retest with the 3.2.1 version.

 

> DependencyConvergence - poor error message
> ------------------------------------------
>
>                 Key: MENFORCER-400
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-400
>             Project: Maven Enforcer Plugin
>          Issue Type: Improvement
>          Components: Plugin, Standard Rules
>    Affects Versions: 3.0.0
>            Reporter: T. Mohme
>            Priority: Minor
>
> For some dependencies that are not available I get only a very unspecific message like 
> {noformat}
> [WARNING] Rule 1: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
> Could not build dependency tree Could not collect dependencies: com.acme:my-project:jar:1.0.0 ()
> {noformat}
> Only when running maven with "-X" I get a clue what is going on, but then I have to scan over 1600 lines of output to find what actually happened:
> {noformat}
> Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect dependencies at com.acme:my-project:jar:1.0.0 -> io.quarkus:quarkus-flyway:jar:2.2.3.Final -> io.quarkus:quarkus-agroal:jar:2.2.3.Final -> io.quarkus:quarkus-narayana-jta:jar:2.2.3.Final -> org.jboss.narayana.jts:narayana-jts-integration:jar:5.12.0.Final -> org.jboss.narayana.jts:idlj-idl:jar:5.12.0.Final
> ...
> Caused by: org.apache.maven.wagon.TransferFailedException: transfer failed for https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/org/jboss/narayana/jts/idlj-idl/5.12.0.Final/idlj-idl-5.12.0.Final.pom
> {noformat}
> This information should somehow get collected internally when the problem happens and presented to the user together with the above mentioned warning log message.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)