You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sachin Tiwari <im...@gmail.com> on 2019/05/14 14:44:12 UTC
how to configure maven-shade-plugin to execute using specific java version?
Hi,
My default JAVA_HOME points to java 1.6 and I am trying use
maven-shade-plugin version 3.2.1 which requires java 1.7+
So I looking for a way to configure my maven-shade-plugin to execute using
required java version and not my default JAVA_HOME version.
E.g. I had similar issue with maven-surefire-plugin and I was able to solve
it by specifying <jvm> under its <configuration> but unfortunately this
doesn't works for maven-shade-plugin:
<configuration>
<jvm>${JAVA_8_HOME}/bin/java</jvm>
</configuration>
Thanks,
Sachin