安装了java 8和
Java -version
产量
Baymax = new Robot();
Baymax.send('message "I am Baymax, your personal health care companion"', function (err, result) {
console.log('command successfully sent.')
});
在钩子下有一个AfterInstall脚本,只有
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
AWS codedeploy失败并出现以下错误
cd $HOME/workspace
mvn clean install
echo $ JAVA_HOME给出
/usr/java/jdk1.8.0_45/jre
还尝试将JAVA_HOME设置为
/usr/java/jdk1.8.0_45
当我在工作区中直接尝试mvn clean install时,它能够正确地拾取Java。知道代码部署出了什么问题吗?
{\"message\":\"Script at specified location: scripts/start failed with exit code 1\",\"log\":\"LifecycleEvent - AfterInstall\\nScript - scripts/start\\n[stderr]Error: JAVA_HOME is not defined correctly.\\n[stderr] We cannot execute /usr/lib/jvm/jre/bin/java\\n\"}"}
答案 0 :(得分:1)