To download sources for your dependencies:
mvn eclipse:eclipse -DdownloadSources=true
To attach sources to an installation:
mvn source:jar install
It’s also preferable to use the goal source:jar-no-fork in your pom as described on the maven-source-plugin page.