maven NB: JAVA_HOME should point to a JDK not a JRE

  运维

php调用maven打包报错:

maven NB: JAVA_HOME should point to a JDK not a JRE

调用时未加载环境变量
修改/bin/mvn在首行增加JAVA_HOME即可:

JAVA_HOME=/usr/local/jdk-8u241-linux-x64/jdk1.8.0_241

LEAVE A COMMENT

Captcha Code