HADOOP-6635. Install/deploy source jars to Maven repo. (Patrick Angeles via jghoman)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@937853 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jakob Homan 2010-04-25 18:58:13 +00:00
parent 27a9fce10d
commit 18262cc096
2 changed files with 19 additions and 0 deletions

View File

@ -220,6 +220,9 @@ Trunk (unreleased changes)
HADOOP-6658. Exclude Private elements from generated Javadoc. (tomwhite)
HADOOP-6635. Install/deploy source jars to Maven repo.
(Patrick Angeles via jghoman)
OPTIMIZATIONS
HADOOP-6467. Improve the performance on HarFileSystem.listStatus(..).

View File

@ -161,6 +161,8 @@
<property name="ivy.publish.pattern" value="[artifact]-[revision].[ext]"/>
<property name="hadoop-core.jar" location="${build.dir}/${final.name}.jar" />
<property name="hadoop-core-test.jar" location="${build.dir}/${test.final.name}.jar" />
<property name="hadoop-core-sources.jar" location="${build.dir}/${final.name}-sources.jar" />
<property name="hadoop-core-test-sources.jar" location="${build.dir}/${test.final.name}-sources.jar" />
<!-- jdiff.home property set -->
<property name="jdiff.home" value="${build.ivy.lib.dir}/${ant.project.name}/jdiff"/>
@ -424,6 +426,11 @@
<fileset dir="${conf.dir}" includes="${jar.properties.list}" />
<fileset file="${jar.extra.properties.list}" />
</jar>
<jar jarfile="${hadoop-core-sources.jar}">
<fileset dir="${java.src.dir}" includes="org/apache/hadoop/**/*.java"/>
<fileset dir="${build.src}" includes="org/apache/hadoop/**/*.java"/>
</jar>
</target>
<!-- ================================================================== -->
@ -528,6 +535,11 @@
</section>
</manifest>
</jar>
<jar jarfile="${hadoop-core-test-sources.jar}">
<fileset dir="${test.generated.dir}" includes="org/apache/hadoop/**/*.java"/>
<fileset dir="${test.src.dir}/core" includes="org/apache/hadoop/**/*.java"/>
</jar>
</target>
<!-- ================================================================== -->
@ -1169,9 +1181,11 @@
<artifact:pom file="${hadoop-core-test.pom}" id="hadoop.core.test"/>
<artifact:install file="${hadoop-core.jar}">
<pom refid="hadoop.core"/>
<attach file="${hadoop-core-sources.jar}" classifier="sources" />
</artifact:install>
<artifact:install file="${hadoop-core-test.jar}">
<pom refid="hadoop.core.test"/>
<attach file="${hadoop-core-test-sources.jar}" classifier="sources" />
</artifact:install>
</target>
@ -1184,10 +1198,12 @@
<artifact:deploy file="${hadoop-core.jar}">
<remoteRepository id="apache.snapshots.https" url="${asfrepo}"/>
<pom refid="hadoop.core"/>
<attach file="${hadoop-core-sources.jar}" classifier="sources" />
</artifact:deploy>
<artifact:deploy file="${hadoop-core-test.jar}">
<remoteRepository id="apache.snapshots.https" url="${asfrepo}"/>
<pom refid="hadoop.core.test"/>
<attach file="${hadoop-core-test-sources.jar}" classifier="sources" />
</artifact:deploy>
</target>