-
Notifications
You must be signed in to change notification settings - Fork 35
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
NullPointerException
from ClassWrangler.getGroovyVersionString
#210
Comments
Usually this happens because you don't have groovy as a project dependency. Can I see your POM? |
Oh I long since solved the root problem—had an improper dependency somewhere. The point of the issue is that the mojo is throwing an NPE rather than gracefully reporting an error in this corner case. Or rather, it does log appropriate errors, but the immediate build failure cause is an NPE which grabs attention away from them. |
I think that stacktrace only shows up when you are using a commandline switch such as debug ( |
Throw exception instead of returning null when Groovy can't be found (closes #210)
|
GMavenPlus/src/main/java/org/codehaus/gmavenplus/util/ClassWrangler.java
Line 121 in eb7f459
getGroovyJar
.The text was updated successfully, but these errors were encountered: