HI,
I want to run GWT with JVM other than used by Maven.
I am trying use toolchain approach. Below is my toolchain.xml :
<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK toolchains -->
<toolchain>
<type>jdk</type>
<provides>
<version>1.8</version>
<vendor>oracle</vendor>
</provides>
<configuration>
<jdkHome>C:\Program Files\Java\jdk1.8.0_341\bin</jdkHome>
</configuration>
</toolchain>
</toolchains>
In the same pom.xml where I am using this toolchain, maven-compiler-plugin is able to detect the toolchain but not gwt-plugin.
Below is my pom.xml:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.version}</version>
<executions>
<execution>
<configuration>
<module>com.msci.eqa.prodqa.admin.ProdQAAdmin</module>
<webappDirectory>war</webappDirectory>
</configuration>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<version>1.8</version>
<vendor>oracle</vendor>
</jdk>
</toolchains>
</configuration>
</plugin>
Can you please help me using toolchains to achieve this?
Thanks!