Skip to content

Instantly share code, notes, and snippets.

@andgomes
Created October 7, 2016 19:12
Show Gist options
  • Save andgomes/2175ab73b934422cd1ca00b45e95746d to your computer and use it in GitHub Desktop.
Save andgomes/2175ab73b934422cd1ca00b45e95746d to your computer and use it in GitHub Desktop.
Plugin Compiler configurado para utilizar uma JDK diferente.
<project ...>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<fork>true</fork>
<executable>/home/seuusername/jdk1.8/bin/javac</executable>
<compilerVersion>1.8</compilerVersion>
</configuration>
</plugin>
</plugins>
</build>
...
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment