pom无法加载新的依赖

pom文件导入的问题

今天遇到一个问题,maven无法下载新放入的依赖jar包,可之前还好好的,本地的仓库能用,试了一晚上还是没用,各种maven配置的修改与折腾,改了阿里云的镜像啥的,各种刷新毫无用处,最后在
https://blog.csdn.net/Doctor_LY/article/details/84874781这里找到答案
在这里插入图片描述
先是重新尝试了install一下,报错

F:\java\jdk1.8\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\project -Dmaven.home=D:\apache-maven-3.3.9 -Dclassworlds.conf=D:\apache-maven-3.3.9\bin\m2.conf "-javaagent:E:\IntelliJ IDEA 2019.1.3\lib\idea_rt.jar=51561:E:\IntelliJ IDEA 2019.1.3\bin" -Dfile.encoding=UTF-8 -classpath D:\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version2019.1.3 -s D:\apache-maven-3.3.9\conf\settings.xml -Dmaven.repo.local=D:\maven\repository install
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM D:\project\pom.xml: expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<dependency>\n            \ua0 \ua0 <g... @46:19)  @ line 46, column 19
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project  (D:\project\pom.xml) has 1 error
[ERROR]     Non-parseable POM D:\project\pom.xml: expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<dependency>\n            \ua0 \ua0 <g... @46:19)  @ line 46, column 19 -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException

Process finished with exit code 1

百度了一下是格式出现了问题,可是我看挺工整的啊,于是我就按照那位老哥的解决办法:先把代码复制后粘贴到Word文档,在从Word文档复制粘贴到pom.xml文件中,就可以解决问题了。
再次感谢这个老哥以及这位老哥https://blog.csdn.net/b1250372262/article/details/78930760

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值