51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

解决方案 SpringBoot Maven RepackageMojo 打包失败原因

jdk版本

org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0

org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java_linab112的博客-CSDN博客

解决方案

pom 文件中指定 maven plugin 版本

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
               <version>2.7.3</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    ```
赞(0)
未经允许不得转载:工具盒子 » 解决方案 SpringBoot Maven RepackageMojo 打包失败原因