Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 219402 - Go to Source for Maven plugins
Go to Source for Maven plugins
Product: projects
Classification: Unclassified
Component: Maven
All All
: P3 with 1 vote (vote)
: 8.0
Assigned To: Milos Kleint
Depends on:
  Show dependency treegraph
Reported: 2012-10-02 20:03 UTC by Jesse Glick
Modified: 2013-09-26 09:37 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2012-10-02 20:03:23 UTC
There should be ways to easily jump to the source code for a Maven plugin used in your build. The IDE knows the exact plugin artifact coordinates, it can look up the mojo class name in the plugin’s bindings, and it can use SourceJavadocAttacher to find sources when necessary. (From there, you can easily use Ctrl-B to navigate to various dependencies.)

1. Hyperlink a <goal> in the POM editor.

2. Hyperlink the part of a line in the Output Window showing a goal being executed.
Comment 1 Milos Kleint 2012-10-02 20:40:57 UTC
I'm not convinced the majority of users need to/should read the sources of maven plugins. Maybe debug maven build when thing go wrong (separate issue is filed for that), but why navigate the source only? s
Comment 2 Jesse Glick 2012-10-02 23:01:23 UTC
Hard to say what other users need, I just know I have wanted this on a number of occasions. For example, some mojo parameter is poorly documented and I want to see how the value is actually being used.

Currently you need to go to the Maven node in Services, search for the plugin you are using, pick out the right version, download its sources, and browse to the mojo.
Comment 3 markiewb 2013-05-10 16:49:21 UTC
@Jesse: It is easier to invoke "mvn help:describe -Dcmd=<goals> -Ddetail" to get the mojo parameter for the plugin instead of downloading the sources. See [1]

@Milos: The output of "help:describe" could be parsed and provided somehow (code completion, tooltips, separate view). What do you think?

Comment 4 Milos Kleint 2013-09-26 09:37:29 UTC
done as popup menu action in Build execution overview dialog (triggered from the output tab toolbar)

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo