IDEA [ERROR] Maven execution terminated abnormally (exit code 1)報錯


D:\Java\bin\java -Dmaven.home=D:\apache-maven-3.0.5 -Dclassworlds.conf=D:\apache-maven-3.0.5\bin\m2.conf -Dfile.encoding=UTF-8 -classpath D:\apache-maven-3.0.5\boot\plexus-classworlds-2.4.jar org.codehaus.classworlds.Launcher -Didea.version=15.0.6 -DinteractiveMode=false -DgroupId=com -DartifactId=mmall -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=RELEASE org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate
[ERROR] Error executing Maven.
[ERROR] 1 problem was encountered while building the effective settings
[FATAL] Non-parseable settings C:\Users\Leon\.m2\settings.xml: in comment after two dashes (--) next character must be > not (position: START_TAG seen ...</mirror>\n </mirrors>\n\n <!-- ... @161:8) @ C:\Users\Leon\.m2\settings.xml, line 161, column 8

[ERROR] Maven execution terminated abnormally (exit code 1)

 

 

 

 

以上報錯的原因是:.m2文件夾(Maven的配置文件)下的settings.xml配置錯誤,顯示在161行的位置

 

解決方法:重新配置settings.xml

 

1.找到.m2文件夾(在C:\Users\你的用戶名下\),刪除包括setting.xml的所有.m2文件夾下面的文件。

 

2.找到Maven的安裝位置,找到(D:\apache-maven-3.0.5\conf)下的settings.xml拷貝到.m2文件夾下,重新創建IDEA項目即可。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM