2020.9.8:Spring cloud :install时报错

在尝试使用Spring Boot的maven插件打包Spring Cloud项目时遇到报错:'Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.0.7.RELEASE:repackage failed: Unable to find main class'。解决方法是将打包方式从'spring-boot-maven-plugin'更改为'maven-plugin-plugin',问题得到解决。注意,部分网上的解决方案推荐导入'maven-plugin',但在某些环境中可能无法找到该插件。
摘要由CSDN通过智能技术生成

spring cloud打jar包时报错

错误提示

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.7.RELEASE:repackage (default) on project leyou-item-interface: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.0.7.RELEASE:repackage failed: Unable to find main class

使用spring-boot-maven-plugin打包时他会去找启动类,但是创建启动类之后依然是同样的错误,在神奇的度娘的帮助下找到了问题的解决方法

原本使用的“spring-boot-maven-plugin”打包方式

  <plugins>
            <plugin>
                <groupId>org.springfram
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值