mvn eclipse:eclipse -DdownloadSources=true
or
mvn eclipse:eclipse -DdownloadJavadocs=true
or you can add both flags, as Spencer K points out.
Additionally, the =true
portion is not required, so you can use
mvn eclipse:eclipse -DdownloadSources -DdownloadJavadocs