首页 > 编程语言 > 详细

Spring Boot项目Maven打包报错(repackage failed: Unable to find main class)

时间:2019-03-07 23:47:37      阅读:2389      评论:0      收藏:0      [点我收藏+]

解决方案:

setting.xml文件添加如下配置:

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <version>1.5.3.RELEASE</version>
    <configuration>
        <mainClass>com.xx.webapps.api.main.WebappsApiBidMain</mainClass>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>repackage</goal>
            </goals>
        </execution>
    </executions>
</plugin>

 

参考链接:https://www.cnblogs.com/thinking-better/p/7827368.html

 

Spring Boot项目Maven打包报错(repackage failed: Unable to find main class)

原文:https://www.cnblogs.com/bettyling/p/10493350.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!