Permalink
Browse files

added methods to publish bson and the driver to a local repository.

  • Loading branch information...
Ryan
Ryan committed Aug 19, 2011
1 parent 8944cf1 commit 7253386e9100e470a1d8c0aef4ad3212ff875ca7
Showing with 28 additions and 0 deletions.
  1. +28 −0 maven/build.xml
View
@@ -63,6 +63,34 @@ limitations under the License.
</target>
+ <!-- ******************************************************************* -->
+ <!-- Publish locally. -->
+ <!-- ******************************************************************* -->
+
+ <target name="publish-local" depends="maven.init">
+
+ <artifact:mvn>
+ <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file"/>
+ <arg value="-Durl=file://%buildroot/%{_datadir}/maven2/repository"/>
+ <arg value="-DrepositoryId=local"/>
+ <arg value="-DpomFile=${dir.build}/maven-mongo-java-driver.xml"/>
+ <arg value="-Dfile=${dir.build}/dist/mongo-java-driver-${build.conf.lib.version}.jar"/>
+ <arg value="-Dkeyname=CAA86C78"/>
+ <arg value="-Pgpg-mongodb"/>
+ </artifact:mvn>
+
+ <artifact:mvn>
+ <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file"/>
+ <arg value="-Durl=file://%buildroot/%{_datadir}/maven2/repository"/>
+ <arg value="-DrepositoryId=local"/>
+ <arg value="-DpomFile=${dir.build}/maven-bson.xml"/>
+ <arg value="-Dfile=${dir.build}/dist/bson-${build.conf.lib.version}.jar"/>
+ <arg value="-Dkeyname=CAA86C78"/>
+ <arg value="-Pgpg-mongodb" />
+ </artifact:mvn>
+
+ </target>
+
<!-- ******************************************************************* -->
<!-- Stage in the Maven repository. -->
<!-- ******************************************************************* -->

0 comments on commit 7253386

Please sign in to comment.