代码改变世界

springboot maven 集合工程打包问题 Could not find artifact

2020-06-16 09:45  乌托邦的美梦  阅读(3219)  评论(0编辑  收藏  举报

1.创建父工程:

 

 

 2.创建子工程,在attend_train_parent 的pom文件引入了子模块。然后执行mvn clean/complie/package/install 都会报Could not find artifact com.hbd.edu:attend-train-parent:pom:0.0.1-SNAPSHOT ;

3:解决方法:先把,父模块引入的模块注释,然后执行 mvn install,执行成功,只取消注释,之后再去打包,成功!!!!!