Idea创建Maven项目出现警告No archetype found in remote catalog(自用记录)

在Idea中创建Maven项目时遇到警告"No archetype found in remote catalog",解决方案是将archetype-catalog.xml文件下载到本地仓库,并在设置中指定-DarchetypeCatalog=local,这样创建新项目时警告消失。
摘要由CSDN通过智能技术生成

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.

解决办法:

  1. 下载archetype-catalog.xml 地址: https://repo1.maven.org/maven2/archetype-catalog.xml 另存为本地仓库的根路径下,可以通过maven安装路径下的setting.xml中的<localRepository>配置确认正确位置.
    archetype-catalog.xml
  2. 指定-DarchetypeCatalog=local (File-setting(为当前项目)/File-other Setting- setting for new project(新项目生效))
    -DarchetypeCatalog=local
  3. 再次创建Maven项目,都是绿钩
    generate成功
    参考https://blog.csdn.net/fyydashen/article/details/105921518, 感谢!
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值