Hi, I'm using appassembler-maven-plugin in https://github.com/rahmanusta/AsciidocFX project.
An user opened an issue and he says that; I use java 7 and don't want to use Java 8 system wide for a while. I did the following to asciidocfx.sh to pass the java in the command line: # resolve links - $0 may be a softlink PRG="$0"+GIVEN_JAVA="$1" # For Cygwin, ensure paths are in UNIX format before anything is touched if $cygwin ; then [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"` fi +if [ ! -z "$GIVEN_JAVA" ] ; then+ JAVA_HOME="$GIVEN_JAVA"+fi+ # If a specific java binary isn't specified search for the standard 'java' binary if [ -z "$JAVACMD" ] ; then if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD="$JAVA_HOME/jre/sh/java" else JAVACMD="$JAVA_HOME/bin/java" fi else JAVACMD=`which java` fi fi Then I ran it using: ./asciidocfx.sh ~/opt/jdk1.8.0_20/ Is there any way to implement this need in Maven configuration? -- Rahman USTA 0-(531)-922-28-05 www.kodcu.com