Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local
最近才开始使用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相关推荐
- 解决:Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in loc
我的方法 1.电脑可以Google 你要开启那个小飞机 2.笔记本连接手机热点 3.重新操作秒下下来 总结: 公司的网太差 , 也有可能做了外网访问的限制 下面是一个大神的方法 https:// ...
- 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 ...
- 使用原型骨架创建Maven项目时遇到Could not transfer metadata org.apache.maven.plugins的解决方案
在使用骨架创建maven项目时,提示无法下载的问题Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin ...
- Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:mav问题
1.导致问题原因:从装系统,从win7改到win10 由于重装了系统,打开eclipse时,maven验证会出错,点击pom文件,会发现有红色的Cannot read lifecycle mappin ...
- 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 ...
- 解决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- 前 ...
- 解决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 ...
- 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 ...
- [ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies...
前言: 我用的是联想小新pro13的笔记本,今天创建maven项目的时候死活报错.原以为是我配置文件写错了.我身边的其他小伙伴都建成功了,我就将他们的配置文件拷过来,还是不行,报 [ERROR] Pl ...
最新文章
- Linq 集合处理(Union)
- HDU 2897 邂逅明下(简单博弈)
- H.264的两个概念:DC系数和AC系数。 MV预测过程详解(附图)
- 在 Linux 上配置一个 syslog 服务器
- java 操作office_Java操作word的方法
- php逆波兰表达式,PHP逆波兰示意与表达式计算
- Thinkphp精仿韩都衣舍商城网站源码
- gdal、geos的 windows编译 openCL加速
- 新闻APP受到各界关注 趣头条 大众看点 等新闻
- DM8安装及使用DTS工具将oracle11g迁移到centos7.6上的DM8
- 豫科技版计算机七年级上册,一上册 信息技术
- ipad上的游戏服务器无响应,教你 game center无法连接服务器解决办法及iOS9.3.2公测版已修复GameCenter无响应bug...
- 大学一年级(行走的皮卡丘)
- Win10系统CLSID大全
- 生活记录:记录2020暑假前半部分时光
- Qt组件-QLabel
- 无法启动此程序,因为计算机中丢失 api-ms-win-crt-stdio-l1-1-0.dll
- SSL/TLS证书1年有效期新规已至,被“证书过期”支配的恐惧又增加了!
- 黑客入侵无线网络常用手段
- python格式化输出xml_使用Python解析XML并打印整个元素