In Maven, you can get source code for project dependencies in most IDEs like this :

$ mvn dependency:sources
$ mvn dependency:resolve -Dclassifier=javadoc
  1. Get source code for Jar
  2. Get javadoc for Jar, normally, developers don’t provide this.

1. Eclipse IDE

In Eclipse IDE, it’s better to use the maven eclipse plugin:

$ mvn eclipse:eclipse -DdownloadSources=true
$ mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=false