http://justke123.iteye.com/blog/981627
There's a tricky problem with Maven:
is to add dependencies because there is no download and associated source code, resulting in automatic prompt cannot appear the correct method name, and do not install the anti-compiler in the case can not enter the method to see the implementation of the internal.
In fact, the Eclipse Maven plugin provides this functionality, but there may be many developers do not pay attention to this feature, so this share to those who are not very clear about this feature of the students, configuration is very simple, Just tick the windows-preferences-maven-download Artifact Sources this option to do it.
=====
http://japi.iteye.com/blog/1320003
The method that enables Maven2 to download its source code package while downloading the dependent package:
1. Use the MAVEN command: mvn dependency:sources to download the source code for the dependent package.
2. Use parameters:-ddownloadsources=true to download the source code jar. -ddownloadjavadocs=true Download the Javadoc package.
MVN dependency:sources-ddownloadsources=true-ddownloadjavadocs=true
Eclipse
MVN -ddownloadsources=true -ddownloadjavadocs=true-doutputdirectory=target/eclipse-classes eclipse: Eclipse
The key is the RED flag option ~ ~