在使用eclipse创建springboot多模块项目时,添加子项目依赖时,pom.xml同时报如下错误:

maven Project build error: 'dependencies.dependency.version' for xxx.jar is missing

maven Project build error: 'dependencies.dependency.version' for xxx.jar is missing

错误信息文字描述:

1.org.apache.maven.artifact.InvalidArtifactRTException: For artifact 

2.Project build error: 'dependencies.dependency.version' for xxx:jar is missing

如上截图属于子模块(B),因在父模块使用<dependencyManagement>对各个子模块的版本进行控制,因子模块(B)引入的entities子模块未在<dependencyManagement>中设置版本号,导入如上问题的出现。

<dependencyManagement>中加入对entities的版本控制,此pom.xml不在报错。

maven Project build error: 'dependencies.dependency.version' for xxx.jar is missing

${com.lotus.version}是在properties中统一配置的

maven Project build error: 'dependencies.dependency.version' for xxx.jar is missing 

相关文章:

  • 2021-11-04
  • 2022-01-02
  • 2022-01-06
  • 2021-12-29
  • 2021-12-17
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-18
  • 2021-10-06
  • 2022-12-23
  • 2021-04-28
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案