1.在springboot编译插件 spring-boot-maven-plugin中添加完整打包信息

原因分析:
在聚合项目中子项目引用了父项目的BOM编译插件,这个BOM代替了spring-boot-starter-parent这个parent POM(详见13.2.2. Using Spring Boot without the parent POM)
导致spring-boot-maven-plugin的配置项丢失,使得打包后的jar中的MANIFEST.MF文件缺少Main-Class。
网友评论