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

fix(resolve-ranges): fail properly on managed dep without version #452

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

mfriedenhagen
Copy link
Member

@mfriedenhagen mfriedenhagen commented Mar 19, 2021

  • mvn validate does choke on dependencies without versions.
  • However in managed dependencies a missing version is ignored.
  • resolve-ranges does throw a NPE, which is not helpful.
  • So fail with available coordinates to make fixing easier.
  • When the artifactId is missing in a managed dependency Maven core
    will aready fail.

Resolve #442

 * `mvn validate` does choke on dependencies without versions.
 * However in managed dependencies a missing version is ignored.
 * resolve-ranges does throw a NPE, which is not helpful.
 * So fail with available coordinates to make fixing easier.
 * When the artifactId is missing in a managed dependency Maven core
will aready fail.

Resolve #442
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

Successfully merging this pull request may close these issues.

NPE upon versionless dependencies in dependencyManagement
1 participant