解决IDEA的[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved问题

在使用IDEA(之前没用过)创建maven项目时,总是创建不成功,文件残缺,下面是错误提示。

[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Failed to resolve version for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local (D:\maven-repo) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[ERROR] Maven execution terminated abnormally (exit code 1)

尝试了网上很多解决办法才终于找到问题,现在分享一下。

<localRepository>D:\maven-repo</localRepository>

这个是仓库的路径,地址自己来定。

 <mirror><id>aliyunmaven</id><mirrorOf>*</mirrorOf><name>aliyun maven</name><url>https://maven.aliyun.com/repository/public</url></mirror>

阿里的镜像更新了所以用https了而不是http。

保存之后退出。

检查IDEA的default settings 全局默认设置(2019的是 Setting for New Projects)。

注意是 default settings,setting只是对当前项目进行设置。
点击Runner 在VIM Options位置添加(原理是:忽略了ssl证书的验证)

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true

重启IDEA,新建maven项目,错误就不见了。
成功创建

解决IDEA的Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies cou相关推荐

  1. 解决:Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2问题

    出现Cannot resolve plugin org.apache.maven.plugins这类的问题原因基本都是一样的,都是导入本地仓库时出错,出错的原因可能是版本原因,也有其他原因. 解决办法 ...

  2. 解决Idea中Cannot resolve plugin org.apache.maven.plugins:maven-clean-plugin:3.1.0配置问题

    在项目的pom.xml中, ```Java <build><plugins><plugin><groupId>org.springframework.b ...

  3. 解决ide的[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependenc

    [ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies- 前 ...

  4. IDEA报错:Cannot resolve plugin org.apache.maven.plugins:*

    导入项目时可能因为网络等因素造成maven的一些问题. 使用maven-deploy插件多年来遇到了这个问题,即使我没有在我的POM中直接包含插件,也出现了错误. 作为一个解决方案我不得不强制将插件包 ...

  5. 解决:Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in loc

    我的方法 1.电脑可以Google   你要开启那个小飞机 2.笔记本连接手机热点 3.重新操作秒下下来 总结: 公司的网太差  , 也有可能做了外网访问的限制 下面是一个大神的方法 https:// ...

  6. eclipse导入maven项目时报Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources...

    本文转载自:http://blog.csdn.net/gdutacma2011149/article/details/50993257 在用Eclipse IDE for Java EE Develo ...

  7. IDEA日常填坑:Cannot resolve plugin org.apache.maven.plugins:maven-war-plugin

    问题描述: 我太难了o(╥﹏╥)o,这个问题竟然困扰了我一个下午加上一个晚上,为了解决它,估计浏览器都要被我弄崩了吧,此前我将所能找到的方法全都试了个遍,甚至是将 IDEA 卸载了再装,装了在卸(刚开 ...

  8. idea 创建MavenWeb项目报错 Cannot resolve plugin org.apache.maven.plugins:maven-clean-plugin:2.5

    IDEA 创建 Maven项目,插件报错以及无法下载依赖 插件报错如下: Cannot resolve plugin org.apache.maven.plugins:maven-clean-plug ...

  9. Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of

    Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of ...

  10. 解决Failed to execute goal org.apache.maven.plugins

    1.Maven构建失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin: 2.3 . 2 :compile  ...

最新文章

  1. NodeJS API简介
  2. 皮一皮:死要面子啊...
  3. 公司承担的国家发改委高技术产业化示范工程
  4. 对计算机网络与系统的认识,浅谈对计算机网络的认识
  5. WEB安全基础-URL跳转漏洞
  6. (31)Gulp 构建样式文件
  7. 多条件and查询遇到的问题
  8. 2017《JAVA》预备作业 计科1501班 王奕开
  9. 友声电子秤设置软件_友声电子秤说明书精编版
  10. java网上书店系统_基于Java的网上书店管理系统
  11. 如何用BabeLua运行Lua代码
  12. HTML转PDF浅析
  13. 前端leader找我谈心:我是如何从刚毕业的前端菜鸟一步步成长为前端工程师的?...
  14. Java web接入google身份验证器二次验证
  15. python format函数 日期_Python-日期格式化
  16. 《程序员的思维修炼》读书笔记以及感悟
  17. 如何进行精准引流?教你定制精准引流方案!
  18. lqc_centos批量自动装机
  19. 【Neo4j构建知识图谱】Python调用cypher语言(1):只需5行代码一次性完成节点、关系、属性的创建
  20. 安卓禁用硬件加速_Android硬件加速详解

热门文章

  1. k-Nearest Neighbors(k近邻算法)
  2. android ip v6 teredo,Win7系统通过teredo连接IPv6的方法
  3. linux离线安装及配置redis
  4. map返回另一个对象
  5. bilibili无水印php,bilibili播放器带弹幕接口源码
  6. 《S.忒修斯之船》读后感600字心得体会
  7. 阿里、百度、搜狐等公司社招面试记录与总结
  8. #12304;#28404;#28404;#37329;#59257;#34701;#23458;#59257;#26381;#30005;#35805;#12305;
  9. /var/log/journal日志清理
  10. Shake Shack新店推出专为狗狗研制的冰激凌;素食“鱼肉”三明治挑战赛百味;植物肉品牌v2登陆中国市场...