例如 陈晨 2021-02-22 10:31 采纳率: 0%
浏览 952

IDEA中运行maven为什么报settings.xml错误?

在学龙虾三少的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="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<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条回答 默认 最新

  • Ryan_蛤蟆 2021-02-22 13:22
    关注

    我也是运行没错,打包的时候报出setting,xml出错,搞了好久也没搞出来,好头疼

    评论

报告相同问题?

悬赏问题

  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置