无法下载源码解决方法 Cannot download sources Sources not found for: commons-io:commons-io:2.5.5解决方法

报错情况

报错如下:

Cannot download sources
Sources not found for:
commons-io:commons-io:2.5

或者报错

Could not transfer artifact commons-io:commons-io:pom:2.5 
from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): 不知道这样的主机。
(maven.aliyun.com)

解决方法

打开IDEA,左上角"File"-"Settings",界面左侧"Buid,Execution,Deployment"-"Build Tools"-"Maven"。然后找到Local repository右边的Override,勾选上;

再重新compile、刷新即可。

猜你喜欢

转载自blog.csdn.net/m0_46948660/article/details/134161361