If you are using Maven and IDE to develop your Java projects, you can leverage a very easy way to get sources and javadocs for all your dependencies. Here it is:
# mvn dependency:sources
# mvn dependency:resolve -Dclassifier=javadoc
The first command will attempt to download source code for each of the dependencies in your pom file.
The second command will attempt to download the Javadocs.
Maven is at the mercy of the library packagers here. So some of them won’t have source code packaged and many of them won’t have Javadocs.
The original post was written by Ted Wise.
Thanks for sharing, Ted!