--- maven/src/org/netbeans/modules/maven/execute/navigator/GoalsPanel.java +++ maven/src/org/netbeans/modules/maven/execute/navigator/GoalsPanel.java @@ -572,7 +572,7 @@ } - @Messages("ACT_Execute_mod=Execute Goal With Modifiers...") + @Messages({"ACT_Execute_mod=Execute Goal With Modifiers...", "ACT_Execute_help=Show Documentation..."}) private static class MojoNode extends AbstractNode { @@ -595,11 +595,23 @@ } } mapp.setGoals(Collections.singletonList(mojo.a.getGroupId() + ":" + mojo.a.getArtifactId() + ":" + mojo.a.getVersion() + ":" + mojo.goal)); - Action a = ActionProviderImpl.createCustomMavenAction(mojo.prefix + ":" + mojo.goal, mapp, true, Lookup.EMPTY, project); - a.putValue(Action.NAME, ACT_Execute_mod()); + Action runGoalWithModsAction = ActionProviderImpl.createCustomMavenAction(mojo.prefix + ":" + mojo.goal, mapp, true, Lookup.EMPTY, project); + runGoalWithModsAction.putValue(Action.NAME, ACT_Execute_mod()); + + + //f.e.: help:describe -Dcmd=org.codehaus.mojo:gwt-maven-plugin:1.2:debug -Ddetail + NetbeansActionMapping mappForHelpDesc = new NetbeansActionMapping(); + + mappForHelpDesc.setGoals(Collections.singletonList(String.format("help:describe -Dcmd=%s:%s:%s:%s -Ddetail", mojo.a.getGroupId(), mojo.a.getArtifactId(), mojo.a.getVersion(), mojo.goal))); + + Action runHelpDescAction = ActionProviderImpl.createCustomMavenAction(String.format("help:describe for %s:%s", mojo.prefix, mojo.goal), mappForHelpDesc, false, Lookup.EMPTY, project); + runHelpDescAction.putValue(Action.NAME, ACT_Execute_help()); + + return new Action[] { new RunGoalAction(mojo, project), - a + runGoalWithModsAction, + runHelpDescAction }; }