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。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM