Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jhcao23/9942021 to your computer and use it in GitHub Desktop.
Save jhcao23/9942021 to your computer and use it in GitHub Desktop.
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<verbose>true</verbose>
<fork>true</fork>
<executable>/path/to/your/jdk6/bin/javac</executable>
<compilerVersion>1.6</compilerVersion>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<useSystemClassLoader>true</useSystemClassLoader>
<jvm>/path/to/your/jdk6/bin/java</jvm>
<reuseForks>false</reuseForks>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment