IDEA快速构建Maven工程报错:No archetype found in remote catalog. Defaulting to internal catalog

当使用maven骨架创建java项目时,出现这样的错误原因是:我配置了阿里云镜像,但是有一个xml文件,阿里云的私服中没有

【可以将原来的setting.xml中的阿里云镜像配置删除,使用默认配置下载后,再加上阿里云的配置】

【也可以这样做】:在VM Option添加:-DarchetypeCatalog=internal

 

 【参考的博主说也可以这样整】【其实我建议两个方法都整一下子】

 

 【创建Maven项目的时候添加属性: archetypecatalog=internal

 

 【参考文献:解决IDEA快速构建Maven工程报错:No archetype found in remote catalog. Defaulting to internal catalog - 云+社区 - 腾讯云 (tencent.com)

posted on 2022-06-05 19:25  数据厨房  阅读(242)  评论(0编辑  收藏  举报