Skip to content

Instantly share code, notes, and snippets.

@vector4wang
Created May 29, 2019 11:19
Show Gist options
  • Save vector4wang/1c831e892f4e20ed1ce8dd74fa48b105 to your computer and use it in GitHub Desktop.
Save vector4wang/1c831e892f4e20ed1ce8dd74fa48b105 to your computer and use it in GitHub Desktop.
[pom use jdk1.8] pom中使用java8编译 #Java #Pom
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment