SpringBoot使用maven插件打包時報:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException的處理方案

方案1:創建main方法

方案2:添加如下配置
    

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>none</phase>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

方案3:檢查一個項目中是否出現了多個main方法

相关文章:

  • 2021-11-30
  • 2021-04-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2021-12-08
猜你喜欢
  • 2022-12-23
  • 2021-09-27
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2021-07-02
相关资源
相似解决方案