IDEA创建maven项目No archetype found in remote catalog及后续问题

IDEA创建maven项目No archetype found in remote catalog

记录学习maven在用idea第一次创建maven项目时出现No archetype found in remote catalog
在这里插入图片描述No archetype found in remote catalog. Defaulting to internal catalog

原因是因为项目构建太慢,提前把原型下载好放到本地就不会有这个问题了

解决方法:

  1. 下载archetype-catalog.xml 下载链接:archetype-catalog.xml
  2. 放到仓库根目录下 比如我的仓库是D:\software\m2\repository,那么我的文件就要放到D:\software\m2\repository下
  3. D:\software\m2\repository\archetype-catalog.xml
    在这里插入图片描述
  4. 在创建项目的时候指定archetypeCatalog=local在这里插入图片描述
    或者VM options 那里配置 -DarchetypeCatalog=local在这里插入图片描述File–>other settings–>settings for New Project–>Maven–>Runner
    推荐后面这个

注意事项:不要把archetype-catalog.xml
放错位置 好多别的回答要求放到~/.m2/archetype-catalog.xml或者D:\software\m2\repository\org\apache\maven\archetype\archetype-catalog\3.2.0(以我的举例)经实践这样会出现在这里插入图片描述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.这样的错误

  • 3
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值