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

[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有没有加上依赖版本。

 

GitHub 加速计划 / de / Dependencies
26
1
下载
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
最近提交(Master分支:4 个月前 )
1997a400 - 3 年前
2f423539 - 3 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐