Error executing Maven.
[ERROR] 1 problem was encountered while building the effective settings
[FATAL] Non-parseable settings D:\apache-maven-3.8.1\bin…\conf\settings.xml: end tag name must match start tag name from line 147 (position: TEXT seen …\r\n -->\r\n… @272:12) @ D:\apache-maven-3.8.1\bin…\conf\settings.xml, line 272, column 12
用命令创建maven 工程报错
mvn archetype:generate -DgroupId=com.example -DartifactId=my-maven-project -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
上述命令中的参数解释如下:
-DgroupId:项目的组织ID,通常使用公司的域名倒序。
-DartifactId:项目的唯一标识符,通常使用项目的名称。
-DarchetypeArtifactId:使用的Maven原型(archetype),这里我们使用了一个快速开始的原型。
-DinteractiveMode:设置为false以禁用交互式模式。
查看报错信息settings.xml 的147行附近
原因分析:
配阿里云仓库时, 把</mirros >
注释掉了, 去掉注释后 , 不报错
有这类问题可以看看自己配置文件哪里写错了
阿里仓库如下配置
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>