idea maven提示aliyun没有某依赖的解决方法

报错如下:

Could not transfer artifact org.aspectj:aspectjweaver:jar:1.9.5 from/to aliyun (http://maven.aliyun.com/nexus/content/groups/public/): GET request of: org/aspectj/aspectjweaver/1.9.5/aspectjweaver-1.9.5.jar from aliyun failed

在 https://maven.aliyun.com/mvn/search 查找,确实没有这个版本的依赖

解决方法:

去maven官网查找该依赖:
https://mvnrepository.com/artifact/org.aspectj/aspectjweaver/1.9.5

点击View All

下载下图红框中的4个

放到maven仓库目录下:


原文出处:/show_1EF5lAEXxNb5.html