Idea创建Maven项目出现警告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.
解决办法:
- 下载archetype-catalog.xml 地址: https://repo1.maven.org/maven2/archetype-catalog.xml 另存为本地仓库的根路径下,可以通过maven安装路径下的setting.xml中的<localRepository>配置确认正确位置.
- 指定-DarchetypeCatalog=local (File-setting(为当前项目)/File-other Setting- setting for new project(新项目生效))
- 再次创建Maven项目,都是绿钩
参考https://blog.csdn.net/fyydashen/article/details/105921518, 感谢!