背景
- IDEA
- JDK 11
- 最近在创建一个多模块项目,其中模块中有单独的 Spring boot 项目,有其他模块引用的公用普通 maven 项目,我在项目中打包 Spring boot 项目,而此项目引用公用的 moudle 模块,打包过程中报错:
Could not find artifact org.javaboy:commons:pom:1.0-SNAPSHOT
解决
-
百度后,尝试优先打包最基础的外层项目
-
再次打包其中的一个 spring boot 项目成功:
-
最后,感谢前辈:https://www.cnblogs.com/li150dan/p/11114773.html