版本造成no main manifest attribute"/>
springboot更新版本造成no main manifest attribute
最近把springboot
版本提升到2.1.6.RELEASE
,springcloud
版本提升到Greenwich.SR2
推送远程镜像到rancher时一直无法启动,查看日志显示no main manifest attribute, in /app.jar
打包工具都没有改过,以前都没问题的,然后鼠标点了一下打包插件发现没有版本号!
<plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><!--一定要对上springboot版本号,因为新版springboot不再设置这个插件的依赖--><version>${spring-boot.version}</version><executions><execution><goals><goal>repackage</goal></goals></execution></executions></plugin>
加上版本号,搞定
更多推荐
springboot更新版本造成no main manifest attribute
发布评论