解决idea中无法下载源码问题
问题: idea中无法下载源码问题
Cannot download sources Sources not found for:org.springframework.boot:spring-boot-autoconfigure:2.3.4.RELEASE
解决方式一:
检查自己的maven仓库配置是否存在错误:仓库配置参考:
<mirror> <id>aliyunmaven</id> <mirrorOf>*</mirrorOf> <name>阿里云公共仓库</name> <url>https://maven.aliyun.com/repository/public</url> </mirror>
解决方式二:
【检查方式maven正确情况下,再执行本步骤】则在项目下,项目根目录下 或 pom.xml同级目录中执行
mvn dependency:resolve -Dclassifier=sources
然后点击“download source”时就能看到源码了。
$ mvn dependency:resolve -Dclassifier=sources [INFO] Scanning for projects... Downloading from ... ... [INFO] ... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:06 min [INFO] Finished at: 2021-02-03T21:30:26+08:00 [INFO] ------------------------------------------------------------------------
上一篇:
Python 安装包管理工具 pip