springboot更新版本造成no main manifest attribute

编程入门 行业动态 更新时间:2024-10-08 19:42:27

springboot更新<a href=https://www.elefans.com/category/jswz/34/1771446.html style=版本造成no main manifest attribute"/>

springboot更新版本造成no main manifest attribute

最近把springboot版本提升到2.1.6.RELEASEspringcloud版本提升到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

本文发布于:2024-02-13 22:48:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1760931.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:版本   springboot   main   attribute   manifest

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!