org/springframework/boot/maven/BuildInfoMojo has been compiled by a more recent version of the Java Runtime

2.3k Views Asked by At

i'm getting this error when i mvn clean install my project:

org/springframework/boot/maven/BuildInfoMojo 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

i checked the used java version, it's then right one.

springBoot version: 2.1.2 java version: 1.8.0_121

any solution please ?

1

There are 1 best solutions below

1
sr123 On

it was related to springBoot version, i updated my springBoot from 2.6.6 to 2.1 the fix is specifying the springBoot maven pluging version in the pom