T. Mohme created MENFORCER-400:
----------------------------------

             Summary: 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


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.3.4#803005)

Reply via email to