IDEA 警告 No archetype found in remote catalog. Defaulting to internal catalog

IDEA 警告 No archetype found in remote catalog. Defaulting to internal catalog


新建Maven项目,遇到警告:
No archetype found in remote catalog. Defaulting to internal catalog
Archetype not found in any catalog. Falling back to central repository.
Add a repository with id ‘archetype’ in your settings.xml if archetype’s repository is elsewhere.


报错原因:从2020年1月15日开始,中央存储库不再支持通过纯HTTP进行的不安全通信,并且要求对存储库的所有请求都通过HTTPS进行加密。

解决办法:
将http转换为https即可访问,https://repo1.maven.org/maven2/archetype-catalog.xml
等待页面加载完 另存为archetype-catalog.xml放到maven仓库

打开Idea,点击Configure --> Settings,在Runner页面的VM Options添加:-DarchetypeCatalog=local,点击Apply,点击OK。

本文作者:—清风碎心—

本文链接:https://www.cnblogs.com/zhy-god/p/14404418.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   —清风碎心—  阅读(1817)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
💬
评论
📌
收藏
💗
关注
👍
推荐
🚀
回顶
收起
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.