Total Pageviews

2018/04/07

[Maven] How to specify JDK version for Maven?

Problem
I have multiple JDK version in my computer, how to specify JDK version for Maven?

How-to

Add the two properties in your pom.xml
 <properties>
  <maven.compiler.source>1.8</maven.compiler.source>
  <maven.compiler.target>1.8</maven.compiler.target>
 </properties>


No comments: