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

[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:\repository) -> [Help 1]

今天在用IDEA新建项目过程中,果然遇到了这个问题,这个问题主要还是在maven安装过程中配置问题。

简单了解下:maven仓库主要分为是三类,本地仓库、私服、中央仓库。而这三种的关系是,首先会从本地仓库获取,如果本地仓库没有则从私服(如果有配置)获取,如果私服没有则再往中央仓库获取。settings.xml配置文件中,默认配置为<localRepository>D:\repository</localRepository>

这篇博客https://blog.csdn.net/luckytsw/article/details/85866497操作内容已经写的很详细。

不过按照原文的配置后,但是新建项目依然不成功,最后只好悻悻更换了1.8的JDK,居然成功了。查了官方文档,解释为1.7或以上版本。(maven最新3.6.1)。不过也算是解决问题的一种思路吧,平时开发过程中,确实也很容易遇到使用软件或插件与JDK版本不兼容的问题。及时

Maven 3.3+ require JDK 1.7 or above to execute - they still allow you to build against 1.3 and other JDK versions by Using Toolchains

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值