1、问题描述 maven install异常:Unable to find mainclass。 maven在对parent工程clean之后,进行 install,Common工程报错Unable to find mainclass,因为Common工程是一些常用工具类,所以没有添加启动类。 1. 2. 3. 2、解决方法 把父工程的 pom.xml 文件中<build>去掉,子工程中哪个需要打包,就在其 pom.xml 文件...
maven打包报错failed: Unable to find a single main class from the following candidates [com.zjq.xxxApplication,com.zjq.xxxUtil] 报错意思是:无法从多个类中找到唯一一个启动类。 解决办法 如果当前工程为启动工程,可以在pom文件的打包插件中按照如下配置指定启动的application路径,具体如下: 代码语言:javascript ...
建议 common类或者实体类或者被被依赖的类,打包插件配置为: <build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><executions><execution><phase>none</phase></execution></executions><configuration><classifier>execute</classifier></configuratio...
在 springboot 项目中,除了启动类的主函数 mainclass,如果还出现其他的 main 方法,本地运行是没有...
common类、实体类、被被依赖的类,打包插件配置为 <build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><!-- 解决没有main函数报错unable to find main class 的问题--><executions><execution><phase>none</phase></execution></executions>...
添加配置后截图如下,其中common-1.0-SNAPSHOT-exec.jar为可执行jar,common-1.0-SNAPSHOT.jar为普通jar包。 2、Unable to find main class 错误信息: 解决方案: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> ...
springframework.boot:spring-boot-maven-plugin:2.0.0.M3:repackage failed: Unable to find main class -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.0.M3:repackage (default) o n project common: Execut...
//segmentfault.com/u/meirenlidedacong 0 <p>微服务项目出现Failed to execute goal on project sms-service: Could not resolve dependencies for project com.springstudy:sms-service:jar:0.0.1-SNAPSHOT:Could not find artifact com.springstudy:common-service:jar:0.0.1-SNAPSHOT->[Help 1]问题</p...
如下图所示,依赖中有两个同名的tctb-common包,调试时进入了tctb-common.ja... 乐之者v 0 5853 Linux下java验证码不显示:Could not initialize class sun.awt.X11FontManager 2019-12-09 18:06 −一、问题 javaweb项目,登录的时候有个图片验证码的功能。在Windows本地测试能够正常显示,部署到Linux上就不行...
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.7.RELEASE:repackage(repackage)on project pyyadmin-common:Execution repackageofgoal org.springframework.boot:spring-boot-maven-plugin:2.1.7.RELEASE:repackage failed:Unable to find mainclass->[Help1][ERROR][ERROR]To see ...