Maven:修改JDK版本
<properties>
<jdk>1.7</jdk>
</properties>
<build>
<finalName>jfork</finalName>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<encoding>UTF-8</encoding>
<source>${jdk}</source>
<target>${jdk}</target>
</configuration>
</plugin>
</plugins>
</build>