Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.4
-
None
-
None
Description
Given a Mojo with @Parameter annotations without any further annotation arguments like property or defaultValue, when invoking the generated help mojo for details
mvn myplugin:help -Dgoal=mygoal -Ddetail=true
then the Mojo fails with a NullPointerException:
Caused by: java.lang.NullPointerException at org.ops4j.pax.warp.maven.HelpMojo.findNamedChild(HelpMojo.java:203) at org.ops4j.pax.warp.maven.HelpMojo.findSingleChild(HelpMojo.java:218) at org.ops4j.pax.warp.maven.HelpMojo.writeParameter(HelpMojo.java:276) at org.ops4j.pax.warp.maven.HelpMojo.writeGoal(HelpMojo.java:264) at org.ops4j.pax.warp.maven.HelpMojo.execute(HelpMojo.java:164) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)