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”