|
@@ -40,6 +40,8 @@
|
|
|
<property name="tools.final.name" value="${name}-tools-${version}"/>
|
|
|
<property name="ant.final.name" value="${name}-ant-${version}"/>
|
|
|
<property name="streaming.final.name" value="${name}-streaming-${version}"/>
|
|
|
+ <property name="hadoop-client.final.name" value="${name}-client-${version}"/>
|
|
|
+ <property name="hadoop-minicluster.final.name" value="${name}-minicluster-${version}"/>
|
|
|
|
|
|
<property name="src.dir" value="${basedir}/src"/>
|
|
|
<property name="core.src.dir" value="${src.dir}/core"/>
|
|
@@ -256,6 +258,18 @@
|
|
|
location="${ivy.dir}/hadoop-streaming-pom-template.xml"/>
|
|
|
<property name="hadoop-streaming.jar"
|
|
|
location="${build.dir}/contrib/streaming/${streaming.final.name}.jar"/>
|
|
|
+ <property name="hadoop-client.pom"
|
|
|
+ location="${ivy.dir}/hadoop-client-pom.xml"/>
|
|
|
+ <property name="hadoop-client-pom-template.xml"
|
|
|
+ location="${ivy.dir}/hadoop-client-pom-template.xml"/>
|
|
|
+ <property name="hadoop-client.jar"
|
|
|
+ location="${build.dir}/${hadoop-client.final.name}.jar"/>
|
|
|
+ <property name="hadoop-minicluster.pom"
|
|
|
+ location="${ivy.dir}/hadoop-minicluster-pom.xml"/>
|
|
|
+ <property name="hadoop-minicluster-pom-template.xml"
|
|
|
+ location="${ivy.dir}/hadoop-minicluster-pom-template.xml"/>
|
|
|
+ <property name="hadoop-minicluster.jar"
|
|
|
+ location="${build.dir}/${hadoop-minicluster.final.name}.jar"/>
|
|
|
|
|
|
<!--this is the naming policy for artifacts we want pulled down-->
|
|
|
<property name="ivy.artifact.retrieve.pattern"
|
|
@@ -717,6 +731,27 @@
|
|
|
<fileset file="${jar.extra.properties.list}" />
|
|
|
<zipfileset dir="${build.webapps}" prefix="webapps"/>
|
|
|
</jar>
|
|
|
+ <mkdir dir="${build.dir}/empty"/>
|
|
|
+ <jar jarfile="${build.dir}/${hadoop-client.final.name}.jar"
|
|
|
+ basedir="${build.dir}/empty">
|
|
|
+ <manifest>
|
|
|
+ <section name="org/apache/hadoop">
|
|
|
+ <attribute name="Implementation-Title" value="Hadoop Client"/>
|
|
|
+ <attribute name="Implementation-Version" value="${version}"/>
|
|
|
+ <attribute name="Implementation-Vendor" value="Apache"/>
|
|
|
+ </section>
|
|
|
+ </manifest>
|
|
|
+ </jar>
|
|
|
+ <jar jarfile="${build.dir}/${hadoop-minicluster.final.name}.jar"
|
|
|
+ basedir="${build.dir}/empty">
|
|
|
+ <manifest>
|
|
|
+ <section name="org/apache/hadoop">
|
|
|
+ <attribute name="Implementation-Title" value="Hadoop Minicluster"/>
|
|
|
+ <attribute name="Implementation-Version" value="${version}"/>
|
|
|
+ <attribute name="Implementation-Vendor" value="Apache"/>
|
|
|
+ </section>
|
|
|
+ </manifest>
|
|
|
+ </jar>
|
|
|
</target>
|
|
|
|
|
|
<!-- ================================================================== -->
|
|
@@ -1873,6 +1908,8 @@
|
|
|
<delete file="${basedir}/ivy/hadoop-examples-pom.xml"/>
|
|
|
<delete file="${basedir}/ivy/hadoop-tools-pom.xml"/>
|
|
|
<delete file="${basedir}/ivy/hadoop-streaming-pom.xml"/>
|
|
|
+ <delete file="${basedir}/ivy/hadoop-client-pom.xml"/>
|
|
|
+ <delete file="${basedir}/ivy/hadoop-minicluster-pom.xml"/>
|
|
|
</target>
|
|
|
|
|
|
<target name="clean-sign" description="Clean. Delete .asc files">
|
|
@@ -2457,6 +2494,8 @@
|
|
|
<artifact:pom file="${hadoop-examples.pom}" id="hadoop.examples"/>
|
|
|
<artifact:pom file="${hadoop-tools.pom}" id="hadoop.tools"/>
|
|
|
<artifact:pom file="${hadoop-streaming.pom}" id="hadoop.streaming"/>
|
|
|
+ <artifact:pom file="${hadoop-client.pom}" id="hadoop.client"/>
|
|
|
+ <artifact:pom file="${hadoop-minicluster.pom}" id="hadoop.minicluster"/>
|
|
|
|
|
|
<artifact:install file="${hadoop-core.jar}">
|
|
|
<pom refid="hadoop.core"/>
|
|
@@ -2473,6 +2512,12 @@
|
|
|
<artifact:install file="${hadoop-streaming.jar}">
|
|
|
<pom refid="hadoop.streaming"/>
|
|
|
</artifact:install>
|
|
|
+ <artifact:install file="${hadoop-client.jar}">
|
|
|
+ <pom refid="hadoop.client"/>
|
|
|
+ </artifact:install>
|
|
|
+ <artifact:install file="${hadoop-minicluster.jar}">
|
|
|
+ <pom refid="hadoop.minicluster"/>
|
|
|
+ </artifact:install>
|
|
|
</target>
|
|
|
|
|
|
<target name="mvn-deploy" depends="mvn-taskdef, bin-package, set-version, signanddeploy, simpledeploy"
|
|
@@ -2484,6 +2529,8 @@
|
|
|
<artifact:pom file="${hadoop-examples.pom}" id="hadoop.examples"/>
|
|
|
<artifact:pom file="${hadoop-tools.pom}" id="hadoop.tools"/>
|
|
|
<artifact:pom file="${hadoop-streaming.pom}" id="hadoop.streaming"/>
|
|
|
+ <artifact:pom file="${hadoop-client.pom}" id="hadoop.client"/>
|
|
|
+ <artifact:pom file="${hadoop-minicluster.pom}" id="hadoop.minicluster"/>
|
|
|
<artifact:install-provider artifactId="wagon-http"
|
|
|
version="${wagon-http.version}"/>
|
|
|
<artifact:deploy file="${hadoop-core.jar}">
|
|
@@ -2516,6 +2563,18 @@
|
|
|
<attach file="${hadoop-streaming.jar}.asc" type="jar.asc"/>
|
|
|
<attach file="${hadoop-streaming.pom}.asc" type="pom.asc"/>
|
|
|
</artifact:deploy>
|
|
|
+ <artifact:deploy file="${hadoop-client.jar}">
|
|
|
+ <remoteRepository id="apache.staging.https" url="${asfstagingrepo}"/>
|
|
|
+ <pom refid="hadoop.client"/>
|
|
|
+ <attach file="${hadoop-client.jar}.asc" type="jar.asc"/>
|
|
|
+ <attach file="${hadoop-client.pom}.asc" type="pom.asc"/>
|
|
|
+ </artifact:deploy>
|
|
|
+ <artifact:deploy file="${hadoop-minicluster.jar}">
|
|
|
+ <remoteRepository id="apache.minicluster.https" url="${asfstagingrepo}"/>
|
|
|
+ <pom refid="hadoop.minicluster"/>
|
|
|
+ <attach file="${hadoop-minicluster.jar}.asc" type="jar.asc"/>
|
|
|
+ <attach file="${hadoop-minicluster.pom}.asc" type="pom.asc"/>
|
|
|
+ </artifact:deploy>
|
|
|
</target>
|
|
|
|
|
|
<target name="sign" depends="clean-sign" if="staging">
|
|
@@ -2559,6 +2618,10 @@
|
|
|
output.file="${hadoop-examples.pom}.asc" gpg.passphrase="${gpg.passphrase}"/>
|
|
|
<sign-artifact input.file="${hadoop-streaming.pom}"
|
|
|
output.file="${hadoop-streaming.pom}.asc" gpg.passphrase="${gpg.passphrase}"/>
|
|
|
+ <sign-artifact input.file="${hadoop-client.pom}"
|
|
|
+ output.file="${hadoop-client.pom}.asc" gpg.passphrase="${gpg.passphrase}"/>
|
|
|
+ <sign-artifact input.file="${hadoop-minicluster.pom}"
|
|
|
+ output.file="${hadoop-minicluster.pom}.asc" gpg.passphrase="${gpg.passphrase}"/>
|
|
|
</target>
|
|
|
|
|
|
<target name="simpledeploy" unless="staging">
|
|
@@ -2567,6 +2630,8 @@
|
|
|
<artifact:pom file="${hadoop-examples.pom}" id="hadoop.examples"/>
|
|
|
<artifact:pom file="${hadoop-tools.pom}" id="hadoop.tools"/>
|
|
|
<artifact:pom file="${hadoop-streaming.pom}" id="hadoop.streaming"/>
|
|
|
+ <artifact:pom file="${hadoop-client.pom}" id="hadoop.client"/>
|
|
|
+ <artifact:pom file="${hadoop-minicluster.pom}" id="hadoop.minicluster"/>
|
|
|
|
|
|
<artifact:install-provider artifactId="wagon-http" version="${wagon-http.version}"/>
|
|
|
<artifact:deploy file="${hadoop-core.jar}">
|
|
@@ -2589,6 +2654,14 @@
|
|
|
<remoteRepository id="apache.snapshots.https" url="${asfsnapshotrepo}"/>
|
|
|
<pom refid="hadoop.streaming"/>
|
|
|
</artifact:deploy>
|
|
|
+ <artifact:deploy file="${hadoop-client.jar}">
|
|
|
+ <remoteRepository id="apache.snapshots.https" url="${asfsnapshotrepo}"/>
|
|
|
+ <pom refid="hadoop.client"/>
|
|
|
+ </artifact:deploy>
|
|
|
+ <artifact:deploy file="${hadoop-minicluster.jar}">
|
|
|
+ <remoteRepository id="apache.snapshots.https" url="${asfsnapshotrepo}"/>
|
|
|
+ <pom refid="hadoop.minicluster"/>
|
|
|
+ </artifact:deploy>
|
|
|
</target>
|
|
|
|
|
|
<target name="set-version">
|
|
@@ -2597,11 +2670,15 @@
|
|
|
<delete file="${hadoop-examples.pom}"/>
|
|
|
<delete file="${hadoop-tools.pom}"/>
|
|
|
<delete file="${hadoop-streaming.pom}"/>
|
|
|
+ <delete file="${hadoop-client.pom}"/>
|
|
|
+ <delete file="${hadoop-minicluster.pom}"/>
|
|
|
<copy file="${hadoop-core-pom-template.xml}" tofile="${hadoop-core.pom}"/>
|
|
|
<copy file="${hadoop-test-pom-template.xml}" tofile="${hadoop-test.pom}"/>
|
|
|
<copy file="${hadoop-examples-pom-template.xml}" tofile="${hadoop-examples.pom}"/>
|
|
|
<copy file="${hadoop-tools-pom-template.xml}" tofile="${hadoop-tools.pom}"/>
|
|
|
<copy file="${hadoop-streaming-pom-template.xml}" tofile="${hadoop-streaming.pom}"/>
|
|
|
+ <copy file="${hadoop-client-pom-template.xml}" tofile="${hadoop-client.pom}"/>
|
|
|
+ <copy file="${hadoop-minicluster-pom-template.xml}" tofile="${hadoop-minicluster.pom}"/>
|
|
|
<replaceregexp byline="true">
|
|
|
<regexp pattern="@version"/>
|
|
|
<substitution expression="${version}"/>
|
|
@@ -2611,6 +2688,8 @@
|
|
|
<include name="hadoop-tools-pom.xml"/>
|
|
|
<include name="hadoop-examples-pom.xml"/>
|
|
|
<include name="hadoop-streaming-pom.xml"/>
|
|
|
+ <include name="hadoop-client-pom.xml"/>
|
|
|
+ <include name="hadoop-minicluster-pom.xml"/>
|
|
|
</fileset>
|
|
|
</replaceregexp>
|
|
|
</target>
|