The build could not read 2 projects -> [Help 1]
The project com.atguigu.springcloud:microservicecloud-eureka-2:0.0.1-SNAPSHOT (D:\ideapro\microservicecloud\microservicecloud-eureka-2\pom.xml) has 2 errors
'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-eureka-server:jar is missing. @ line 23, column 21
'dependencies.dependency.version' for org.springframework:springloaded:jar is missing. @ line 28, column 21
The project com.atguigu.springcloud:microservicecloud-eureka-3:0.0.1-SNAPSHOT (D:\ideapro\microservicecloud\microservicecloud-eureka-3\pom.xml) has 2 errors
'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-eureka-server:jar is missing. @ line 23, column 21
'dependencies.dependency.version' for org.springframework:springloaded:jar is missing. @ line 28, column 21
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
我项目的父工程没有配置,导致版本号等一些问题获取不到,所以会飘红
把父工程的parent依赖导入即可
本文详细解析了Maven项目构建中出现的错误,特别是关于依赖版本缺失的问题,并提供了具体的解决方案,包括正确配置父工程的依赖关系。

被折叠的 条评论
为什么被折叠?



