学习过程中,需要将一个子模块打包部署到docker中,结果发现此模块无法打包,显示[ERROR] Failed to execute goal on project hm-service: Could not resolve dependencies for project com.heima:hm-service:jar:1.0.0: com.heima:hm-common:jar:1.0.0 was not found in https://maven.aliyun.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of aliyunmaven has elapsed or updates are forced -> [Help 1] 此错误表示,无法找到我所依赖的子项目的依赖包
解决方法:在父工程里面,通过maven工具或者maven命令行将依赖包统一清理(mvn clean),在进行安装(mvn install) 即可将所依赖的子项目包安装到本地仓库中,在进行打包,成功