Код: Выделить всё
Execution default of goal org.springframework.boot:spring-boot-maven-plugin:3.0.2:repackage failed: Unable to load the mojo 'repackage' in the plugin 'org.springframework.boot:spring-boot-maven-plugin:3.0.2' 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 55.0
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.springframework.boot:spring-boot-maven-plugin:3.0.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
Код: Выделить всё
Apache Maven 3.8.7 (b89d5959fcde851dcb1c8946a785a163f14e1e29)
Maven home: /opt/maven
Java version: 11.0.17, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_IN, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-56-generic", arch: "amd64", family: "unix"
Код: Выделить всё
org.codehaus.mojo
exec-maven-plugin
1.6.0
javaclass.java
org.springframework.boot
spring-boot-maven-plugin
3.0.2
repackage
Хотя проблема была решена, когда я обновил свою версию Java maven до 17, но я хочу скомпилировать код Java с версией Java 11.
Кто-нибудь знает, как это исправить?
Подробнее здесь: https://stackoverflow.com/questions/752 ... ot-present