今天在写项目代码调试的过程中,遇到了下列问题:
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] '' for :spring-boot-starter-web:jar is missing. @ line 18, column 21
[ERROR] '' for :spring-boot-starter-tomcat:jar is missing. @ line 30, column 15
[ERROR] '' for :spring-boot-starter-redis:jar is missing. @ line 40, column 15
[ERROR] '' for :spring-boot-starter-jdbc:jar is missing. @ line 55, column 15
[ERROR] '' for :spring-boot-starter-data-jpa:jar is missing. @ line 60, column 15
[ERROR] '' 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 :midAutumu:0.0.1-SNAPSHOT (G:\workspace-s\TaiKangWorkspace\midAutumu\) has 6 errors
[ERROR] '' for :spring-boot-starter-web:jar is missing. @ line 18, column 21
[ERROR] '' for :spring-boot-starter-tomcat:jar is missing. @ line 30, column 15
[ERROR] '' for :spring-boot-starter-redis:jar is missing. @ line 40, column 15
[ERROR] '' for :spring-boot-starter-jdbc:jar is missing. @ line 55, column 15
[ERROR] '' for :spring-boot-starter-data-jpa:jar is missing. @ line 60, column 15
[ERROR] '' 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] /confluence/display/MAVEN/ProjectBuildingException
经过调查,问题原因为:springboot新建项目,pom文件报错,依赖包的版本丢失
可以看一下,父pom中的dependencyManagement有没有加上依赖版本。