has been compiled by a more recent version of the Java Runtime (class file version 61.0), this versi

问题描述:

Maven打包时候的报错

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-M1:repackage (default) on project equipment-boot: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-M1:repackage failed: Unable to load the mojo 'repackage' in the plugin 'org.springframework.boot:spring-boot-maven-plugin:3.0.0-M1' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: 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

问题处理:

has been compiled by a more recent version of the Java Runtime (class file version 61.0), this versi_第1张图片

    
        
        
            
                org.springframework.boot
                spring-boot-maven-plugin
                2.1.2.RELEASE
                
                    
                        
                            repackage
                        
                    
                
            
        
    

需要添加一个插件的版本控制一下。

你可能感兴趣的:(bug处理,java,maven,spring,boot)