A target for deploying our artifacts to a local Maven repository.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2943 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2010-11-12 22:43:27 +00:00
parent a4e126e060
commit 63adf2d915
2 changed files with 30 additions and 0 deletions
+16
View File
@@ -130,4 +130,20 @@
<jar basedir="${gwtjar.dir}" destfile="${deploy.dir}/${lib.name}-gwt.jar"/>
<delete dir="${gwtjar.dir}"/>
</target>
<target name="maven-deploy" depends="dist"
description="Deploys our build artifacts to a Maven repository.">
<fail unless="maven.deploy.repo">
You must specify the Maven Repository location via -Dmaven.deploy.repo=file:///path.
</fail>
<artifact:deploy file="${deploy.dir}/${lib.name}.jar">
<remoteRepository url="${maven.deploy.repo}"/>
<pom refid="pom"/>
</artifact:deploy>
<artifact:pom id="gwt-pom" file="gwt-pom.xml"/>
<artifact:deploy file="${deploy.dir}/${lib.name}-gwt.jar">
<remoteRepository url="${maven.deploy.repo}"/>
<pom refid="gwt-pom"/>
</artifact:deploy>
</target>
</project>