Using latest version was causing this error:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.3:run (default-cli) on project service-springboot: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:3.0.3:run failed: Unable to load the mojo 'run' in the plugin 'org.springframework.boot:spring-boot-maven-plugin:3.0.3' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/springframework/boot/maven/RunMojo 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
The issue was that in the pom wasn't indicated the springboot plugin version. As results the most recent version was taken from https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-maven-plugin. Recent update was 23 of February.
Using latest version was causing this error:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.3:run (default-cli) on project service-springboot: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:3.0.3:run failed: Unable to load the mojo 'run' in the plugin 'org.springframework.boot:spring-boot-maven-plugin:3.0.3' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/springframework/boot/maven/RunMojo 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
Closes: https://github.com/keycloak/keycloak-quickstarts/issues/378