AWS EC2上的色调安装错误

时间:2014-03-10 01:50:08

标签: amazon-web-services amazon-ec2 rhel hue

您好我正在尝试在AWS EC2实例上安装Hue。

以下链接。

https://github.com/cloudera/hue

在执行步骤make apps时,我遇到了错误。

[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
Detected JDK Version: 1.6.0-30 is not in the allowed range [1.7.0,1.7.1000].
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.717s
[INFO] Finished at: Sun Mar 09 13:18:59 EDT 2014
[INFO] Final Memory: 5M/25M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce (default) on project hue-parent: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

我有java版

 java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (rhel-2.3.10.4.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

可以提供其他信息。谢谢你的帮助。

2 个答案:

答案 0 :(得分:0)

您的系统中看起来还有另一个Java版本。根据您的安装说明:

Detected JDK Version: 1.6.0-30

确保您的JAVA_HOME变量指向Java 1.7安装的主页。

答案 1 :(得分:0)

您还可以通过编辑删除JDK 7检查:

  

vim maven / pom.xml

并取代' 7'通过' 6':

<javaVersion>1.7</javaVersion>
<sourceJavaVersion>1.7</sourceJavaVersion>
<targetJavaVersion>1.7</targetJavaVersion>

(显然,如果您计划使用7,那么确保Java 7是默认值可能会更好)