Skip to content

Commit

Permalink
write to stderr when no maven wagon was found
Browse files Browse the repository at this point in the history
Otherwise, this problem is completely invisible,
ending up as "cannot resolve maven artifact" only.
  • Loading branch information
haubi committed Feb 23, 2024
1 parent f92b286 commit 3e30e2e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,9 @@ private static Wagon newOfFirstWagonAvailable(String... classnames)
if (clazz != null) {
return clazz.newInstance();
}
throw new ClassNotFoundException("one of " + String.join(", ", classnames));
ClassNotFoundException e = new ClassNotFoundException("one of " + String.join(", ", classnames));
e.printStackTrace();
throw e;
}

@Override
Expand Down

0 comments on commit 3e30e2e

Please sign in to comment.