Add source code and doc in maven Window > Preferences > Maven and checking the "Download Artifact Sources" and "Download Artifact JavaDoc" options.