父项目和最底层项目pom文件都不要写<build>
需要启动服务的项目写
<build>
<groupId>org.apache.maven.plugins
<artifactId>maven-deploy-plugin
<skip>true
<artifactId>spring-boot-maven-plugin
<groupId>org.springframework.boot
<mainClass>com.hehe.AppApplication
<goal>repackage
</build>