本篇内容主要讲解“spring-boot-maven-plugin未指定版本导致的编译错误问题怎么解决”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“spring-boot-maven-plugin未指定版本导致的编译错误问题怎么解决”吧!springboot应用在使用maven编译时会报如下错误:Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-M2:repackage (default) on project mis: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-M2:repackage failed: Unable to load the mojo ‘repackage’ in the plugin ‘org.springframework.boot:spring-boot-maven-plugin:3.0.0-M2’ 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
Caused by: java.lang.UnsupportedClassVersionError: 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原因是maven在编译打包过程中没有指定spring-boot-maven-plugin的版本,默认会从nexus仓库中拉取最新的打包插件版本,而最新的3.0.0版本不被jdk8支持,无法执行编译。需要用户在pom.xml文件中手动指定spring-boot-maven-plugin该插件的打包版本。如:加上版本
这篇文章主要讲解了“Python中面向接口编程实例分析”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研免费云主机域名究和学习“Python中面向接口编程实例分析”吧!接口在软件工程扮演重要角色,随着应用程序的功能不断扩展,…
免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。