在hadoop-2.2.0基础上基于sqoop源码编译构建sqoop-1.4.4

下载sqoop-1.4.4源码sqoop-1.4.4.tar.gz

解压sqoop-1.4.4.tar.gz

修改sqoop-1.4.4/build.xml

修改sqoop-1.4.4/build.xml文件中79~88行内容为

<elseif>
<equals arg1="${hadoopversion}" arg2="200" />
<then>
<property name="hadoop.version" value="2.2.0" />
<property name="hbase.version" value="0.98.1-hadoop2" />
<property name="zookeeper.version" value="3.4.6" />
<property name="hadoop.version.full" value="2.2.0" />
<property name="hcatalog.version" value="0.11.0" />
</then>
</elseif>

修改sqoop-1.4.4/ivy/ivysettings.xml

ivysettings.xml修改后的内容

<ivysettings>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->


<!--
see http://www.jayasoft.org/ivy/doc/configuration
-->

<!-- you can override this property to use mirrors
http://repo1.maven.org/maven2/
http://mirrors.dotsrc.org/maven2
http://ftp.ggi-project.org/pub/packages/maven2
http://mirrors.sunsite.dk/maven2
http://public.planetmirror.com/pub/maven2
http://ibiblio.lsu.edu/main/pub/packages/maven2
http://www.ibiblio.net/pub/packages/maven2
-->

<property name="repo.maven.org" value="http://repo1.maven.org/maven2/"
override="false"/>

<property name="snapshot.apache.org"
value="https://repository.apache.org/content/repositories/snapshots/"
override="false"/>

<property name="staging.cloudera.com"
value="https://repository.cloudera.com/content/repositories/staging/"
override="false"/>

<property name="releases.cloudera.com"
value="https://repository.cloudera.com/content/repositories/releases/"
override="false"/>

<property name="www.datanucleus.org"
value="http://www.datanucleus.org/downloads/maven2/"
override="false"/>

<property name="maven2.pattern"
value="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])"/>

<property name="repo.dir" value="${user.home}/.m2/repository"/>
<property name="maven2.pattern.ext" value="${maven2.pattern}.[ext]"/>
<property name="resolvers" value="default" override="false"/>
<settings defaultResolver="${resolvers}"/>

<resolvers>
<ibiblio name="maven-osc" root="http://maven.oschina.net/content/groups/public/"
pattern="${maven2.pattern.ext}" m2compatible="true"/>

<ibiblio name="maven2" root="${repo.maven.org}"
pattern="${maven2.pattern.ext}" m2compatible="true"/>

<ibiblio name="datanucleus" root="${www.datanucleus.org}"
pattern="${maven2.pattern.ext}" m2compatible="true"/>

<ibiblio name="cloudera-releases" root="${releases.cloudera.com}"
pattern="${maven2.pattern.ext}" m2compatible="true"/>

<ibiblio name="apache-snapshot" root="${snapshot.apache.org}"
m2compatible="true" checkmodified="true" changingPattern=".*SNAPSHOT"/>

<ibiblio name="cloudera-staging" root="${staging.cloudera.com}"
m2compatible="true" checkmodified="true" changingPattern=".*SNAPSHOT"/>


<filesystem name="fs" m2compatible="true">
<artifact pattern="${repo.dir}/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"/>
<ivy pattern="${repo.dir}/[organisation]/[module]/[revision]/[module]-[revision].pom"/>
</filesystem>

<chain name="default" dual="true" checkmodified="true"
changingPattern=".*SNAPSHOT">

<resolver ref="maven-osc"/>
<resolver ref="fs"/>
<resolver ref="apache-snapshot"/>
<resolver ref="datanucleus"/>
<resolver ref="cloudera-releases"/>
<resolver ref="cloudera-staging"/>
<resolver ref="maven2"/>
</chain>

<chain name="internal" dual="true">
<resolver ref="maven-osc"/>
<resolver ref="fs"/>
<resolver ref="apache-snapshot"/>
<resolver ref="datanucleus"/>
<resolver ref="cloudera-staging"/>
<resolver ref="maven2"/>
</chain>

<chain name="external">
<resolver ref="maven2"/>
</chain>

</resolvers>
<modules>
<module organisation="org.apache.hadoop" name="hadoop-*" resolver="${resolvers}"/>
</modules>
</ivysettings>

添加了maven-osc的maven源。请结合上面的配置对照着看。

修改sqoop-1.4.4/ivy.xml

修改ivy.xml文件内容为

<?xml version="1.0" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="com.cloudera.sqoop" module="${name}">
<license name="Apache 2.0"/>
<ivyauthor name="Sqoop Team" url="http://github.com/cloudera/sqoop" />
<description>
Sqoop
</description>
</info>
<configurations defaultconfmapping="default">
<!--these match the Maven configurations-->
<conf name="default" extends="master,runtime"/>
<conf name="master" description="contains the artifact but no dependencies"/>
<conf name="runtime" description="runtime but not the artifact" />

<conf name="common" visibility="private"
extends="runtime"
description="artifacts needed to compile/test the application"/>
<conf name="hbase" visibility="private" />
<conf name="hcatalog" visibility="private" />
<conf name="hadoop23" visibility="private"
extends="common,runtime,hbase,hcatalog" />
<conf name="hadoop20" visibility="private"
extends="common,runtime,hbase,hcatalog" />
<conf name="hadoop100" visibility="private"
extends="common,runtime,hbase,hcatalog" />
<conf name="hadoop200" visibility="private"
extends="common,runtime,hbase,hcatalog" />

<conf name="test" visibility="private" extends="common,runtime"/>
<conf name="hadoop23test" visibility="private" extends="test,hadoop23" />
<conf name="hadoop20test" visibility="private" extends="test,hadoop20" />
<conf name="hadoop100test" visibility="private" extends="test,hadoop100" />
<conf name="hadoop200test" visibility="private" extends="test,hadoop200" />

<!-- We don't redistribute everything we depend on (e.g., Hadoop itself);
anything which Hadoop itself also depends on, we do not ship.
Things we actually need to ship are marked with a 'redist'
configuration. -->
<conf name="redist" visibility="private" extends="master" />

<!-- This configuration is used to identify dependencies on our own
shim targets required by clients of Sqoop who use maven. -->
<conf name="mvndeploy" visibility="private" extends="master" />

<!-- configuration for running checkstyle -->
<conf name="checkstyle" visibility="private" />

<!-- configuration for running rat -->
<conf name="releaseaudit" visibility="private" />
</configurations>

<publications>
<!--get the artifact from our module name-->
<artifact conf="master"/>
</publications>
<dependencies>

<!-- Dependencies for Hadoop 2.0.0 -->
<dependency org="org.apache.hadoop" name="hadoop-common"
rev="${hadoop.version}" conf="hadoop200->default">
<artifact name="hadoop-common" type="jar" />
<artifact name="hadoop-common" type="jar" m:classifier="tests"/>
</dependency>
<dependency org="org.apache.hadoop" name="hadoop-hdfs"
rev="${hadoop.version}" conf="hadoop200->default">
<artifact name="hadoop-hdfs" type="jar" />
<artifact name="hadoop-hdfs" type="jar" m:classifier="tests"/>
</dependency>
<dependency org="org.apache.hadoop" name="hadoop-mapreduce-client-common"
rev="${hadoop.version}" conf="hadoop200->default"/>
<dependency org="org.apache.hadoop" name="hadoop-mapreduce-client-core"
rev="${hadoop.version}" conf="hadoop200->default"/>

<!-- Dependencies for Hadoop 0.23 -->
<dependency org="org.apache.hadoop" name="hadoop-common"
rev="${hadoop.version}" conf="hadoop23->default">
<artifact name="hadoop-common" type="jar" />
<artifact name="hadoop-common" type="jar" m:classifier="tests"/>
</dependency>
<dependency org="org.apache.hadoop" name="hadoop-hdfs"
rev="${hadoop.version}" conf="hadoop23->default">
<artifact name="hadoop-hdfs" type="jar" />
<artifact name="hadoop-hdfs" type="jar" m:classifier="tests"/>
</dependency>
<dependency org="org.apache.hadoop" name="hadoop-mapreduce-client-common"
rev="${hadoop.version}" conf="hadoop23->default"/>
<dependency org="org.apache.hadoop" name="hadoop-mapreduce-client-core"
rev="${hadoop.version}" conf="hadoop23->default"/>

<!-- Dependencies for Hadoop 1.0.0 -->
<dependency org="org.apache.hadoop" name="hadoop-core"
rev="${hadoop.version}" conf="hadoop100->default"/>
<dependency org="org.apache.hadoop" name="hadoop-test"
rev="${hadoop.version}" conf="hadoop100test->default"/>

<!-- Dependencies for Hadoop 0.20 -->
<dependency org="org.apache.hadoop" name="hadoop-core"
rev="${hadoop.version}" conf="hadoop20->default"/>
<dependency org="org.apache.hadoop" name="hadoop-test"
rev="${hadoop.version}" conf="hadoop20test->default"/>

<!-- Common dependencies for Sqoop -->
<dependency org="commons-cli" name="commons-cli"
rev="${commons-cli.version}" conf="common->default"/>
<dependency org="commons-logging" name="commons-logging"
rev="${commons-logging.version}" conf="common->default"/>
<dependency org="log4j" name="log4j" rev="${log4j.version}"
conf="common->master" />
<dependency org="junit" name="junit" rev="${junit.version}"
conf="test->default"/>
<!-- We're only using H2 for tests as it supports stored
procedures; once we move to HSQLDB 2.x we can drop
this -->
<dependency org="com.h2database" name="h2" rev="${h2.version}"
conf="test->default"/>
<dependency org="hsqldb" name="hsqldb" rev="${hsqldb.version}"
conf="common->default;redist->default"/>
<dependency org="commons-io" name="commons-io" rev="${commons-io.version}"
conf="common->default;redist->default"/>
<dependency org="org.apache.avro" name="avro" rev="${avro.version}"
conf="common->default;redist->default">
<exclude org="org.slf4j" module="slf4j-api"/>
<exclude org="org.mortbay.jetty" module="jetty"/>
<exclude org="org.jboss.netty" module="netty"/>
<exclude org="org.apache.velocity" module="velocity"/>
</dependency>
<dependency org="org.apache.avro" name="avro-mapred" rev="${avro.version}"
conf="common->default;redist->default">
<exclude org="org.slf4j" module="slf4j-api"/>
<exclude org="org.mortbay.jetty" module="jetty"/>
<exclude org="org.jboss.netty" module="netty"/>
<exclude org="org.apache.velocity" module="velocity"/>
</dependency>

<!-- dependencies for static analysis -->
<dependency org="checkstyle" name="checkstyle" rev="${checkstyle.version}"
conf="checkstyle->default" />

<dependency org="com.google.code.p.arat" name="rat-lib"
rev="${rats-lib.version}" conf="releaseaudit->default" />
<dependency org="commons-lang" name="commons-lang"
rev="${commons-lang.version}" conf="releaseaudit->default"/>
<dependency org="commons-collections" name="commons-collections"
rev="${commons-collections.version}" conf="releaseaudit->default"/>

<!--
<dependency org="org.apache.hbase" name="hbase"
rev="${hbase.version}" conf="hbase->default">
<artifact name="hbase" type="jar"/>
<artifact name="hbase" type="test-jar" ext="jar" m:classifier="tests"/>
<exclude org="com.sun.jersey" module="jersey-core"/>
<exclude org="com.sun.jersey" module="jersey-json"/>
<exclude org="com.sun.jersey" module="jersey-server"/>
<exclude org="org.apache.thrift" module="thrift"/>
<exclude org="log4j" module="log4j"/>
<exclude org="org.apache.hadoop" module="hadoop-core" />
<exclude org="com.cloudera.cdh" module="zookeeper-ant" />
</dependency>
-->

<!--修改hbase依赖-->

<dependency org="org.apache.hbase" name="hbase"
rev="${hbase.version}" conf="hbase->default"/>

<dependency org="org.apache.hbase" name="hbase-client"
rev="${hbase.version}" conf="hbase->default"/>

<dependency org="org.apache.hbase" name="hbase-common"
rev="${hbase.version}" conf="hbase->default">
<artifact name="hbase-common" type="jar"/>
<artifact name="hbase-common" type="test-jar" ext="jar" m:classifier="tests"/>
</dependency>

<dependency org="org.apache.hbase" name="hbase-server"
rev="${hbase.version}" conf="hbase->default">
<artifact name="hbase-server" type="jar"/>
<artifact name="hbase-server" type="test-jar" ext="jar" m:classifier="tests"/>
</dependency>

<dependency org="org.apache.hcatalog" name="hcatalog-core"
rev="${hcatalog.version}" conf="hcatalog->default">
<artifact name="hcatalog-core" type="jar"/>
</dependency>

<dependency org="org.postgresql" name="postgresql"
rev="${postgresql.version}" conf="common->default" />

<exclude org="org.apache.hadoop" module="avro"/>
<exclude org="commons-daemon" module="commons-daemon" />
<exclude type="pom" />

</dependencies>
</ivy-module>

这里主要修改了hbase的依赖

开始构建

在sqoop-1.4.4解压根目录执行ant clean jar-all -Dhadoopversion=200

E:\sqoop-1.4.4>ant clean jar-all -Dhadoopversion=200
Buildfile: E:\sqoop-1.4.4\build.xml
[echo] Use Hadoop 200
[echo] Use built-in SQL server connector by default

clean:

init:

gen-version:
[exec] fatal: Not a git repository (or any of the parent directories): .git


ivy-download:
[get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-
2.1.0.jar
[get] To: E:\sqoop-1.4.4\lib\ivy-2.1.0.jar

ivy-probe-antlib:

ivy-init-antlib:

ivy-init:
[ivy:configure] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/iv
y/ ::
[ivy:configure] :: loading settings :: file = E:\sqoop-1.4.4\ivy\ivysettings.xml


ivy-resolve-hadoop:
[ivy:resolve] :: resolving dependencies :: com.cloudera.sqoop#sqoop;working@acer

[ivy:resolve] confs: [hadoop200]
[ivy:resolve] found commons-cli#commons-cli;1.2 in maven-osc
[ivy:resolve] found commons-logging#commons-logging;1.0.4 in maven-osc
[ivy:resolve] found log4j#log4j;1.2.16 in maven-osc
[ivy:resolve] found hsqldb#hsqldb;1.8.0.10 in maven-osc
[ivy:resolve] found commons-io#commons-io;1.4 in maven-osc
[ivy:resolve] found org.apache.avro#avro;1.5.3 in maven-osc
[ivy:resolve] found org.codehaus.jackson#jackson-mapper-asl;1.7.3 in maven-osc

部分内容省略.....

logging;1.1.1] in [hadoop200]
[ivy:resolve] commons-io#commons-io;2.1 by [commons-io#commons-io;2.4] in [had
oop200]
[ivy:resolve] org.codehaus.jettison#jettison;1.1 by [org.codehaus.jettison#jet
tison;1.3.1] in [hadoop200]
[ivy:resolve] io.netty#netty;3.6.2.Final by [io.netty#netty;3.6.6.Final] in [h
adoop200]
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| hadoop200 | 157 | 0 | 0 | 35 || 125 | 1 |
---------------------------------------------------------------------

ivy-retrieve-hadoop:
[ivy:retrieve] :: retrieving :: com.cloudera.sqoop#sqoop [sync]
[ivy:retrieve] confs: [hadoop200]
[ivy:retrieve] 125 artifacts copied, 0 already retrieved (71283kB/971ms)
[ivy:cachepath] DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.fil
e' instead

[ivy:cachepath] :: loading settings :: file = E:\sqoop-1.4.4\ivy\ivysettings.xml


compile:
[mkdir] Created dir: E:\sqoop-1.4.4\build\classes
[javac] E:\sqoop-1.4.4\build.xml:406: warning: 'includeantruntime' was not s
et, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 2 source files to E:\sqoop-1.4.4\build\classes
[javac] E:\sqoop-1.4.4\build.xml:418: warning: 'includeantruntime' was not s
et, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 393 source files to E:\sqoop-1.4.4\build\classes
[javac] 注意:某些输入文件使用或覆盖了已过时的 API。
[javac] 注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
[javac] 注意:某些输入文件使用了未经检查或不安全的操作。
[javac] 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。

jar:
[jar] Building jar: E:\sqoop-1.4.4\build\sqoop-1.4.4.jar

ivy-resolve-hadoop-test:
[ivy:resolve] :: resolving dependencies :: com.cloudera.sqoop#sqoop;working@acer

[ivy:resolve] confs: [hadoop200test]
[ivy:resolve] found commons-cli#commons-cli;1.2 in maven-osc
[ivy:resolve] found commons-logging#commons-logging;1.0.4 in maven-osc
[ivy:resolve] found log4j#log4j;1.2.16 in maven-osc
[ivy:resolve] found hsqldb#hsqldb;1.8.0.10 in maven-osc
[ivy:resolve] found commons-io#commons-io;1.4 in maven-osc
[ivy:resolve] found org.apache.avro#avro;1.5.3 in maven-osc
[ivy:resolve] found org.codehaus.jackson#jackson-mapper-asl;1.7.3 in maven-osc

[ivy:resolve] found org.codehaus.jackson#jackson-core-asl;1.7.3 in maven-osc
[ivy:resolve] found com.thoughtworks.paranamer#paranamer;2.3 in maven-osc
[ivy:resolve] found org.xerial.snappy#snappy-java;1.0.3.2 in maven-osc
[ivy:resolve] found org.apache.avro#avro-mapred;1.5.3 in maven-osc
[ivy:resolve] found org.apache.avro#avro-ipc;1.5.3 in maven-osc
[ivy:resolve] found net.sf.jopt-simple#jopt-simple;3.2 in maven-osc
[ivy:resolve] found org.postgresql#postgresql;9.2-1003-jdbc4 in maven-osc
[ivy:resolve] found junit#junit;4.5 in maven-osc
[ivy:resolve] found com.h2database#h2;1.3.170 in maven-osc
[ivy:resolve] found org.apache.hbase#hbase;0.98.1-hadoop2 in maven-osc
[ivy:resolve] found com.github.stephenc.findbugs#findbugs-annotations;1.3.9-1
in maven-osc
[ivy:resolve] found log4j#log4j;1.2.17 in maven-osc
[ivy:resolve] found junit#junit;4.11 in maven-osc
[ivy:resolve] found org.hamcrest#hamcrest-core;1.3 in maven-osc
[ivy:resolve] found org.apache.hbase#hbase-client;0.98.1-hadoop2 in maven-osc
[ivy:resolve] found org.apache.hbase#hbase-protocol;0.98.1-hadoop2 in maven-os
c
[ivy:resolve] found com.google.protobuf#protobuf-java;2.5.0 in maven-osc
[ivy:resolve] found commons-codec#commons-codec;1.7 in maven-osc
[ivy:resolve] found commons-io#commons-io;2.4 in maven-osc
[ivy:resolve] found commons-lang#commons-lang;2.6 in maven-osc
[ivy:resolve] found commons-logging#commons-logging;1.1.1 in maven-osc
[ivy:resolve] found com.google.guava#guava;12.0.1 in maven-osc
[ivy:resolve] found com.google.code.findbugs#jsr305;1.3.9 in maven-osc
[ivy:resolve] found io.netty#netty;3.6.6.Final in maven-osc
[ivy:resolve] found org.apache.zookeeper#zookeeper;3.4.6 in maven-osc
[ivy:resolve] found org.slf4j#slf4j-api;1.6.4 in maven-osc
[ivy:resolve] found org.slf4j#slf4j-log4j12;1.6.1 in maven-osc
[ivy:resolve] found org.cloudera.htrace#htrace-core;2.04 in maven-osc
[ivy:resolve] found org.mortbay.jetty#jetty-util;6.1.26 in maven-osc
[ivy:resolve] found org.codehaus.jackson#jackson-mapper-asl;1.8.8 in maven-osc

[ivy:resolve] found org.codehaus.jackson#jackson-core-asl;1.8.8 in maven-osc
[ivy:resolve] found org.apache.hbase#hbase-common;0.98.1-hadoop2 in maven-osc
[ivy:resolve] found commons-collections#commons-collections;3.2.1 in maven-osc

[ivy:resolve] found org.apache.hbase#hbase-server;0.98.1-hadoop2 in maven-osc
[ivy:resolve] found commons-httpclient#commons-httpclient;3.1 in maven-osc
[ivy:resolve] found com.yammer.metrics#metrics-core;2.1.2 in maven-osc
[ivy:resolve] found com.github.stephenc.high-scale-lib#high-scale-lib;1.1.1 in
maven-osc
[ivy:resolve] found org.apache.commons#commons-math;2.1 in maven-osc
[ivy:resolve] found org.mortbay.jetty#jetty;6.1.26 in maven-osc
[ivy:resolve] found org.mortbay.jetty#jetty-sslengine;6.1.26 in maven-osc
[ivy:resolve] found org.mortbay.jetty#jsp-2.1;6.1.14 in maven-osc
[ivy:resolve] found org.mortbay.jetty#jsp-api-2.1;6.1.14 in maven-osc
[ivy:resolve] found org.mortbay.jetty#servlet-api-2.5;6.1.14 in maven-osc
[ivy:resolve] found org.codehaus.jackson#jackson-jaxrs;1.8.8 in maven-osc
[ivy:resolve] found org.jamon#jamon-runtime;2.3.1 in maven-osc
[ivy:resolve] found com.sun.jersey#jersey-core;1.8 in maven-osc
[ivy:resolve] found com.sun.jersey#jersey-json;1.8 in maven-osc
[ivy:resolve] found org.codehaus.jettison#jettison;1.3.1 in maven-osc
[ivy:resolve] found com.sun.xml.bind#jaxb-impl;2.2.3-1 in maven-osc
[ivy:resolve] found javax.xml.bind#jaxb-api;2.2.2 in maven-osc
[ivy:resolve] found javax.xml.stream#stax-api;1.0-2 in maven-osc
[ivy:resolve] found javax.activation#activation;1.1 in maven-osc
[ivy:resolve] found org.codehaus.jackson#jackson-xc;1.8.8 in maven-osc
[ivy:resolve] found com.sun.jersey#jersey-server;1.8 in maven-osc
[ivy:resolve] found asm#asm;3.1 in maven-osc
[ivy:resolve] found org.apache.hbase#hbase-prefix-tree;0.98.1-hadoop2 in maven
-osc
[ivy:resolve] found tomcat#jasper-compiler;5.5.23 in maven-osc
[ivy:resolve] found tomcat#jasper-runtime;5.5.23 in maven-osc
[ivy:resolve] found commons-el#commons-el;1.0 in maven-osc
[ivy:resolve] found org.apache.hcatalog#hcatalog-core;0.11.0 in maven-osc
[ivy:resolve] found org.apache.hive#hive-cli;0.11.0 in maven-osc
[ivy:resolve] found jline#jline;0.9.94 in maven-osc
[ivy:resolve] found org.apache.hive#hive-service;0.11.0 in maven-osc
[ivy:resolve] found org.apache.hive#hive-exec;0.11.0 in maven-osc
[ivy:resolve] found org.apache.hive#hive-metastore;0.11.0 in maven-osc
[ivy:resolve] found org.antlr#antlr;3.4 in maven-osc
[ivy:resolve] found org.antlr#antlr-runtime;3.4 in maven-osc
[ivy:resolve] found org.antlr#stringtemplate;3.2.1 in maven-osc
[ivy:resolve] found antlr#antlr;2.7.7 in maven-osc
[ivy:resolve] found org.antlr#ST4;4.0.4 in maven-osc
[ivy:resolve] found org.apache.hive#hive-serde;0.11.0 in maven-osc
[ivy:resolve] found org.apache.hive#hive-common;0.11.0 in maven-osc
[ivy:resolve] found org.apache.hive#hive-shims;0.11.0 in maven-osc
[ivy:resolve] found org.apache.thrift#libthrift;0.9.0 in maven-osc
[ivy:resolve] found org.apache.httpcomponents#httpclient;4.1.3 in maven-osc
[ivy:resolve] found org.apache.httpcomponents#httpcore;4.1.3 in maven-osc
[ivy:resolve] found commons-logging#commons-logging-api;1.0.4 in maven-osc
[ivy:resolve] found org.apache.commons#commons-compress;1.4.1 in maven-osc
[ivy:resolve] found org.tukaani#xz;1.0 in maven-osc
[ivy:resolve] found org.mockito#mockito-all;1.8.2 in maven-osc
[ivy:resolve] found org.apache.thrift#libfb303;0.9.0 in maven-osc
[ivy:resolve] found org.apache.avro#avro;1.7.1 in maven-osc
[ivy:resolve] found org.xerial.snappy#snappy-java;1.0.4.1 in maven-osc
[ivy:resolve] found org.apache.avro#avro-mapred;1.7.1 in maven-osc
[ivy:resolve] found org.apache.avro#avro-ipc;1.7.1 in maven-osc
[ivy:resolve] found org.apache.velocity#velocity;1.7 in maven-osc
[ivy:resolve] found org.mortbay.jetty#servlet-api;2.5-20081211 in maven-osc
[ivy:resolve] found commons-dbcp#commons-dbcp;1.4 in maven-osc
[ivy:resolve] found commons-pool#commons-pool;1.5.4 in maven-osc
[ivy:resolve] found org.datanucleus#datanucleus-connectionpool;2.0.3 in maven-
osc
[ivy:resolve] found org.datanucleus#datanucleus-core;2.0.3 in maven-osc
[ivy:resolve] found org.datanucleus#datanucleus-enhancer;2.0.3 in maven-osc
[ivy:resolve] found org.datanucleus#datanucleus-rdbms;2.0.3 in maven-osc
[ivy:resolve] found javax.jdo#jdo2-api;2.3-ec in maven-osc
[ivy:resolve] found javax.transaction#jta;1.1 in maven-osc
[ivy:resolve] found org.apache.derby#derby;10.4.2.0 in maven-osc
[ivy:resolve] found org.iq80.snappy#snappy;0.2 in maven-osc
[ivy:resolve] found org.json#json;20090211 in maven-osc
[ivy:resolve] found commons-configuration#commons-configuration;1.6 in maven-o
sc
[ivy:resolve] found commons-digester#commons-digester;1.8 in maven-osc
[ivy:resolve] found commons-beanutils#commons-beanutils;1.7.0 in maven-osc
[ivy:resolve] found commons-beanutils#commons-beanutils-core;1.8.0 in maven-os
c
[ivy:resolve] found com.googlecode.javaewah#JavaEWAH;0.3.2 in maven-osc
[ivy:resolve] found javolution#javolution;5.5.1 in maven-osc
[ivy:resolve] found org.apache.hadoop#hadoop-common;2.2.0 in maven-osc
[ivy:resolve] found org.apache.hadoop#hadoop-annotations;2.2.0 in maven-osc
[ivy:resolve] found xmlenc#xmlenc;0.52 in maven-osc
[ivy:resolve] found commons-net#commons-net;3.1 in maven-osc
[ivy:resolve] found javax.servlet#servlet-api;2.5 in maven-osc
[ivy:resolve] found com.sun.jersey#jersey-core;1.9 in maven-osc
[ivy:resolve] found com.sun.jersey#jersey-json;1.9 in maven-osc
[ivy:resolve] found com.sun.jersey#jersey-server;1.9 in maven-osc
[ivy:resolve] found asm#asm;3.2 in maven-osc
[ivy:resolve] found net.java.dev.jets3t#jets3t;0.6.1 in maven-osc
[ivy:resolve] found org.slf4j#slf4j-api;1.7.5 in maven-osc
[ivy:resolve] found org.apache.avro#avro;1.7.4 in maven-osc
[ivy:resolve] found org.apache.hadoop#hadoop-auth;2.2.0 in maven-osc
[ivy:resolve] found org.slf4j#slf4j-log4j12;1.7.5 in maven-osc
[ivy:resolve] found com.jcraft#jsch;0.1.42 in maven-osc
[ivy:resolve] found javax.servlet.jsp#jsp-api;2.1 in maven-osc
[ivy:resolve] found org.apache.hadoop#hadoop-hdfs;2.2.0 in maven-osc
[ivy:resolve] found org.apache.hadoop#hadoop-mapreduce-client-common;2.2.0 in
maven-osc
[ivy:resolve] found org.apache.hadoop#hadoop-yarn-common;2.2.0 in maven-osc
[ivy:resolve] found org.apache.hadoop#hadoop-yarn-api;2.2.0 in maven-osc
[ivy:resolve] found com.google.inject.extensions#guice-servlet;3.0 in maven-os
c
[ivy:resolve] found com.google.inject#guice;3.0 in maven-osc
[ivy:resolve] found javax.inject#javax.inject;1 in maven-osc
[ivy:resolve] found aopalliance#aopalliance;1.0 in maven-osc
[ivy:resolve] found org.sonatype.sisu.inject#cglib;2.2.1-v20090111 in maven-os
c
[ivy:resolve] found com.sun.jersey.jersey-test-framework#jersey-test-framework
-grizzly2;1.9 in maven-osc
[ivy:resolve] found com.sun.jersey.contribs#jersey-guice;1.9 in maven-osc
[ivy:resolve] found org.apache.hadoop#hadoop-yarn-client;2.2.0 in maven-osc
[ivy:resolve] found org.apache.hadoop#hadoop-mapreduce-client-core;2.2.0 in ma
ven-osc
[ivy:resolve] found org.apache.hadoop#hadoop-yarn-server-common;2.2.0 in maven
-osc
[ivy:resolve] :: resolution report :: resolve 2758ms :: artifacts dl 82ms
[ivy:resolve] :: evicted modules:
[ivy:resolve] commons-logging#commons-logging;1.0.4 by [commons-logging#common
s-logging;1.1.1] in [hadoop200test]
[ivy:resolve] log4j#log4j;1.2.16 by [log4j#log4j;1.2.17] in [hadoop200test]
[ivy:resolve] commons-io#commons-io;1.4 by [commons-io#commons-io;2.4] in [had
oop200test]
[ivy:resolve] org.apache.avro#avro;1.5.3 by [org.apache.avro#avro;1.7.1] in [h
adoop200test]
[ivy:resolve] org.codehaus.jackson#jackson-mapper-asl;1.7.3 by [org.codehaus.j
ackson#jackson-mapper-asl;1.8.8] in [hadoop200test]
[ivy:resolve] org.codehaus.jackson#jackson-core-asl;1.7.3 by [org.codehaus.jac
kson#jackson-core-asl;1.8.8] in [hadoop200test]
[ivy:resolve] org.xerial.snappy#snappy-java;1.0.3.2 by [org.xerial.snappy#snap
py-java;1.0.4.1] in [hadoop200test]
[ivy:resolve] org.apache.avro#avro-mapred;1.5.3 by [org.apache.avro#avro-mapre
d;1.7.1] in [hadoop200test]
[ivy:resolve] org.apache.avro#avro-ipc;1.5.3 by [org.apache.avro#avro-ipc;1.7.
1] in [hadoop200test]
[ivy:resolve] net.sf.jopt-simple#jopt-simple;3.2 transitively in [hadoop200tes
t]
[ivy:resolve] junit#junit;4.5 by [junit#junit;4.11] in [hadoop200test]
[ivy:resolve] org.slf4j#slf4j-api;1.6.4 by [org.slf4j#slf4j-api;1.7.5] in [had
oop200test]
[ivy:resolve] org.slf4j#slf4j-log4j12;1.6.1 by [org.slf4j#slf4j-log4j12;1.7.5]
in [hadoop200test]
[ivy:resolve] com.sun.jersey#jersey-core;1.8 by [com.sun.jersey#jersey-core;1.
9] in [hadoop200test]
[ivy:resolve] com.sun.jersey#jersey-json;1.8 by [com.sun.jersey#jersey-json;1.
9] in [hadoop200test]
[ivy:resolve] com.sun.jersey#jersey-server;1.8 by [com.sun.jersey#jersey-serve
r;1.9] in [hadoop200test]
[ivy:resolve] asm#asm;3.1 by [asm#asm;3.2] in [hadoop200test]
[ivy:resolve] com.google.guava#guava;11.0.2 by [com.google.guava#guava;12.0.1]
in [hadoop200test]
[ivy:resolve] junit#junit;3.8.1 by [junit#junit;4.11] in [hadoop200test]
[ivy:resolve] org.antlr#antlr-runtime;3.3 by [org.antlr#antlr-runtime;3.4] in
[hadoop200test]
[ivy:resolve] org.apache.zookeeper#zookeeper;3.4.3 by [org.apache.zookeeper#zo
okeeper;3.4.6] in [hadoop200test]
[ivy:resolve] org.slf4j#slf4j-api;1.5.8 by [org.slf4j#slf4j-api;1.6.4] in [had
oop200test]
[ivy:resolve] commons-lang#commons-lang;2.5 by [commons-lang#commons-lang;2.6]
in [hadoop200test]
[ivy:resolve] org.apache.httpcomponents#httpcore;4.1.4 by [org.apache.httpcomp
onents#httpcore;4.1.3] in [hadoop200test]
[ivy:resolve] commons-codec#commons-codec;1.4 by [commons-codec#commons-codec;
1.7] in [hadoop200test]
[ivy:resolve] commons-lang#commons-lang;2.4 by [commons-lang#commons-lang;2.6]
in [hadoop200test]
[ivy:resolve] org.slf4j#slf4j-api;1.6.1 by [org.slf4j#slf4j-api;1.6.4] in [had
oop200test]
[ivy:resolve] org.apache.avro#avro;1.7.1 by [org.apache.avro#avro;1.7.4] in [h
adoop200test]
[ivy:resolve] io.netty#netty;3.4.0.Final by [io.netty#netty;3.6.6.Final] in [h
adoop200test]
[ivy:resolve] asm#asm;[3.0, 4.0) by [asm#asm;3.1] in [hadoop200test]
[ivy:resolve] com.google.protobuf#protobuf-java;2.4.1 by [com.google.protobuf#
protobuf-java;2.5.0] in [hadoop200test]
[ivy:resolve] commons-logging#commons-logging;1.0.3 by [commons-logging#common
s-logging;1.1.1] in [hadoop200test]
[ivy:resolve] commons-logging#commons-logging;1.1 by [commons-logging#commons-
logging;1.1.1] in [hadoop200test]
[ivy:resolve] commons-io#commons-io;2.1 by [commons-io#commons-io;2.4] in [had
oop200test]
[ivy:resolve] org.codehaus.jettison#jettison;1.1 by [org.codehaus.jettison#jet
tison;1.3.1] in [hadoop200test]
[ivy:resolve] io.netty#netty;3.6.2.Final by [io.netty#netty;3.6.6.Final] in [h
adoop200test]
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| hadoop200test | 159 | 0 | 0 | 36 || 126 | 0 |
---------------------------------------------------------------------

ivy-retrieve-hadoop-test:
[ivy:retrieve] :: retrieving :: com.cloudera.sqoop#sqoop [sync]
[ivy:retrieve] confs: [hadoop200test]
[ivy:retrieve] 126 artifacts copied, 0 already retrieved (72719kB/2156ms)

compile-test:
[mkdir] Created dir: E:\sqoop-1.4.4\build\test\classes
[javac] E:\sqoop-1.4.4\build.xml:433: warning: 'includeantruntime' was not s
et, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 130 source files to E:\sqoop-1.4.4\build\test\classes
[javac] 注意:某些输入文件使用或覆盖了已过时的 API。
[javac] 注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
[javac] 注意:某些输入文件使用了未经检查或不安全的操作。
[javac] 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。

jar-test:
[jar] Building jar: E:\sqoop-1.4.4\build\sqoop-test-1.4.4.jar

jar-all:

BUILD SUCCESSFUL
Total time: 31 seconds

最终编译好的sqoop位于sqoop-1.4.4/build目录下.