-
Notifications
You must be signed in to change notification settings - Fork 21
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 when setting "addedToClassPath=true" without specifying output directory #41
Comments
I'm not super familiar with the transform goal, but I'll have a go at it. Can I assume you explicitly set the output directory to null? It's supposed to default if not supplied. If so, should this fail as a configuration error? |
Le 23 févr. 2018 à 23:08, Ross Lamont <[email protected]> a écrit :
I'm not super familiar with the transform goal, but I'll have a go at it.
Thanks !
Can I assume you explicitly set the output directory to null? It's supposed to default if not supplied.
If so, should this fail as a configuration error?
Actually not, the output dir option was not supplied at all. I was surprised as I saw there was a default value, but I assume the variable is actually null and the default value is managed afterwards.
When supplied explicitly the parameter with its default value, it works :
<outputDir>${project.build.directory}/generated-resources/xml/xslt</outputDir>
<addedToClasspath>true</addedToClasspath>
|
On Fri, Feb 23, 2018 at 11:08 PM, Ross Lamont ***@***.***> wrote:
Can I assume you explicitly set the output directory to null? It's
supposed to default if not supplied.
And, how would one do that, because Maven is handling the default values?
Jochen
|
Presumably by mistake. Sounds like the defaulting isn't working for some reason. |
In a comment on issue #40 jochenw said:
If a developer explicitly sets something to null, then surely this should override the default? In this particular case that would be an error so I'm not in a great rush to do anything about it. |
Fixed #41. "addedToClassPath" setting not using proper outputDir default
Caused by: java.lang.NullPointerException at org.codehaus.mojo.xml.TransformMojo.addToClasspath(TransformMojo.java:253) at org.codehaus.mojo.xml.TransformMojo.transform(TransformMojo.java:569) at org.codehaus.mojo.xml.TransformMojo.execute(TransformMojo.java:632) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) ... 21 more
The text was updated successfully, but these errors were encountered: