From f0f3fdbd3d7b8aa91d75e500fb52a942ac949b6e Mon Sep 17 00:00:00 2001 From: Owen O'Malley Date: Thu, 29 Oct 2009 17:08:42 +0000 Subject: [PATCH] HADOOP-5107. Use Maven ant tasks to publish the subproject jars. (Giridharan Kesavan via omalley) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@831032 13f79535-47bb-0310-9956-ffa450edef68 --- .gitignore | 3 +- CHANGES.txt | 10 +- build.xml | 205 +++++++++++++++--------------- ivy.xml | 20 ++- ivy/hadoop-core-template.xml | 127 ++++++++++++++++++ ivy/hadoop-core-test-template.xml | 53 ++++++++ ivy/hadoop-core-test.xml | 53 ++++++++ ivy/hadoop-core.xml | 127 ++++++++++++++++++ ivy/ivysettings.xml | 66 ++-------- ivy/libraries.properties | 6 +- 10 files changed, 493 insertions(+), 177 deletions(-) create mode 100644 ivy/hadoop-core-template.xml create mode 100644 ivy/hadoop-core-test-template.xml create mode 100644 ivy/hadoop-core-test.xml create mode 100644 ivy/hadoop-core.xml diff --git a/.gitignore b/.gitignore index 2ce372aea2f..00ee78f685c 100644 --- a/.gitignore +++ b/.gitignore @@ -32,7 +32,8 @@ conf/hadoop-policy.xml conf/capacity-scheduler.xml conf/mapred-queue-acls.xml docs/api/ -ivy/ivy-2.0.0-rc2.jar +ivy/ivy-*.jar +ivy/maven-ant-tasks-*.jar logs/ src/contrib/ec2/bin/hadoop-ec2-env.sh src/docs/build diff --git a/CHANGES.txt b/CHANGES.txt index 84f8c097f89..54d04f9979a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -505,8 +505,8 @@ Release 0.21.0 - Unreleased TestNameEditsConfig, TestStartup and TestStorageRestore. (Jakob Homan via shv) - HADOOP-5438. Provide a single FileSystem method to create or open-for-append - to a file. (He Yongqiang via dhruba) + HADOOP-5438. Provide a single FileSystem method to create or + open-for-append to a file. (He Yongqiang via dhruba) HADOOP-5472. Change DistCp to support globbing of input paths. (Dhruba Borthakur and Rodrigo Schmidt via szetszwo) @@ -579,7 +579,8 @@ Release 0.21.0 - Unreleased HADOOP-6160. Fix releaseaudit target to run on specific directories. (gkesavan) - HADOOP-6169. Removing deprecated method calls in TFile. (hong tang via mahadev) + HADOOP-6169. Removing deprecated method calls in TFile. (hong tang via + mahadev) HADOOP-6176. Add a couple package private methods to AccessTokenHandler for testing. (Kan Zhang via szetszwo) @@ -628,6 +629,9 @@ Release 0.21.0 - Unreleased HADOOP-6329. Add build-fi directory to the ignore lists. (szetszwo) + HADOOP-5107. Use Maven ant tasks to publish the subproject jars. + (Giridharan Kesavan via omalley) + OPTIMIZATIONS HADOOP-5595. NameNode does not need to run a replicator to choose a diff --git a/build.xml b/build.xml index 66fd8506b27..fb1a30a66ba 100644 --- a/build.xml +++ b/build.xml @@ -18,7 +18,8 @@ --> + xmlns:ivy="antlib:org.apache.ivy.ant" + xmlns:artifact="urn:maven-artifact-ant"> @@ -27,7 +28,7 @@ - + @@ -123,10 +124,16 @@ + + + - + + + @@ -134,17 +141,20 @@ - - - - + + + + + + + - + @@ -365,7 +375,7 @@ - + @@ -647,7 +657,7 @@ - + @@ -664,7 +674,7 @@ - + @@ -683,7 +693,8 @@ - + @@ -751,7 +762,8 @@ - + @@ -766,8 +778,8 @@ - @@ -782,11 +794,13 @@ - + - + @@ -801,8 +815,7 @@ windowtitle="${Name} ${version} API" doctitle="${Name} ${version} Developer API" bottom="Copyright © ${year} The Apache Software Foundation" - maxmemory="${javadoc.maxmemory}" - > + maxmemory="${javadoc.maxmemory}"> @@ -847,8 +860,7 @@ windowtitle="${Name} ${version} API" doctitle="${Name} ${version} API" bottom="Copyright © ${year} The Apache Software Foundation" - maxmemory="${javadoc.maxmemory}" - > + maxmemory="${javadoc.maxmemory}"> @@ -957,7 +969,7 @@ - + @@ -1057,7 +1069,7 @@ - + @@ -1111,6 +1123,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1140,21 +1206,29 @@ + + + + + + + - + - + @@ -1304,7 +1378,9 @@ - + + @@ -1319,10 +1395,6 @@ - - - - @@ -1353,7 +1425,7 @@ + description="Retrieve Ivy-managed artifacts for the jdiff configurations"> @@ -1366,13 +1438,6 @@ - - - - - - - - - - - - - Not found: ${hadoop-core.jar} - Please run the target "jar" in the main build file - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ivy.xml b/ivy.xml index a2610659a49..2d41b3e43ad 100644 --- a/ivy.xml +++ b/ivy.xml @@ -28,7 +28,7 @@ + extends="client,server,s3-server,kfs,mandatory,jetty,ftp"/> @@ -46,22 +46,19 @@ - + + + + - - - - - @@ -276,7 +273,7 @@ + conf="common->default"/> - diff --git a/ivy/hadoop-core-template.xml b/ivy/hadoop-core-template.xml new file mode 100644 index 00000000000..4bc20d05ef4 --- /dev/null +++ b/ivy/hadoop-core-template.xml @@ -0,0 +1,127 @@ + + + + 4.0.0 + org.apache.hadoop + hadoop-core + jar + @version + + + commons-cli + commons-cli + 1.2 + + + xmlenc + xmlenc + 0.52 + + + commons-httpclient + commons-httpclient + 3.0.1 + + + commons-codec + commons-codec + 1.3 + + + commons-net + commons-net + 1.4.1 + + + org.mortbay.jetty + jetty + 6.1.14 + + + org.mortbay.jetty + jetty-util + 6.1.14 + + + tomcat + jasper-runtime + 5.5.12 + + + tomcat + jasper-compiler + 5.5.12 + + + org.mortbay.jetty + jsp-api-2.1 + 6.1.14 + + + org.mortbay.jetty + jsp-2.1 + 6.1.14 + + + commons-el + commons-el + 1.0 + + + net.java.dev.jets3t + jets3t + 0.7.1 + + + commons-net + commons-net + 1.4.1 + + + org.mortbay.jetty + servlet-api-2.5 + 6.1.14 + + + net.sf.kosmosfs + kfs + 0.3 + + + junit + junit + 4.5 + + + hsqldb + hsqldb + 1.8.0.10 + + + oro + oro + 2.0.8 + + + org.apache.hadoop + avro + 1.0.0 + + + diff --git a/ivy/hadoop-core-test-template.xml b/ivy/hadoop-core-test-template.xml new file mode 100644 index 00000000000..ed1967f2944 --- /dev/null +++ b/ivy/hadoop-core-test-template.xml @@ -0,0 +1,53 @@ + + + + + 4.0.0 + org.apache.hadoop + hadoop-core-test + jar + @version + + + org.apache.hadoop + hadoop-core + @version + + + org.apache.ftpserver + ftplet-api + 1.0.0 + + + org.apache.mina + mina-core + 2.0.0-M5 + + + org.apache.ftpserver + ftpserver-core + 1.0.0 + + + org.apache.ftpserver + ftpserver-deprecated + 1.0.0-M2 + + + diff --git a/ivy/hadoop-core-test.xml b/ivy/hadoop-core-test.xml new file mode 100644 index 00000000000..4623c1c98d3 --- /dev/null +++ b/ivy/hadoop-core-test.xml @@ -0,0 +1,53 @@ + + + + + 4.0.0 + org.apache.hadoop + hadoop-core-test + jar + 0.22.0-SNAPSHOT + + + org.apache.hadoop + hadoop-core + 0.22.0-SNAPSHOT + + + org.apache.ftpserver + ftplet-api + 1.0.0 + + + org.apache.mina + mina-core + 2.0.0-M5 + + + org.apache.ftpserver + ftpserver-core + 1.0.0 + + + org.apache.ftpserver + ftpserver-deprecated + 1.0.0-M2 + + + diff --git a/ivy/hadoop-core.xml b/ivy/hadoop-core.xml new file mode 100644 index 00000000000..ce911732b62 --- /dev/null +++ b/ivy/hadoop-core.xml @@ -0,0 +1,127 @@ + + + + 4.0.0 + org.apache.hadoop + hadoop-core + jar + 0.22.0-SNAPSHOT + + + commons-cli + commons-cli + 1.2 + + + xmlenc + xmlenc + 0.52 + + + commons-httpclient + commons-httpclient + 3.0.1 + + + commons-codec + commons-codec + 1.3 + + + commons-net + commons-net + 1.4.1 + + + org.mortbay.jetty + jetty + 6.1.14 + + + org.mortbay.jetty + jetty-util + 6.1.14 + + + tomcat + jasper-runtime + 5.5.12 + + + tomcat + jasper-compiler + 5.5.12 + + + org.mortbay.jetty + jsp-api-2.1 + 6.1.14 + + + org.mortbay.jetty + jsp-2.1 + 6.1.14 + + + commons-el + commons-el + 1.0 + + + net.java.dev.jets3t + jets3t + 0.7.1 + + + commons-net + commons-net + 1.4.1 + + + org.mortbay.jetty + servlet-api-2.5 + 6.1.14 + + + net.sf.kosmosfs + kfs + 0.3 + + + junit + junit + 4.5 + + + hsqldb + hsqldb + 1.8.0.10 + + + oro + oro + 2.0.8 + + + org.apache.hadoop + avro + 1.0.0 + + + diff --git a/ivy/ivysettings.xml b/ivy/ivysettings.xml index d5765f35060..739d545970c 100644 --- a/ivy/ivysettings.xml +++ b/ivy/ivysettings.xml @@ -1,5 +1,4 @@ - - - - - - - - - - + + + + + + + - - + + + - - - - - - - - - - - - - - - - - diff --git a/ivy/libraries.properties b/ivy/libraries.properties index 2ff945be2d5..aa95a37cdbd 100644 --- a/ivy/libraries.properties +++ b/ivy/libraries.properties @@ -14,7 +14,8 @@ #It drives ivy and the generation of a maven POM #These are the versions of our dependencies (in alphabetical order) -apacheant.version=1.7.0 +apacheant.version=1.7.1 +ant-task.version=2.0.10 avro.version=1.2.0 @@ -41,8 +42,7 @@ ftpserver-deprecated.version=1.0.0-M2 hsqldb.version=1.8.0.10 -#ivy.version=2.0.0-beta2 -ivy.version=2.0.0-rc2 +ivy.version=2.1.0-rc1 jackson.version=1.0.1