报错情况
报错如下:
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、刷新即可。