Amazon web services AWS EC2上的色调安装错误

Amazon web services AWS EC2上的色调安装错误,amazon-web-services,amazon-ec2,rhel,hue,Amazon Web Services,Amazon Ec2,Rhel,Hue,您好,我正在尝试在AWS EC2实例上安装色调 下面是链接 在执行步骤制作应用程序时,我发现以下错误 [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] ----------------------

您好,我正在尝试在AWS EC2实例上安装色调

下面是链接

在执行步骤制作应用程序时,我发现以下错误

[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)

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

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

Detected JDK Version: 1.6.0-30

确保JAVA_HOME变量指向JAVA 1.7安装的主目录。

您还可以通过编辑以下内容来删除JDK 7检查:

vim maven/pom.xml

并以"6"取代"7":

显然,您应该知道,如果您计划使用Java 7,那么最好确保Java 7是默认的

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