You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2016/08/12 20:20:20 UTC
[jira] [Closed] (MPLUGIN-299) Help mojo cannot display goal details
[ https://issues.apache.org/jira/browse/MPLUGIN-299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MPLUGIN-299.
----------------------------------
Resolution: Fixed
Assignee: Robert Scholte
Fix Version/s: 3.5
Fixed in [r1756221|http://svn.apache.org/viewvc?rev=1756221&view=rev]
> Help mojo cannot display goal details
> -------------------------------------
>
> Key: MPLUGIN-299
> URL: https://issues.apache.org/jira/browse/MPLUGIN-299
> Project: Maven Plugin Tools
> Issue Type: Bug
> Affects Versions: 3.4
> Reporter: Harald Wellmann
> Assignee: Robert Scholte
> Fix For: 3.5
>
>
> Given a Mojo with {{@Parameter}} annotations *without* any further annotation arguments like {{property}} or {{defaultValue}}, when invoking the generated help mojo for details
> {noformat}
> mvn myplugin:help -Dgoal=mygoal -Ddetail=true
> {noformat}
> then the Mojo fails with a NullPointerException:
> {noformat}
> 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)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)