Skip to content

Instantly share code, notes, and snippets.

@supanadit
Created January 23, 2020 06:51
Show Gist options
  • Save supanadit/71c0b94561b847e41293bbb1e5df1c30 to your computer and use it in GitHub Desktop.
Save supanadit/71c0b94561b847e41293bbb1e5df1c30 to your computer and use it in GitHub Desktop.
Set JDK 8 Version in Maven
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>domain.yourpackage</groupId>
<artifactId>your-artifact</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<!-- Your JDK Version 1.8 you can set it in below 1.8 version -->
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment