'dependencies.dependency.version' for XXX:jar is missing

今天在写项目代码调试的过程中,遇到了下列问题:

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @ line 18, column 21
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-tomcat:jar is missing. @ line 30, column 15
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-redis:jar is missing. @ line 40, column 15
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-jdbc:jar is missing. @ line 55, column 15
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-data-jpa:jar is missing. @ line 60, column 15
[ERROR] 'dependencies.dependency.version' for mysql:mysql-connector-java:jar is missing. @ line 71, column 15
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.taikang:midAutumu:0.0.1-SNAPSHOT (G:\workspace-s\TaiKangWorkspace\midAutumu\pom.xml) has 6 errors
[ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @ line 18, column 21
[ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-tomcat:jar is missing. @ line 30, column 15
[ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-redis:jar is missing. @ line 40, column 15
[ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-jdbc:jar is missing. @ line 55, column 15
[ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-data-jpa:jar is missing. @ line 60, column 15
[ERROR]     'dependencies.dependency.version' for mysql:mysql-connector-java:jar is missing. @ line 71, column 15
[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

经过调查,问题原因为:springboot新建项目,pom文件报错,依赖包的版本丢失

可以看一下,父pom中的dependencyManagement有没有加上依赖版本。

 

[WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: cn.dev33:sa-token-dao-redis-jackson:jar -> duplicate declaration of version 1.33.0 @ com.jian:ji_an_riding_master:1.0.0-SNAPSHOT, D:\develop\TaiYangGongShe_v2\ji_an_riding_master\pom.xml, line 205, column 25 [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.alibaba:easyexcel:jar -> version 3.1.1 vs 3.0.5 @ com.jian:ji_an_riding_master:1.0.0-SNAPSHOT, D:\develop\TaiYangGongShe_v2\ji_an_riding_master\pom.xml, line 211, column 25 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] --------------------------< com.jian:manage >--------------------------- [INFO] Building 后端管理模块 1.0.0-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The POM for com.jian:service:jar:1.0.0-SNAPSHOT is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.484 s [INFO] Finished at: 2025-03-24T16:19:02+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project manage: Could not resolve dependencies for project com.jian:manage:jar:1.0.0-SNAPSHOT [ERROR] dependency: com.jian:service:jar:1.0.0-SNAPSHOT (compile) [ERROR] Could not find artifact com.jian:service:jar:1.0.0-SNAPSHOT [ERROR] [ERROR] -> [Help 1] [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 m
03-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值