Details
Description
additionalJvmArgs is assumed to be non-null when fork=true, but that is not the case when running on a non-modular JDK and not specifying explicitly a non-empty value for additionalJvmArgs in the configuration XML.
In the case were requiresModules=true a null value is changed to an empty string, but if requiresModules is false the null value remains.
if (fork) { String[] split = additionalJvmArgs.split("\\s+");
Caused by: java.lang.NullPointerException
at org.apache.cxf.maven_plugin.Java2WSMojo.initArgs (Java2WSMojo.java:296)
Work-around is to specify a non-empty value for <additionalJvmArgs> , e.g. <additionalJvmArgs>-Dworkaroundnpe</additionalJvmArgs>
Attachments
Issue Links
- links to