A模块依赖B模块
A打包的时候会报程序包xxx不存在
这时候我们看下B模块的pom.xml文件是否加了
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build>
如果A模块不是springbootweb项目 就不要加这个插件
去掉之后重新把B模块打包 就可以了