0
我想通過git的CentOS的安裝色調6.5 64 錯誤Maven的安裝色調找不到神器的tools.jar
Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre/../lib/tools.jar
我 dime910〜/色調#LS/usr/lib目錄/ JVM/java-1.7.0-openjdk-1.7.0.65.x86_64/jre/lib/tools.jar -rw-r - r-- 1 root root 18M Sep 5 08:39 /usr/lib/jvm/java-1.7的3.0 OpenJDK的-1.7.0.65.x86_64/JRE/lib中/的tools.jar
我跑
mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre/lib/tools.jar
搜查我的系統只有2 pom.files /root/hue/desktop/libs/hadoop/java/pom.xml /root/hue/maven/pom.xml
/root/hue
是混帳創建的目錄
到每個POM文件 - 仍然得到錯誤 似乎..錯誤消息是搞亂 -
我找不到爲什麼...
更多詳細信息...
dime910 ~/hue # mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 08:51:28-0500)
Maven home: /usr/local/maven
Java version: 1.7.0_65, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-431.20.5.el6.x86_64", arch: "amd64", family: "unix"
dime910 ~/hue/maven :(# echo $JAVA_HOME
/usr/lib/jvm/jre-1.7.0-openjdk.x86_64
alternatives --display java
Current `best' version is /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java.
我想我已經完成了我的功課,我正在尋求幫助 - 希望有人看到這個。
到POM文件 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre/lib/tools.jar /usr/lib目錄/ jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre/lib/tools.jar –
anyuser
2014-09-05 21:06:51