Wrong Class file

I have been working with our module without failure for months but recently I have gotten this error when trying to ‘mvn package’ the module.
I am using intellij and have been since the start.

Looks like you’re developing for Ignition 8 but using JDK 8 instead of JDK 11?

Ok, so If i change to JDK11 it should work ?

Do I need to update maven aswell for this because this is what happened.

Yeah you need JDK11.

Upgrading Maven is worth a shot, not sure what that error is about.

Solution to this issue was to update JDK to 11 or higher.
This gets rid of the 55 52 wrong class file error.

The next issue was fixed by upgrading maven to the latest version.