idea maven打包错误 程序包common不存在
背景:父级项目Root, springboot项目A,common模块B,业务模块C
问题:刚开始打包root,提示程序包common不存在
尝试:先install B,再install C, 最后package A,无效。
解决方案:将root中的pom文件中关于springboot自带的maven插件注释掉
<build> build>
在A项目中,pom文件如下
<build> <plugins> <plugin> <groupId>org.springframework.bootgroupId> <artifactId>spring-boot-maven-pluginartifactId> <configuration> <classifier>execclassifier> configuration> plugin> plugins> build>
最后会生成俩个文件
demo.war
demo-exec.war
将demo-exec.war上传到tomcat服务器,部署完成