MAVEN打包springboot项目出错

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.7.RELEASE:repackage (repackage) on project demo: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.2.7
.RELEASE:repackage failed: Unable to load the mojo ‘repackage’ in the plugin ‘org.springframework.boot:spring-boot-maven-plugin:2.2.7.RELEASE’ due to an API incompatibility: org.codehaus.plexus.component.repository.ex
ception.ComponentLookupException: org/springframework/boot/maven/RepackageMojo : Unsupported major.minor version 52.0
插件版本太高,更改为

<build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>1.5.3.RELEASE</version>
            </plugin>
        </plugins>
    </build>

你可能感兴趣的:(错误汇总)