起因是加一个东西多次加不上,idea界面左下角提示not found,然后查看日志
help—>show log in explorer
日志记录的是:
Caused by: java.lang.RuntimeException: org.apache.maven.wagon.ResourceDoesNotExistException: resource missing at http://maven.aliyun.com/nexus/content/repositories/central/.index/nexus-maven-repository-index.properties, status: 404 Not Found
经典404问题,在maven文件夹conf中的setting.xml中改,试了多种镜像都是同样的404问题。
之后查了一下,发现是2018的idea和maven新的3.8版本冲突。自降版本到3.5,重新配置一遍镜像和下载路径,终于正常运行,能正常添加dependency。
再一次在版本兼容问题上吃大亏,以此铭记。