Maven 构建Spring-Boot工程报错

前端之家收集整理的这篇文章主要介绍了Maven 构建Spring-Boot工程报错前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.6.RELEASE:repackage 

找不到MainClass,在pom文件增加spring-boot-maven-plugin,并配置启动类

<build>
        plugins>
            plugin>
                groupId>org.springframework.boot</artifactId>spring-boot-maven-pluginconfiguration>
                    mainClass>com.hbd.example.eureka.EurekaServerApplication>
    >

 

猜你在找的Maven相关文章