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。

posted @ 2021-02-15 20:43  —清风碎心—  阅读(1649)  评论(0编辑  收藏  举报