This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When writing some code that uses a library that is set up as a dependency via maven, and ctrl+space clicking to show the javadoc, it some times states that javadoc is not fetched. Then an option is shown to download javadoc - and in some cases this does the trick automatically, however most times it just open a dialog where you can specify the location of the javadoc. It would be awesome if the dialog also had an option to "get the sources" as doing so also gives the javadoc that were the point of the request. Currently you have to ctrl click on a class from the library to open the (decompiled)source, and in that view you can click "download source", and then you also have the javadoc.
unfortunately the UI to set javadoc is generic (not located in maven sources) and only shows if the background maven check for javadoc download failed for some reason. There is a similar feature for sources generated for .class files. It says "Attach Sources", here again we attempt a background download and if it fails the general UI kicks in. in maven specific ui, you can right click on Dependencies node to have javadoc/sources downloaded or you can change the global settings to always attempt javadoc/source download on IDE restart.
Ah - thanks I had not seen those general settings. The reason for this report also were that while this way of getting the sources in order to get the javadoc may be easy enough for experienced users, newcommers may not feel the same way. I were just thinking if anything should/could be done for those creating for example a new project using hibernate, and while maven gets the hibernate jar files, they are repeatedly asked to supply the javadoc themselves (and that javadoc may not be available as a independent zip file). I just thought it may make sense to try to help them getting the docs as easy as possible - maby if javadoc download fail, the source should be fetched? That could be an option?.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss