Perhaps I am just going crazy but maven just won't pick up JAVA_HOME on F27.
1. sudo dnf install maven
2. echo $JAVA_HOME returns
/usr/lib/jvm/java-9-openjdk-18.104.22.168-7.fc27.x86_64 (which includes bin
dir with JDK tools such as javac, keytool etc so it is JDK for sure)
3. Any mvn command results in
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Also tried JDK8 and Oracel Java 9
..same result. I feel like there is some hidden config messing me up
or some weird stuff happening. Anyone has an idea what it could be? Last
time I was still on F26 and it worked.