Maven execution terminated abnormally (exit code 1)

问题解决方案

一、检查配置

1、File -> Other Settings -> Default Settings
Maven execution terminated abnormally (exit code 1)_第1张图片

2、看maven路径配置是否正确Maven execution terminated abnormally (exit code 1)_第2张图片

3、查看Runner中 VM Optipns --> archetypeCatalog=internal
Maven execution terminated abnormally (exit code 1)_第3张图片
此处在建子项目是配置,具体怎么建maven项目,网上案例很多
Maven execution terminated abnormally (exit code 1)_第4张图片

二、检查C:\maven\apache-maven-3.3.9\conf\settings.xml

1、修改服务器地址
Maven execution terminated abnormally (exit code 1)_第5张图片

<mirror>
    <id>aliyun-maven</id>
    <name>aliyun-maven</name>
    <url>https://maven.aliyun.com/repository/public</url>
    <mirrorOf>central</mirrorOf>       
</mirror> 

2、配置仓库地址
Maven execution terminated abnormally (exit code 1)_第6张图片

<localRepository>C:\maven\repository</localRepository(自己设置的位置)>

你可能感兴趣的:(Java,maven)