springboot 项目maven 打包错误
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 打包错误相关推荐
- mvn打包springboot项目,打包时报错:子模块找不到找不到父模块所配置的信息,<relativePath /> 所引发的问题
mvn打包springboot项目,打包时报错:子模块找不到找不到父模块所配置的信息, 所引发的问题 报错信息: [ERROR] The project XXX (/home/×××/pom.xml) ...
- SpringBoot项目 + Maven + 企业微信登陆授权登陆
SpringBoot项目 + Maven + 企业微信授权 项目背景 需求描述 准备 一. 建立SpringBoot项目 开始 1.创建新的Maven工程(创建父工程) 2.选择左侧Maven项目,直 ...
- springboot使用maven打包无法打进本地包解决方法
springboot使用maven打包无法打进本地包解决方法 参考文章: (1)springboot使用maven打包无法打进本地包解决方法 (2)https://www.cnblogs.com/vi ...
- Springboot项目自动打包部署插件 (wagon-maven-plugin)
Springboot项目自动打包部署插件 (wagon-maven-plugin) pom.xml文件添加配置: <properties>中添加: <service-path> ...
- SpringBoot使用maven打包项目
springboot项目默认的打包方式就是打jar包,因为它内嵌了tomcat,用不着打war包部署到tomcat的webapp目录下,安装了jdk,就可以直接运行 1:点击打开[Maven]界面. ...
- idea maven打包错误
一:idea language level 总是变成springboot 默认5时, 打包错误:-source 1.5 中不支持 diamond 运算符 plugin添加指定版本配置,如下 二:ide ...
- SpringBoot项目出现404错误
SpringBoot项目出现错误分为以下两种情况,针对两种不同的情况解决办法如下 1.第一种情况如下图,基本上出现这种情况就是mvn在下载内容时,你强制取消了,导致jar包或是插件没有下载下来,但是不 ...
- Maven打包错误:Failed to execute goal on project client: Could not resolve dependencies for project
我先说下我的打包步骤 一.复现 我的应用中有两个模块:client和common 其中client依赖common 打包步骤 先打包common,build success 再打包client,此时出 ...
- springboot项目assembly打包配置
项目的目录结构如图: 下面是主要的配置文件内容: assembly.xml <?xml version="1.0" encoding="UTF-8"?&g ...
- maven 打包错误:Please refer to xxx\target\surefire-reports for the individual test results.
或者在pom里面加上 <build><plugins><plugin><groupId>org.apache.maven.plugins</gro ...
最新文章
- glassfish_重写到边缘–充分利用它! 在GlassFish上!
- php 5.4.39 安装,Lamp 安装(CentOS6.6, php-5.4.39, httpd-2.4.12, mysql-5.6.24)
- ASP.NET对验证控件的一些整理(一)
- Swift 4.2进入最后开发阶段,为Swift 5铺平道路
- Pycharm安装与汉化教程
- 计算机无法选择字体,电脑系统字体缺失怎么办
- 一个不错的Fortran教程
- H3C OSPF基本配置命令
- 64位计算机安装xp,练习u盘如何安装XP 64位系统
- Arduino开发板使用TFT LCD液晶显示屏的终极新手入门指南
- MySql主键和唯一索引的区别
- Life:怎样提高睡眠质量?
- Windows查看ssh公钥方法
- 对象存储 Bucket
- [附源码]Python计算机毕业设计SSM基于Yigo平台库房管理系统(程序+LW)
- int int int * int**的区别、联系和用途
- 漫步者lollipods如何调节音量_漫步者LolliPods怎么配对双耳?如何切换单耳和双耳模式...
- NBIOT模块 BC20 OPENCPU GPS定位
- 大数据Kudu(二):Kudu架构
- [Unity2D]Tilemap Collider2D只给部分地图瓦片加上Collider的方法