I am trying to specify, in my maven settings.xml and my pom.xml, which jvm to use for my gwt project.
I am using the suggestion from https://stackoverflow.com/a/20787334/265119. I have used this on other, non-gwt projects successfully.
Now however it seems that maven is ignoring this, and continues to use java 8, whereas I have set the following in my settings.xml:
<profiles>
<profile>
<id>default</id>
<properties>
<JAVA_1_7_HOME>/usr/lib/jvm/java-7-oracle/bin/javac</JAVA_1_7_HOME>
<JAVA_1_8_HOME>/usr/lib/jvm/java-8-oracle/bin/javac</JAVA_1_8_HOME>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>default</activeProfile>
</activeProfiles>
And in my pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<executable>${JAVA_1_7_HOME}</executable>
</configuration>
</plugin>
Does anyone know why maven is ignoring these? Does the gwt maven plugin also need to specify the jvm version?
Thanks