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</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <mainClass>com.hbd.example.eureka.EurekaServerApplication</mainClass>
                </configuration>
            </plugin>
        </plugins>
    </build>

 

相关文章:

  • 2023-03-18
  • 2021-10-10
  • 2021-12-22
  • 2022-12-23
  • 2022-03-09
  • 2021-04-06
猜你喜欢
  • 2021-11-30
  • 2021-04-04
  • 2018-01-21
  • 2021-04-09
  • 2022-12-23
  • 2021-12-25
  • 2021-10-19
相关资源
相似解决方案