Open Eskibear opened 2 years ago
{
"maven.terminal.customEnv": [
{
"environmentVariable": "JAVA_HOME",
"value": "/usr/local/sdkman/candidates/java/8.0.302-open"
}
]
}
Even if the JAVA_HOME
variable is explicitly specified as above, it does not work well with SDKMAN, the JAVA_HOME
variable is always equal to /usr/local/sdkman/candidates/java/current
in the maven terminal
Are you using zsh or bash? I've heard such issue in zsh before, because JAVA_HOME
was always overidden by what's defined in .zshrc.
@Eskibear
echo $SHELL
/bin/bash
Currently we only check
PATH
formvn
if it's not specified.SDKMAN is a popular tool to install/manage maven distributions, and default location is: /usr/local/sdkman/candidates/maven/current/bin/mvn