pom.xml引入parent依赖报错:Project build error: Non-parseable Pom

本文讲述了在使用IntelliJ IDEA 2018和Maven 3.5.3开发时遇到的parent依赖问题,通过排查发现IDEA默认勾选了dev和test环境导致编译失败,最终只需选择一个环境重新编译即可解决。

Maven 项目pom.xml引入parent依赖报错:Project build error: Non-parseable Pom

idea版本 2018

maven版本  3.5.3

================================================================

报错信息

idea  maven  编译 报错信息

找不到父类依赖,但是本地是有下载的  nexus服务器也有 很诡异。。。

问题解决

最后排查maven的环境

发现idea默认是给我勾选了 dev 和 test  ,坑······

最后只选一个环境 重新编译  就可以成功了

[INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-parseable POM E:\maven-rep3\org\springframework\boot\spring-boot-starter-parent\2.2.4.RELEASE\spring-boot-starter-parent-2.2.4.RELEASE.pom: Expected root element 'project' but found 'html' (position: START_TAG seen <html>... @1:6) @ E:\maven-rep3\org\springframework\boot\spring-boot-starter-parent\2.2.4.RELEASE\spring-boot-starter-parent-2.2.4.RELEASE.pom, line 1, column 6 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.depower:depower-fast:3.0.0 (E:\projects\svn\java\depower-fast\pom.xml) has 1 error [ERROR] Non-parseable POM E:\maven-rep3\org\springframework\boot\spring-boot-starter-parent\2.2.4.RELEASE\spring-boot-starter-parent-2.2.4.RELEASE.pom: Expected root element 'project' but found 'html' (position: START_TAG seen <html>... @1:6) @ E:\maven-rep3\org\springframework\boot\spring-boot-starter-parent\2.2.4.RELEASE\spring-boot-starter-parent-2.2.4.RELEASE.pom, line 1, column 6 -> [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
12-03
[INFO] Scanning for projects... Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/9.0.0.0-SNAPSHOT/maven-metadata.xml Downloading from repo_aliyun_public: https://maven.aliyun.com/repository/public/org/pentaho/pentaho-ce-jar-parent-pom/9.0.0.0-SNAPSHOT/maven-metadata.xml [WARNING] Checksum validation failed, expected '<!DOCTYPE' (REMOTE_EXTERNAL) but is actually '653d5c8e68206990ca1fd17574ad2900dc1639d2' from pentaho-public for http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/9.0.0.0-SNAPSHOT/maven-metadata.xml [WARNING] Could not validate integrity of download from http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/9.0.0.0-SNAPSHOT/maven-metadata.xml org.eclipse.aether.transfer.ChecksumFailureException: Checksum validation failed, expected '<!DOCTYPE' (REMOTE_EXTERNAL) but is actually 'f9b43ba8dfdd766f48cebd7ebef273b52545aecf' at org.eclipse.aether.connector.basic.ChecksumValidator.validateExternalChecksums (ChecksumValidator.java:179) at org.eclipse.aether.connector.basic.ChecksumValidator.validate (ChecksumValidator.java:109) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask (BasicRepositoryConnector.java:484) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:414) at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get (BasicRepositoryConnector.java:215) at org.eclipse.aether.internal.impl.DefaultMetadataResolver$ResolveTask.run (DefaultMetadataResolver.java:556) at org.eclipse.aether.util.concurrency.RunnableErrorForwarder.lambda$wrap$0 (RunnableErrorForwarder.java:66) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635) at java.lang.Thread.run (Thread.java:833) [WARNING] Checksum validation failed, expected '<!DOCTYPE' (REMOTE_EXTERNAL) but is actually 'f9b43ba8dfdd766f48cebd7ebef273b52545aecf' from pentaho-public for http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/9.0.0.0-SNAPSHOT/maven-metadata.xml Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/9.0.0.0-SNAPSHOT/maven-metadata.xml (15 kB at 3.4 kB/s) [WARNING] The metadata D:\soft\develop\reposity1\org\pentaho\pentaho-ce-jar-parent-pom\9.0.0.0-SNAPSHOT\maven-metadata-pentaho-public.xml is invalid: end tag name </head> must be the same as start tag <link> from line 114 (position: START_TAG seen ...<link href="/ui/css/app.97fe78de.css" rel="stylesheet"></head>... @114:128) [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-parseable POM D:\soft\develop\reposity1\org\pentaho\pentaho-ce-jar-parent-pom\9.0.0.0-SNAPSHOT\pentaho-ce-jar-parent-pom-9.0.0.0-SNAPSHOT.pom: Expected root element 'pr oject' but found 'html' (position: START_TAG seen <!DOCTYPE html>\n<html lang="en">... @2:17) @ D:\soft\develop\reposity1\org\pentaho\pentaho-ce-jar-parent-pom\9.0.0.0-SNAPSHOT\pentaho-ce-jar-parent-pom-9.0.0.0-SNAPSHOT.pom, line 2, column 17 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project pentaho-kettle:kettle-core:9.0.0.0-SNAPSHOT (D:\work\huibo\doit\pentaho-kettle-9.0\core\pom.xml) has 1 error [ERROR] Non-parseable POM D:\soft\develop\reposity1\org\pentaho\pentaho-ce-jar-parent-pom\9.0.0.0-SNAPSHOT\pentaho-ce-jar-parent-pom-9.0.0.0-SNAPSHOT.pom: Expected root element 'project' but found 'html' (position: START_TAG seen <!DOCTYPE html>\n<html lang="en">... @2:17) @ D:\soft\develop\reposity1\org\pentaho\pentaho-ce-jar-parent-pom\9.0.0.0-SNAPSHOT\pentaho-ce-jar-parent-pom-9.0.0.0-SNAPSHOT.pom, line 2, column 17 -> [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
08-28
PS D:\lz_framework\BMS_admin\BMS\bms-admin> mvn clean install [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [WARNING] 'dependencies.dependency.version' for org.jetbrains:annotations:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 340, column 22 [FATAL] Non-parseable POM D:\software\MavenJar\org\springframework\boot\spring-boot-starter-parent\2.2.13.RELEASE\spring-boot-starter-parent-2.2.13.RELEASE.pom: Expected ro ot element 'project' but found 'html' (position: START_TAG seen <html>... @1:7) @ D:\software\MavenJar\org\springframework\boot\spring-boot-starter-parent\2.2.13.RELEASE\s pring-boot-starter-parent-2.2.13.RELEASE.pom, line 1, column 7 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.ruoyi:bmsprd:3.4.0 (D:\lz_framework\BMS_admin\BMS\bms-admin\pom.xml) has 1 error [ERROR] Non-parseable POM D:\software\MavenJar\org\springframework\boot\spring-boot-starter-parent\2.2.13.RELEASE\spring-boot-starter-parent-2.2.13.RELEASE.pom: Expecte d root element 'project' but found 'html' (position: START_TAG seen <html>... @1:7) @ D:\software\MavenJar\org\springframework\boot\spring-boot-starter-parent\2.2.13.RELEA SE\spring-boot-starter-parent-2.2.13.RELEASE.pom, line 1, column 7 -> [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 PS D:\lz_framework\BMS_admin\BMS\bms-admin> mvn clean install [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [WARNING] 'dependencies.dependency.version' for org.jetbrains:annotations:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 340, column 22 [FATAL] Non-parseable POM D:\software\MavenJar\org\springframework\boot\spring-boot-starter-parent\2.2.13.RELEASE\spring-boot-starter-parent-2.2.13.RELEASE.pom: Expected ro ot element 'project' but found 'html' (position: START_TAG seen <html>... @1:7) @ D:\software\MavenJar\org\springframework\boot\spring-boot-starter-parent\2.2.13.RELEASE\s pring-boot-starter-parent-2.2.13.RELEASE.pom, line 1, column 7 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.ruoyi:bmsprd:3.4.0 (D:\lz_framework\BMS_admin\BMS\bms-admin\pom.xml) has 1 error [ERROR] Non-parseable POM D:\software\MavenJar\org\springframework\boot\spring-boot-starter-parent\2.2.13.RELEASE\spring-boot-starter-parent-2.2.13.RELEASE.pom: Expecte d root element 'project' but found 'html' (position: START_TAG seen <html>... @1:7) @ D:\software\MavenJar\org\springframework\boot\spring-boot-starter-parent\2.2.13.RELEA SE\spring-boot-starter-parent-2.2.13.RELEASE.pom, line 1, column 7 -> [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
最新发布
12-05
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

white......

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值