无法在某些JAVA环境问题上安装hue ue

时间:2015-01-13 16:04:14

标签: java maven hue

我试图从github(https://github.com/cloudera/hue

安装hue

前4个步骤

$ git clone http://github.com/cloudera/hue.git
$ cd hue
$ make apps
$ build/env/bin/hue runserver

在前两个步骤之后,当我尝试第三个步骤时,它提升了此错误

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9:22.923s
[INFO] Finished at: Tue Jan 13 21:21:59 IST 2015
[INFO] Final Memory: 10M/68M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hue-plugins: Could not resolve dependencies for project com.cloudera.hue:hue-plugins:jar:3.7.0-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path /usr/lib/jvm/java-7-openjdk-i386/jre/../lib/tools.jar -> [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/DependencyResolutionException

可能请个人指导我。提前致谢

1 个答案:

答案 0 :(得分:0)

该错误与Maven没有在您的本地仓库或Maven中心找到依赖关系以便能够构建项目有关。由于该项目是Java项目,因此假设您安装了java-7-openjdk,而您似乎没有。

OpenJDK有一节介绍如何安装它。

然后您应该能够运行构建。

如果在安装后无效,请从文件系统中找到tools.jar文件并使用

手动将其安装到Maven中

mvn install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools -Dpackaging=jar -Dversion=1.7 -Dfile=tools.jar -DgeneratePom=true

并从tools.jar目录中运行命令。