Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ant target "publish-local" publishes maven artifacts to ./build/repo

  • Loading branch information...
commit 5830033fc9b98b41ca4bd9fe68324cda171c1deb 1 parent 9ab0565
@rangadi rangadi authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 build.xml
View
12 build.xml
@@ -18,7 +18,7 @@
<http://www.gnu.org/licenses/>.
-->
-<project name="Hadoop-GPL-Compression" default="compile"
+<project name="hadoop-lzo" default="compile"
xmlns:ivy="antlib:org.apache.ivy.ant"
xmlns:artifact="urn:maven-artifact-ant">
@@ -578,6 +578,8 @@
<target name="ivy-resolve" depends="ivy-init">
<ivy:resolve settingsRef="${ant.project.name}.ivy.settings"/>
+ <ivy:makepom ivyfile="${basedir}/ivy.xml"
+ pomfile="${build.dir}/${final.name}.pom"/>
</target>
<target name="ivy-resolve-common" depends="ivy-init">
@@ -664,4 +666,12 @@
</artifact:install>
</target>
+ <target name="publish-local" depends="ivy-resolve, jar, mvn-taskdef"
+ description="publish maven artifact to build/repo/">
+ <artifact:deploy file="${build.dir}/${final.name}.jar">
+ <artifact:remoteRepository url="file://${build.dir}/repo"/>
+ <artifact:pom file="${build.dir}/${final.name}.pom"/>
+ </artifact:deploy>
+ </target>
+
</project>
Please sign in to comment.
Something went wrong with that request. Please try again.