Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency between display-dependency-updates and dependency-updates-report #1142

Open
itroll42 opened this issue Sep 18, 2024 · 2 comments

Comments

@itroll42
Copy link

I'm trying to run the dependency-updates-report on a multi module project.

I'm running this plugin on the parent pom of an application that contains 11 modules total.

The plugin fails with Execution default-cli of goal org.codehaus.mojo:versions-maven-plugin:2.16.2:dependency-updates-report failed: Cannot invoke "String.startsWith(String)" because the return value of "org.apache.maven.model.Dependency.getVersion()" is null -> [Help 1]

I've verified that all versions between the different sub poms and parent are good. In that theres no drift according to the documentation here: https://www.mojohaus.org/versions/versions-maven-plugin/examples/resolve-ranges.html

What I have seen however is that the display-dependency-updates works. And does spit out a listing of all libraries for each sub module independently.

Is the report not designed to do the same thing? Or what may I be doing wrong thats causing the report to fail, but the other way works?

@andrzejj0
Copy link
Contributor

andrzejj0 commented Oct 26, 2024

Please provide a pom.xml, options that you used to render the report and a debug log (use --debug or -X with Maven) reproducing the NPE.

@andrzejj0
Copy link
Contributor

It looks like you were trying to generate a report for a project containing a dependencyManagement section with a versionless dependency. Is that correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants