本文介绍了我需要构建Sqoop2的哪个Maven版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助从源代码构建Sqoop2.我在CentOS 6.5上使用Maven 3.2.1.当我尝试使用命令编译Sqoop2时:

Please help to build Sqoop2 from source. I use Maven 3.2.1 on CentOS 6.5.When I try to compile Sqoop2 with command:

mvn compile

我从以下原因得到异常

missing org.apache.sqoop:sqoop-core:test-jar:tests:2.0.0-SNAPSHOT

当我尝试使用命令构建Sqoop2时:

When I try to build Sqoop2 with command:

mvn package -Pbinary

我从以下原因得到异常

Missing org/sonatype/aether/graph/DependencyFilter

有什么想法吗?

推荐答案

同一问题:

java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyFilter

原因:java.lang.ClassNotFoundException:org.sonatype.aether.graph.DependencyFilter

Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.graph.DependencyFilter

在Hadoop中报告为 HADOOP-10092 ,并通过碰撞从3.0到3.3.

was reported in Hadoop as HADOOP-10092 and fixed by bumping maven-site-plugin from 3.0 to 3.3.

似乎sqoop的sqoop2分支是使用相同的docs/pom.xml 中的过时版本:

It looks like sqoop's sqoop2 branch is using the same outdated version in docs/pom.xml:

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0-beta-3</version>

我建议尝试相同的修复程序.

I'd suggest trying the same fix.

这篇关于我需要构建Sqoop2的哪个Maven版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 13:23