亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

Some problems were encountered while building the effective settings

在學龍蝦三少的SpringBoot構建電商基礎秒殺項目時,運行maven項目,出現報錯

Some problems were encountered while building the effective settings

Expected root element 'settings' but found 'w:wordDocument' (position: START_TAG seen ... w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve">... @3:543) @ /Users/lixuzhao/.m2/settings.xml, line 3, column 543

經指點是setting配置文件出現錯誤

但是在網上換了很多個配置文件,仍然報錯

Some problems were encountered while building the effective settings

Expected root element 'settings' but found 'w:wordDocument' (position: START_TAG seen ... w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve">... @3:1704) @ /Users/lixuzhao/.m2/settings.xml, line 3, column 1704

配置文件如下<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="xmlns:xsi="xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0?<pluginGroups>
</pluginGroups>
<proxies>
</proxies>
<servers>
</servers>
<mirrors>
<!-- 這里使用的是阿里的遠程maven鏡像,目前國內大多數都使用它 -->
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>
http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
<profiles>
<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>
</profiles>
</settings>
不曉得現在應該怎么調試


正在回答

1 回答

idea左上角設置里構建、maven里打開看看你加載的是哪個配置文件,是不是加載錯了

報錯的意思是說找不到根節點<settings,只有w:wordDocument這玩意,這乍看像是Word文檔你不會是用Word修改沒保存吧,

報錯信息里叫你去c盤/Users/lixuzhao/.m2/settings.xml文件里,看看第三行的內容是不是搞錯了

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

Some problems were encountered while building the effective settings

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號