Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:repackage (de
来源:互联网 发布:单片机软件外包 编辑:程序博客网 时间:2024/05/14 07:55
使用maven 打包时报错。
错误信息;
[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:repackage (default) on project spring-boot: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:repackage failed: Unable to find a single main class from the following candidates [com.charmbirds.Application, com.charmbirds.util.redis.JedisUtils] -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
这里描述了两个文件[com.charmbirds.Application, com.charmbirds.util.redis.JedisUtils]
后经一番倒腾后发现是因为有两个main方法导致的问题删掉 测试的main方法即可打包成功。
总结:第一次打包springboot的项目疏忽了 main方法是唯一的启动方法。
参考:https://www.cnblogs.com/xingzc/p/5972488.html
阅读全文
0 0
- Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:repackage (de
- Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.3.3.RELEASE
- Springboot | Failed to execute goal org.springframework.boot:spring-boot-maven-plugin
- Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.0
- Failed to execute goal org.springframework.boot:spring-boot-maven-plugin
- spring boot 项目打包时报错 Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.
- Spring Boot Maven Plugin -- repackage目标
- Spring Boot Maven Plugin -- repackage鐩?爣
- Spring Boot Maven Plugin -- repackage鐩?爣
- 关于 Spring boot 项目 偶然遇到 Failure to transfer org.springframework.boot:spring-boot-maven-plugin 问题的解决办法
- maven install Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war
- maven Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8.1:jar
- maven 编译出错 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean
- maven 构建编译失败:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:
- maven 编译出错 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean
- maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin
- intellidea maven compile Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:
- maven install时Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test
- 驱动测试时出现can't open 的一种情况
- Java,Android多线程操作(一)
- 3-4·Linux中附加权限、粘滞位权限
- easyUi
- dubbo 依赖包 javassist 版本异常
- Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:repackage (de
- linux单用户模式
- mysql增量备份二进制日志shell脚本
- 计算机网络原理第二章学习总结
- 新手村 Boss战-入门综合练习2 小鱼会有危险吗
- 理解javascript中的递归
- 泛洪攻击的几种方法解析
- CSDN积分获得方式总结
- 360浏览器设置代理服务器