idea maven不會自動下載依賴的源碼,所以要通過命令行來輔助下載
1. 下載當(dāng)前項目所有依賴的source和javadoc
這個(下載source)
mvn dependency:sources
或這個(下載source)
mvn dependency:sources -DdownloadSources=true
或這個(下載javadoc)
mvn dependency:sources -DdownloadSources=true -DdownloadJavadocs=true
2. 下載指定jar包的source
mvn dependency:get -Dartifact=org.thymeleaf:thymeleaf-spring5:3.0.11.RELEASE:jar:sources
快速復(fù)制artifact的方法:

image.png
最后復(fù)制這個地方就行了

image.png