Sunday, April 7, 2019

Intellij , maven and the source or target java language level

I create a new Java "maven" project, set it to Java 12 (ctrl-alt-shift-S, MOdules, Language level), but when I build I get:

"Warning:java: source value 1.5 is obsolete and will be removed in a future release"

Apparently this is due to the prehistoric, nonsensical Maven Compiler Plugin using Java 1.5 by default

you can either insert in the pom.xml :




Remember also to make sure that ctrl-alt-S (Settings) Settings -> Build, Execution, Deployment -> Build Tools -> Maven -> Importing is set to use JDK 12. So complicated. So brittle. So Maven.

Working with Maven is like traveling back to prehistoric times, like the Mural de la Prehistoria in Cuba,

developers on the right about to be eaten by Maven on the left

No comments: