I am working on one of the modules of a multi-module project. I am developing a java plugin to deploy my gigaspace application in pre-integration-test
phase in maven.
The build happens on Teamcity and current JAVA_HOME
points to Java 6 on which whole repository is built. Now, when deploying the application in pre-integration-test
phase, it needs Java 7 because it uses some 3rd party libraries which were compiled in Java 7.
Is there any way I can somehow use Java 7 for deploying my application in pre-integration-test
phase, but use Java 6 for compilation?