You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (Jira)" <ji...@apache.org> on 2021/05/22 15:18:00 UTC

[jira] [Commented] (MSHARED-890) Reactor dependencies not removed from unresolved

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

Robert Scholte commented on MSHARED-890:
----------------------------------------

Root cause is the change of method signatures of DependencyResolutionResult between Maven 3.0.5 and 3.1.0
Code now uses Maven 3.0 to compile its classes, however at runtime this can be Maven 3.1.0+, hence that is why you see the reflection tthis compile-time solve that issue.

> Reactor dependencies not removed from unresolved
> ------------------------------------------------
>
>                 Key: MSHARED-890
>                 URL: https://issues.apache.org/jira/browse/MSHARED-890
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-dependency-tree
>    Affects Versions: maven-dependency-tree-3.0.1
>            Reporter: Piotr Zygielo
>            Priority: Minor
>
> Violation of [Spotbugs GC_UNRELATED_TYPES|https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#gc-no-relationship-between-generic-parameter-and-method-argument-gc-unrelated-types].
> Similar described as [Sonar rule|https://rules.sonarsource.com/java/type/Bug/RSPEC-2175].
> Due to
> bq. java.util.List&lt;org.*{color:red}eclipse{color}*.aether.graph.Dependency&gt; is incompatible with expected argument type java.util.List&lt;org.*{color:red}sonatype{color}*.aether.graph.Dependency&gt; in org.apache.maven.shared.dependency.graph.internal.Maven31DependencyGraphBuilder.collectDependenciesFromReactor(DependencyResolutionException, Collection)
> at
> [Maven31DependencyGraphBuilder.java:147|https://gitbox.apache.org/repos/asf?p=maven-dependency-tree.git;a=blob;f=src/main/java/org/apache/maven/shared/dependency/graph/internal/Maven31DependencyGraphBuilder.java;h=5a53dcb0aaa2cc81e86b5dd23883954d426089e9;hb=HEAD#l147]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)