Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.6.RELEASE:repackage failed: Unable to find main class

异常

复制代码
[INFO] --- spring-boot-maven-plugin:1.5.6.RELEASE:repackage (default) @ spring-boot-starter-log ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.721 s
[INFO] Finished at: 2017-09-11T15:03:41+08:00
[INFO] Final Memory: 43M/291M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.6.RELEASE:repackage (default) on project spring-boot-starter-log: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.6.RELEASE:repackage failed: Unable to find main class -> [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

Process finished with exit code 1
复制代码

把spring boot 插件去掉就好了

<build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build>

转载于:https://www.cnblogs.com/a8457013/p/8042312.html

springboot 项目maven 打包错误相关推荐

  1. mvn打包springboot项目,打包时报错:子模块找不到找不到父模块所配置的信息,<relativePath /> 所引发的问题

    mvn打包springboot项目,打包时报错:子模块找不到找不到父模块所配置的信息, 所引发的问题 报错信息: [ERROR] The project XXX (/home/×××/pom.xml) ...

  2. SpringBoot项目 + Maven + 企业微信登陆授权登陆

    SpringBoot项目 + Maven + 企业微信授权 项目背景 需求描述 准备 一. 建立SpringBoot项目 开始 1.创建新的Maven工程(创建父工程) 2.选择左侧Maven项目,直 ...

  3. springboot使用maven打包无法打进本地包解决方法

    springboot使用maven打包无法打进本地包解决方法 参考文章: (1)springboot使用maven打包无法打进本地包解决方法 (2)https://www.cnblogs.com/vi ...

  4. Springboot项目自动打包部署插件 (wagon-maven-plugin)

    Springboot项目自动打包部署插件 (wagon-maven-plugin) pom.xml文件添加配置: <properties>中添加: <service-path> ...

  5. SpringBoot使用maven打包项目

    springboot项目默认的打包方式就是打jar包,因为它内嵌了tomcat,用不着打war包部署到tomcat的webapp目录下,安装了jdk,就可以直接运行 1:点击打开[Maven]界面. ...

  6. idea maven打包错误

    一:idea language level 总是变成springboot 默认5时, 打包错误:-source 1.5 中不支持 diamond 运算符 plugin添加指定版本配置,如下 二:ide ...

  7. SpringBoot项目出现404错误

    SpringBoot项目出现错误分为以下两种情况,针对两种不同的情况解决办法如下 1.第一种情况如下图,基本上出现这种情况就是mvn在下载内容时,你强制取消了,导致jar包或是插件没有下载下来,但是不 ...

  8. Maven打包错误:Failed to execute goal on project client: Could not resolve dependencies for project

    我先说下我的打包步骤 一.复现 我的应用中有两个模块:client和common 其中client依赖common 打包步骤 先打包common,build success 再打包client,此时出 ...

  9. springboot项目assembly打包配置

    项目的目录结构如图: 下面是主要的配置文件内容: assembly.xml <?xml version="1.0" encoding="UTF-8"?&g ...

  10. maven 打包错误:Please refer to xxx\target\surefire-reports for the individual test results.

    或者在pom里面加上 <build><plugins><plugin><groupId>org.apache.maven.plugins</gro ...

最新文章

  1. glassfish_重写到边缘–充分利用它! 在GlassFish上!
  2. php 5.4.39 安装,Lamp 安装(CentOS6.6, php-5.4.39, httpd-2.4.12, mysql-5.6.24)
  3. ASP.NET对验证控件的一些整理(一)
  4. Swift 4.2进入最后开发阶段,为Swift 5铺平道路
  5. Pycharm安装与汉化教程
  6. 计算机无法选择字体,电脑系统字体缺失怎么办
  7. 一个不错的Fortran教程
  8. H3C OSPF基本配置命令
  9. 64位计算机安装xp,练习u盘如何安装XP 64位系统
  10. Arduino开发板使用TFT LCD液晶显示屏的终极新手入门指南
  11. MySql主键和唯一索引的区别
  12. Life:怎样提高睡眠质量?
  13. Windows查看ssh公钥方法
  14. 对象存储 Bucket
  15. [附源码]Python计算机毕业设计SSM基于Yigo平台库房管理系统(程序+LW)
  16. int int int * int**的区别、联系和用途
  17. 漫步者lollipods如何调节音量_漫步者LolliPods怎么配对双耳?如何切换单耳和双耳模式...
  18. NBIOT模块 BC20 OPENCPU GPS定位
  19. 大数据Kudu(二):Kudu架构
  20. [Unity2D]Tilemap Collider2D只给部分地图瓦片加上Collider的方法

热门文章

  1. web集群之 Keepalived
  2. Java找到二维数组中的最大值并打印坐标
  3. 解决struts2标签在HTML中错位的问题
  4. 了解为什么要使用微服务!
  5. (原创)攻击方式学习之(3) - 缓冲区溢出(Buffer Overflow)
  6. DEDECMS 另类***
  7. 【备忘录】sublime text的使用
  8. 虚拟机Linux(Centos)上用户密码忘记了怎么办?
  9. g++编译支持c++11
  10. Collectors.toMap()