Compile Maven Module with Different Java Version

There are a number of hacks out there for compiling source code with a different version of the JDK than you are using to run Maven, for example you can use something like <project> […] <build> […] <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <executable><!– path-to-javac –></executable> </configuration> </plugin> </plugins> […] </build> […] </project> The issue … Read more