Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-299

Help mojo cannot display goal details

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4
    • 3.5
    • 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)
      

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            hwellmann Harald Wellmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: