You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2023/05/27 11:38:00 UTC
[jira] [Assigned] (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:all-tabpanel ]
Elliotte Rusty Harold reassigned MPIR-397:
------------------------------------------
Assignee: (was: Elliotte Rusty Harold)
> 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.20.10#820010)