Last Updated: December 29, 2016
·
525
· spilth

Set Java compiler level for Maven project

To easily set the compiler level for your Maven-based Java project, add the following properties to your pom.xml:

<properties>
    <maven.compiler.source>1.6</maven.compiler.source>
    <maven.compiler.target>1.6</maven.compiler.target>
</properties>