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