在使用eclipse创建springboot多模块项目时,添加子项目依赖时,pom.xml同时报如下错误:
错误信息文字描述:
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不在报错。
${com.lotus.version}是在properties中统一配置的