idea创建maven-java项目 出现错误


Error running ' [org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate]': Cannot run program "D:\jdk\bin\java.exe" (in directory "C:\Users\阿姆斯特朗螺旋大炮\AppData\Local\Temp\archetype2tmp"): CreateProcess error=2, 系统找不到指定的文件




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
下载地址:百度网盘 请输入提取码

0lnx
2.存放到仓库根目录
例如我的仓库是.m2\repository,则放到.m2\repository\archetype-catalog.xml
3.添加参数-DarchetypeCatalog=local
IDEA设置方法:
File=> Other Settings=> Settings for New Projects=> Build,Execution,Deployment=> Build Tools=> Maven=> Runner=>
VM Options=> 填写为“-DarchetypeCatalog=local”

 在这里插入图片描述

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值