org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate——解决方案
Error running '[org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate]':
近期将自己本地的 maven 仓库进行了迁移,idea 的版本也升级到了IntelliJ IDEA 2019.3.3 x64,但是遇到了 Plugins 报红的情况,尝试很多方法,终于解决,现在做一下汇总。
1、首先检查idea的 settings -> Build, Execution, Deployment -> Maven 和自己的本机路径是否属实
2、检查 Mavenapache-maven-3.6.3confsettings.xml 文件是否有冗余的字段 多l了的 <> 、>要删除
3、一个要值得注意的问题是,阿里的镜像更新了要用https了而不是http!
12 aliyunmaven 3* 4阿里云公共仓库 5https://maven.aliyun.com/repository/public 6
4、然后在IDEA中设置,忽略HTTPS的SSL证书验证就好了,注意是在Maven-Importing-VM options for importer里添加
1 -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
5、我的 Mavenapache-maven-3.6.3confsettings.xml 如下,每次修改都要及时保存,仅供参考,
1 2 36 7 D:MavenLocalWarehouse 8 910 17 1811 16aliyunmaven 12* 13阿里云公共仓库 14https://maven.aliyun.com/repository/public 1519 32 3320 31jdk-1.8 2122 25true 231.8 2426 301.8 271.8 281.8 29
6、最后要将未下载成功的 jar 包删除掉,就是那些后缀名是 .update 的文件,然后清除缓存,重启 idea
7、maven 恢复正常
8、有什么问题大家可以在下面的评论 抛出,一起讨论解决。
参考链接:
maven在使用阿里云镜像的时候下载失败? - 知乎
https://www.zhihu.com/question/350864269



