我这边是想在kangning_system模块中引入kangning_common模块,引入代码如下:
<dependency> <groupId>com.kangning</groupId> <artifactId>kangning_common</artifactId> </dependency>
结果模块install 后提示:
[ERROR] The project com.kangning:kangning_system:3.8.7 (F:\20240314_Develop_Project\campus-kn-master\kangning_system\pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for com.kangning:kangning_common:jar is missing. @ line 16, column 21
[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
解决办法如下:
给当前引入的模块添加版本号
<dependency> <groupId>com.kangning</groupId> <artifactId>kangning_common</artifactId> <version>3.8.7</version> </dependency>
即可解决