首页 > 技术文章 > IDEA解决Cannot download sources的问题

wgty 2020-04-21 11:14 原文

在使用IDEA的时候有时候想要看看源码,但是点击Download sources的时候却会在IDEA的右下角显示Cannot download sources
在这里插入图片描述
此时只需要点击Terminal
在这里插入图片描述
然后输入:

mvn dependency:resolve -Dclassifier=sources

然后就可以查看源码了

推荐阅读