java idea maven项目执行mvn命令时ProjectBuildingException的原因

本文介绍了如何诊断并修复pom.xml配置文件中的语法错误,特别是由于多余标签导致的构建失败问题。通过删除多余的bulids标签,成功解决了问题,使得项目能够正常执行。了解pom.xml配置文件的基础知识和正确结构对于避免此类错误至关重要。

异常原因
在这里插入图片描述

实际上有多个原因,其中一个原因就是pom.xml配置文件中语法问题,我这里出错的原因是多了一个bulids标签,删除后就可以执行了

pom.xml配置文件详解

D:\Java\jdk-21.0.2\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\java\code\rbi_hst\YaluRBIService\rbi-tree-standard\rbi-tree-client -Djansi.passthrough=true -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -Dmaven.home=D:/java/maven/apache-maven-3.9.0 -Dclassworlds.conf=D:\java\maven\apache-maven-3.9.0\bin\m2.conf "-Dmaven.ext.class.path=D:\tools\IntelliJ IDEA 2025.1.3\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\tools\IntelliJ IDEA 2025.1.3\lib\idea_rt.jar=27486" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath D:\java\maven\apache-maven-3.9.0\boot\plexus-classworlds-2.6.0.jar;D:\java\maven\apache-maven-3.9.0\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2025.1.3 -s D:\java\code\rbi_hst\YaluRBIService\settings.xml -Dmaven.repo.local=D:\java\maven\repository clean [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] 'dependencies.dependency.version' for com.huawei.his.foundation:iam-client-sdk:jar is missing. @ line 23, column 21 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.huawei.cbgit.tree:rbi-tree-client:1.0.0-SNAPSHOT (D:\java\code\rbi_hst\YaluRBIService\rbi-tree-standard\rbi-tree-client\pom.xml) has 1 error [ERROR] 'dependencies.dependency.version' for com.huawei.his.foundation:iam-client-sdk:jar is missing. @ line 23, column 21 [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 进程已结束,退出代码为 1
最新发布
11-20
"D:\Program Files\Java\jdk1.8.0_202\bin\java.exe" -Dmaven.multiModuleProjectDirectory=F:\javacode\cloud-demo -Djansi.passthrough=true "-Dmaven.home=D:/Program Files/Java/apache-maven-3.6.3" "-Dclassworlds.conf=D:\Program Files\Java\apache-maven-3.6.3\bin\m2.conf" "-Dmaven.ext.class.path=D:\Program Files\JetBrains\IntelliJ IDEA 2025.1.4.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2025.1.4.1\lib\idea_rt.jar=55855" -Dfile.encoding=UTF-8 -classpath "D:\Program Files\Java\apache-maven-3.6.3\boot\plexus-classworlds-2.6.0.jar;D:\Program Files\Java\apache-maven-3.6.3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2025.1.4.1 -s "D:\Program Files\Java\apache-maven-3.6.3\conf\settings.xml" "-Dmaven.repo.local=D:\Program Files\Java\apache-maven-3.6.3\mvn_resp" clean [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] 'dependencies.dependency.version' for cn.itcast.demo:feign-api:jar is missing. @ line 53, column 21 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project cn.itcast.demo:order-service:1.0 (F:\javacode\cloud-demo\order-service\pom.xml) has 1 error [ERROR] 'dependencies.dependency.version' for cn.itcast.demo:feign-api:jar is missing. @ line 53, column 21 [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
11-10
什么问题 D:\jdk\jdk-11.0.25\bin\java.exe -Dmaven.multiModuleProjectDirectory=C:\Users\10724\Desktop\tc\crud -Djansi.passthrough=true -Dmaven.home=D:\apache-maven-3.9.9 -Dclassworlds.conf=D:\apache-maven-3.9.9\bin\m2.conf "-Dmaven.ext.class.path=D:\IDEA\IntelliJ IDEA 2024.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\IDEA\IntelliJ IDEA 2024.1\lib\idea_rt.jar=22349:D:\IDEA\IntelliJ IDEA 2024.1\bin" -Dfile.encoding=UTF-8 -classpath D:\apache-maven-3.9.9\boot\plexus-classworlds-2.8.0.jar;D:\apache-maven-3.9.9\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2024.1 -s D:\apache-maven-3.9.9\conf\settings2.xml -Dmaven.repo.local=D:\apache-maven-3.9.9\mvn_repo compile [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] 'dependencies.dependency.version' for mysql:mysql-connector-java:jar is missing. @ line 53, column 21 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.example:crud:1.0-SNAPSHOT (C:\Users\10724\Desktop\tc\crud\pom.xml) has 1 error [ERROR] 'dependencies.dependency.version' for mysql:mysql-connector-java:jar is missing. @ line 53, column 21 [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
08-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值