最近才开始使用idea,在创建maven项目时遇到了一个问题
创建maven子工程时出现了
Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local (E:\xxx\xx.m2\repository) -> [Help 1]
这个错误
查了好久,才发现是因为在settings.xml中没有配置镜像地址

 <mirrors><!-- mirror| Specifies a repository mirror site to use instead of a given repository. The repository that| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.|<mirror><id>mirrorId</id><mirrorOf>repositoryId</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://my.repository.com/repo/path</url></mirror>--></mirrors>

这样需要的东西会从maven的中央仓库下载,因为这个仓库是在国外,所以有一些会下载失败

所以重新配置了一下仓库地址

 <mirrors><!-- mirror| Specifies a repository mirror site to use instead of a given repository. The repository that| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.|<mirror><id>mirrorId</id><mirrorOf>repositoryId</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://my.repository.com/repo/path</url></mirror>--><mirror><id>alimaven</id><name>aliyun maven</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url><mirrorOf>central</mirrorOf>        </mirror></mirrors>

再重新创建maven项目

再补充一下创建maven项目的细节

创建项目的时候配置这个参数
具体参考添加链接描述

Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local相关推荐

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

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

  2. Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins问题的解决

    Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins问题的解决 参考文章: (1)Cannot re ...

  3. 使用原型骨架创建Maven项目时遇到Could not transfer metadata org.apache.maven.plugins的解决方案

    在使用骨架创建maven项目时,提示无法下载的问题Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin ...

  4. Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:mav问题

    1.导致问题原因:从装系统,从win7改到win10 由于重装了系统,打开eclipse时,maven验证会出错,点击pom文件,会发现有红色的Cannot read lifecycle mappin ...

  5. Plugin org.apache.maven.plugins:maven-resources-plugin:2.6

    创建maven project时工程报错 Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its depend ...

  6. 解决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- 前 ...

  7. 解决Could not find metadata org.apache.maven.pluginsmaven-archetype-pluginmaven-metadata.xml in

    #控制台输出 [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/maven-m ...

  8. Maven 报:Could not find artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3

    前些时候我学习Maven,我遇到了以下两个错误(该死的这两个错误,让我浪费了四天时间): 1.Could not resolve archetype org.apache.maven.archetyp ...

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

    前言: 我用的是联想小新pro13的笔记本,今天创建maven项目的时候死活报错.原以为是我配置文件写错了.我身边的其他小伙伴都建成功了,我就将他们的配置文件拷过来,还是不行,报 [ERROR] Pl ...

最新文章

  1. Linq 集合处理(Union)
  2. HDU 2897 邂逅明下(简单博弈)
  3. H.264的两个概念:DC系数和AC系数。 MV预测过程详解(附图)
  4. 在 Linux 上配置一个 syslog 服务器
  5. java 操作office_Java操作word的方法
  6. php逆波兰表达式,PHP逆波兰示意与表达式计算
  7. Thinkphp精仿韩都衣舍商城网站源码
  8. gdal、geos的 windows编译 openCL加速
  9. 新闻APP受到各界关注 趣头条 大众看点 等新闻
  10. DM8安装及使用DTS工具将oracle11g迁移到centos7.6上的DM8
  11. 豫科技版计算机七年级上册,一上册 信息技术
  12. ipad上的游戏服务器无响应,教你 game center无法连接服务器解决办法及iOS9.3.2公测版已修复GameCenter无响应bug...
  13. 大学一年级(行走的皮卡丘)
  14. Win10系统CLSID大全
  15. 生活记录:记录2020暑假前半部分时光
  16. Qt组件-QLabel
  17. 无法启动此程序,因为计算机中丢失 api-ms-win-crt-stdio-l1-1-0.dll
  18. SSL/TLS证书1年有效期新规已至,被“证书过期”支配的恐惧又增加了!
  19. 黑客入侵无线网络常用手段
  20. python格式化输出xml_使用Python解析XML并打印整个元素

热门文章

  1. auto.js悬浮窗按钮的实际使用
  2. 汽车配件管理系统分析报告
  3. java计算器 控制台_java控制台实现的简单小系统,支持计算器功能,日历、乘法表算法...
  4. BigDecimal源码分析。
  5. Java导出数据到Word模板中
  6. Python数据类型 (字符串)
  7. java和Android学习书籍
  8. Dilated Convolution膨胀卷积感受野详解
  9. 浮点型数据规范以及规格化与非规格化数据(更新:原文疑问已解)
  10. Non-Negative Matrix Factorization 非负矩阵分解(NMF)