Skip to content

Commit

Permalink
Show GAV for null Maven repository (#2637)
Browse files Browse the repository at this point in the history
Fixes #2636
  • Loading branch information
timtebeek authored and sambsnyd committed Jan 14, 2023
1 parent 8dab43f commit c48485e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public Path downloadArtifact(ResolvedDependency dependency) {

return mavenArtifactCache.computeArtifact(dependency, () -> {
try {
String uri = requireNonNull(dependency.getRepository()).getUri() + "/" +
String uri = requireNonNull(dependency.getRepository(),
String.format("Respository for dependency '%s' was null.", dependency)).getUri() + "/" +
dependency.getGroupId().replace('.', '/') + '/' +
dependency.getArtifactId() + '/' +
dependency.getVersion() + '/' +
Expand Down

0 comments on commit c48485e

Please sign in to comment.