Skip to content
Browse files

Merge pull request #51 from rangadi/publish_local_target

publish-local ant target
  • Loading branch information...
2 parents 9ab0565 + 5830033 commit bc5ec640f40b94f99d38a4e21a958d0c5339681f @traviscrawford traviscrawford committed Jul 18, 2012
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>

0 comments on commit bc5ec64

Please sign in to comment.
Something went wrong with that request. Please try again.