Reputation: 27
I am using Codeanywhere and I need to run a web server with maven. But it gives me this error: Fatal error compiling: invalid target release: 12 -> [Help 1], as also seen in the image but I don't understand how to fix it.
Upvotes: 1
Views: 496
Reputation: 466
Maven is trying to compile using Java 12, but it cannot be found. Either set the path correctly to your JDK 12 or set the target JDK in pom.xml to something else (the easiest way is to set the maven.compiler.target
property). See similar answers
Upvotes: 1