运行这个命令:
mvn package -Pcdh4
这是maven中的错误:
[ERROR] Failed to execute goal on project hdfs-nfs-proxy: Could not resolve dependencIEs for project com.cloudera:hdfs-nfs-proxy:jar:0.8.1: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specifIEd path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar -> [Help 1]
这是/../path的最后一行,path应该是:
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/tools.jar
我不太了解Maven或者它正在采用这个path,我只是想遵循一些构build指令。
HBase不会运行./start-hbase.sh – 权限被拒绝?
Mapreduce错误:无法设置本地目录
windows上的Hadoop – “Error JAVA_HOME is incorrectly set。”
在此 *** 作中,有0个数据节点正在运行,并且不包含任何节点
无法在windows 7上运行Hadoop
通过deBUGging:
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.730s [INFO] Finished at: Wed Apr 17 07:06:39 UTC 2013 [INFO] Final Memory: 8M/360M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project hdfs-nfs-proxy: Could not resolve dependencIEs for project com.cloudera:hdfs-nfs-proxy:jar:0.8.1: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specifIEd path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar -> [Help 1] org.apache.maven.lifecycle.lifecycleExecutionException: Failed to execute goal on project hdfs-nfs-proxy: Could not resolve dependencIEs for project com.cloudera:hdfs-nfs-proxy:jar:0.8.1: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specifIEd path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar at org.apache.maven.lifecycle.internal.lifecycleDependencyResolver.getDependencIEs(lifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.lifecycleDependencyResolver.resolveProjectDependencIEs(lifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependencIEsAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.lifecycleModuleBuilder.buildProject(lifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.lifecycleModuleBuilder.buildProject(lifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.lifecycleStarter.singleThreadedBuild(lifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.lifecycleStarter.execute(lifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencIEs for project com.cloudera:hdfs-nfs-proxy:jar:0.8.1: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specifIEd path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar at org.apache.maven.project.DefaultProjectDependencIEsResolver.resolve(DefaultProjectDependencIEsResolver.java:189) at org.apache.maven.lifecycle.internal.lifecycleDependencyResolver.getDependencIEs(lifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specifIEd path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencIEs(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependencIEsResolver.resolve(DefaultProjectDependencIEsResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specifIEd path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencIEs(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specifIEd path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:256) ... 26 more [ERROR] [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
mvn -v
root@hadoop-hdfsnfsproxy1:/opt/hdfs-nfs-proxy-release-0.8.1# mvn -v Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.7.0_15,vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre Default locale: en_US,platform enCoding: UTF-8 OS name: "linux",version: "3.5.0-27-generic",arch: "amd64",family: "unix" root@hadoop-hdfsnfsproxy1:/opt/hdfs-nfs-proxy-release-0.8.1#
使用HBql Zookeeper不会尝试使用SASL进行身份valIDation
为什么Hadoop与linux紧密结合?
Hadoop集群与Ubuntu和windows
我们需要同一台机器上的mahout和hadoop吗?
SSh:连接拒绝到本地主机
在linux / Ubuntu中安装Sun JDK并将JAVA_HOME指向安装的JDK 。
参考链接
您的JAVA_HOME应该指向一个JDK,而不是一个JRE:tools.jar是位于JDK的lib目录中的一个lib。
总结以上是内存溢出为你收集整理的Maven构build失败,错误:无法find工件…在指定的path – path稍微不正确全部内容,希望文章能够帮你解决Maven构build失败,错误:无法find工件…在指定的path – path稍微不正确所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)