现象

springboot 打包时遇到多个 main 无法正常打包

解决方法

指定主类

<!-- 打包插件 -->
<plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><configuration><mainClass>com.ai.srd.modules.flowable.AiFlowFlowableApplication</mainClass></configuration>
</plugin>

推荐

之所有有多个主类,可能是有些临时单元测试代码,推荐把这部分代码写到 test 包里

参考资料

https://blog.csdn.net/qq_35606010/article/details/106187371

SpringBoot Maven repackage failed: Unable to find a single main class from the following candidates相关推荐

  1. 【异常】Maven构建报错 repackage failed: Unable to find a single main class from the following candidates

    一.报错内容 Failed to execute goal org.springframework.boot: spring-boot-maven-plugin:2.6.11:repackage (r ...

  2. SpringBoot学习之一 Unable to find a single main class from the following candidates

    在启动SpringBoot项目是报错 Unable to find a single main class from the following candidates [boot.myboot.Sam ...

  3. 异常处理(六)--------SpringBoot+Maven项目运行异常:Unable to find a single main class from the following candidat

    异常详情 Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:run (def ...

  4. SpringBoot打包错误(repackage failed: Unable to find main class)

    错误代码 多模块的SpringBoot项目打包失败,错误代码如下. [ERROR] Failed to execute goal org.springframework.boot:spring-boo ...

  5. springboot项目进行 mvn install 时报错 repackage failed: Unable to find main class 处理记录

    异常描述:springboot项目进行 mvn install时 报错如下 Failed to execute goal org.springframework.boot:spring-boot-ma ...

  6. maven package异常repackage failed: Unable to find main class

    现象 模块package时出现异常 Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.1:rep ...

  7. Maven打包问题:repackage failed: Unable to rename解决

    今天在给spring boot项目打jar包的时候遇到了一个问题: Failed to execute goal org.springframework.boot:spring-boot-maven- ...

  8. maven打包repackage failed: Unable to find main class

    一.Maven打包Spring Boot项目报错(repackage failed: Unable to find main class),排除寻找Main方法,一般用于被依赖的公用常量模块,解决方法 ...

  9. maven testNG打成jar包运行报错repackage failed: Unable to find main class

    一.maven testNG如何打jar包 1.pom文件引入插件 <build><plugins><plugin><groupId>org.apach ...

  10. 项目打包公共模块失败【error:repackage failed: Unable to find main class】

    1.背景: 今天给项目打jar包时发现了一个打jar包失败的问题.原因是由于项目的公共包没有main方法导致打包失败,但是我们的公共模块确实不需要main方法,所以需要想办法去掉这项校验,经过查阅资料 ...

最新文章

  1. rspec 测试页面元素_如何使用共享示例使您的RSpec测试干燥
  2. readline 移植 注意事项
  3. 0基础学python-零基础直接学习Python入门IT合适吗?
  4. godep的save和update
  5. 优化器 - tf.keras.optimizers.SGD()【TensorFlow2入门手册】
  6. but was actually of type 'com.sun.proxy.$Proxy**'的两种解决方法
  7. jquery文档加载完毕后执行的几种写法
  8. Guns 代码生成演示_入门试炼02
  9. 推进五通一平:手淘技术三大容器 五大方案首次整体亮相 百川开放升级
  10. 【转载】我喜欢电脑的飞鸽传书
  11. 第4章字符串的实现-勘误
  12. 本地如何搭建FPT服务
  13. “互联网+”时代 软件去哪儿啦?
  14. Java Swing写的支持合并单元格的JTable
  15. 30岁人生进度条_人生的进度条
  16. 王牧羊拜访黄龙观(其一)
  17. 如何用命令行运行可执行程序.exe
  18. pip3 install XXX加快下载速度
  19. Mysql innodb 间隙锁
  20. 新乡学院二批计算机类分数线,新乡学院录取分数线2021是多少分(附历年录取分数线)...

热门文章

  1. 《云网络:数字经济的连接》图书发布会将于7月16日在杭举行
  2. 【优化覆盖】基于matlab粒子群算法求解传感器覆盖优化问题【含Matlab源码 598期】
  3. 【优化覆盖】基于matlab改进的鲸鱼算法求解无线传感器WSN覆盖优化问题【含Matlab源码 XYQMDXP001期】
  4. 【TSP】基于matlab GUI蚁群算法求解旅行商问题【含Matlab源码 1032期】
  5. 【运动学】基于matlab匀变速直线运动规律【含Matlab源码 978期】
  6. 【图像检索】基于matlab GUI KNN图像检索【含Matlab源码 267期】
  7. 软件蓝图设计_智能企业的设计蓝图
  8. canny edge_Canny Edge检测器简介
  9. dis 密集光流_密集光流估计的自监督注意力机制
  10. SecondNamenode作用