在idea的Terminal中,并cd到需要下载的源码的项目,cd到的目录下存在项目的pom.xml文件。
- mvn dependency:sources
这个命令尝试下载项目依赖的所有源码,就是pom.xml中的依赖包。
如果下载特定的jar包源码使用下面命令,指定具体的jar包:
比如:
com.github.pagehelper pagehelpertrue
mvn dependency:sources -DincludeArtifactIds=pagehelper
参考idea source not found。源码无注释问题
IDEA can not download source Sources not found for:问题



