您的位置 首页 错误

解决方案 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>
    ```

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章