Maven Compiler Plugin Java 8 Dependency Example

Опубликовано: 21 Сентябрь 2020
на канале: Cameron McKenzie
1,751
13

Do you need to add a Java 8 dependency to the Maven compiler plugin? This quick Apache Maven tutorial shows you how to edit a POM file that is complaining about JDK 1.5 compliance when you've already got JRE 1.8 or even Java 11 installed locally. I'll show you how to fix any Maven compiler compliance problems by adding a maven-force-jdk entry in the POM. Fixing an Apache Maven compiler plugin problem isn't a big deal. Here I'll show you how to fix your build in just over two minutes.