最近在开发中,遇到这样一个问题,一个通用的工具类项目,在进行打包时,出现repackage failed: Unable to find main class提示找不到主类问题,我就想,我这个项目是一个通用的工具类,不是一个SpringBoot Web工程,我又不需要Main方法的程序启动入口 ...
解决方案: setting.xml文件添加如下配置: 参考链接:https: www.cnblogs.com thinking better p .html ...
2019-03-07 23:29 0 3455 推荐指数:
最近在开发中,遇到这样一个问题,一个通用的工具类项目,在进行打包时,出现repackage failed: Unable to find main class提示找不到主类问题,我就想,我这个项目是一个通用的工具类,不是一个SpringBoot Web工程,我又不需要Main方法的程序启动入口 ...
org.springframework.boot:spring-boot-maven-plugin:2.1.7.RELEASE:repa ...
【背景】spring-boot项目,打包成可执行jar,项目内有两个带有main方法的类并且都使用了@SpringBootApplication注解(或者另一种情形:你有两个main方法并且所在类都没有使用@SpringBootApplication注解),pom.xml ...
【背景】spring-boot项目,打包成可执行jar,项目内有两个带有main方法的类并且都使用了@SpringBootApplication注解(或者另一种情形:你有两个main方法并且所在类都没有使用@SpringBootApplication注解),pom.xml ...
【背景】spring-boot项目,打包成可执行jar,项目内有两个带有main方法的类并且都使用了@SpringBootApplication注解(或者另一种情形:你有两个main方法并且所在类都没有使用@SpringBootApplication注解),pom.xml ...
问题如下: 解决方法: 这个错误是因为Maven在执行打包的时候会查找项目中的main方法,并设置为Spring Boot生成JAR包的启动入口,但此时有多个main方法,Maven插件就无法确认是用哪个。因此出现此异常。 1、注释掉其他无用的main方法即可解决此问题 ...
install打包报错: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.7.RELEASE:repackage (repackage) on project zbbzfw-common ...