-
Notifications
You must be signed in to change notification settings - Fork 267
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
NPE on versions:set when updating a versionless dependency #654
Comments
Here this NPE comes from the fact that the artifact to upgrade is not present in the reactor model, so maybe for this case, the actual fix should be throwing a MojoExecutionException with some sensible reason/message? |
andrzejj0
changed the title
NPE on versions:set when updating a versionless dependency (with version declared in dependencyManagement)
NPE on versions:set when updating a versionless dependency
Aug 26, 2022
andrzejj0
added a commit
to andrzejj0/versions-maven-plugin
that referenced
this issue
Aug 27, 2022
andrzejj0
added a commit
to andrzejj0/versions-maven-plugin
that referenced
this issue
Aug 27, 2022
slawekjaranowski
pushed a commit
that referenced
this issue
Aug 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While investigating #604, I came upon a very similar issue, also leading to an NPE, when updating the version of an artifact mentioned in dependencyManagement, without a version in dependencies.
And indeed, it leads to a quite similar stack trace (not the same though):
Originally posted by @ajarmoniuk in #604 (comment)
The text was updated successfully, but these errors were encountered: