记录几种解决方法
-
重启IDEA;
-
在 Settings - Maven - Runner - VM Options 中添加 -DarchetypeCatalog=internal,优先从本地仓库读取
-
删除错误jar包目录中的 _remote.repositories 文件,再重新打包
-
把 _remote.repositories 文件中的 nexus= 改成 central=
-
把 setting.xml 中的 私服 注释掉
-
在项目pom目录下打开cmd,运行命令(替换命令中jar包信息):mvn install:install-file -Dfile=d:\amyapp\xxxxxxx.jar -DgroupId=com.alibaba -DartifactId=dubbo -Dversion=2.8.4 -Dpackaging=jar
[指定用哪个setting.xml,(可省):–settings D:\amyapp\maven\apache-maven-3.6.3\conf\settings-test.xml]
手动下载jar包:阿里云仓库地址
本文介绍了如何解决IDEA遇到的问题,包括重启IDEA、配置Maven读取本地库、清理 Remote Repositories、修改设置文件、手动安装jar包及使用不同Setting.xml。详述了针对Maven仓库切换和问题排查的步骤。

1万+

被折叠的 条评论
为什么被折叠?



