Is it possible to set a property in a POM file with reference to $JAVA_HOME
?
<executable><$JAVA_HOME>/bin/javac</executable>
The reason I am doing this is the only way I can get maven to use the correct compiler version is by setting the <executable>
. But I don't want to hard-code the JAVA_HOME
location in the pom file.