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 2022/07/27 16:49:00 UTC

[jira] [Updated] (MENFORCER-401) DependencyConvergence ignores exclusions

     [ https://issues.apache.org/jira/browse/MENFORCER-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Slawomir Jaranowski updated MENFORCER-401:
------------------------------------------
    Fix Version/s:     (was: waiting-for-feedback)

> DependencyConvergence ignores exclusions
> ----------------------------------------
>
>                 Key: MENFORCER-401
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-401
>             Project: Maven Enforcer Plugin
>          Issue Type: Bug
>          Components: Plugin, Standard Rules
>    Affects Versions: 3.0.0
>            Reporter: T. Mohme
>            Priority: Critical
>
> In my project there is a transitive dependency on an artifact ("idlj-idl") with scope=provided that cannot be resolved (this probably is a different problem) - so far, so good (bad).
> {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
> ...{noformat}
> Interestingly, `./mvnw dependency:tree` doesn't show this dependency.
> The tree descends only down to "narayana-jts-integration".
> When I exclude the unresolvable dependency ("idle-idl") from an artifact before it in the  chain shown by the exception cause, this has no impact:
> {noformat}
>         <dependency>
>             <groupId>io.quarkus</groupId>
>             <artifactId>quarkus-agroal</artifactId>
>             <exclusions>
>                 <exclusion>
>                     <groupId>org.jboss.narayana.jts</groupId>
>                     <artifactId>idlj-idl</artifactId>
>                 </exclusion>
>         </dependency>
> {noformat}



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