MAVEN报错![ERROR] Error executing Maven.

标题今天在创建MAVEN项目的时候报了以下错误

[ERROR] Error executing Maven.
[ERROR] 1 problem was encountered while building the effective settings
[FATAL] Non-parseable settings E:\maven\apache-maven-3.3.9\conf\settings.xml: expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<properties>\n  \ua0 \ua0<m... @200:8)  @ E:\maven\apache-maven-3.3.9\conf\settings.xml, line 200, column 8

说我的setting.xml的line200,column有问题

我的解决办法:
  <profile><id>jdk-1.8</id><activation><activeByDefault>true</activeByDefault><jdk>1.8</jdk></activation>
  <properties><maven.compiler.source>1.8</maven.compiler.source><maven.compiler.target>1.8</maven.compiler.target><maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion></properties>
  </profile>

报错说我有空格,我就把空格全删弄成两行了,然后在Terminal执行命令:

mvn  install  -Dmaven.test.skip=true

运行成功!o了!

你可能感兴趣的:(maven)