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/12/11 19:01:00 UTC

[jira] [Commented] (MPIR-397) dependency-management report fails on managed dependencies with 'null' version

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

Michael Osipov commented on MPIR-397:
-------------------------------------

bq. btw: the set of managed but totally unused dependencies is an interesting topic on its own for huge multimodule projects.

Detection of those is subject to the Dependency plugin. But especially when this applies to deep transitives it is going to be hard to detect unused ones.

bq. I know I'm barely scratching the surface atm but from the top of my head: what if we filled in the blanks from the project resolved set of artifacts and skip over the managed dependencies with no version and no match among the artifacts?

Maybe possible, but I don't have any capacities to work on this. I am a bit anxious to produce partial reports and leave potentionally import information. Even if we log out as a warning, people often do ignore them...

> dependency-management report fails on managed dependencies with 'null' version
> ------------------------------------------------------------------------------
>
>                 Key: MPIR-397
>                 URL: https://issues.apache.org/jira/browse/MPIR-397
>             Project: Maven Project Info Reports Plugin
>          Issue Type: Bug
>          Components: dependency-management
>    Affects Versions: 2.7, 2.9, 3.0.0, 3.1.0
>         Environment: Microsoft Windows 10, Maven 3.5.4, Azul OpenJDK8 or Azul OpenJDK7
>            Reporter: Carsten Rohde
>            Priority: Major
>         Attachments: pirbug-aggregator.zip
>
>
> Maven allows to have managed dependencies without a version. This can be very useful, because this way you can change the scope of a transitive dependency without affecting the resolved version.
> The dependency-management report however fails under such circumstances:
> {code:java}
> Error generating maven-project-info-reports-plugin:3.1.0:dependency-management report: For artifact {pirbugdemo:pirbug-transitive:null:jar}: The version cannot be empty
> {code}
> There has been a similar issue with the versions-maven-plugin: https://github.com/mojohaus/versions-maven-plugin/issues/114
>  
> The example mainly consists of a "consumer" module with a dependency to a "dependency" module wich in turn has a dependency to a third module "transitive". In the consumer module, the "transitive" dependency is managed without setting the version.
> If there is a workaround, please let me know.
>  
> Thanks a lot!
>  



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