From: Jake Farrell Date: Tue, 19 Apr 2011 21:11:54 +0000 (+0000) Subject: Thrift-363: Maven Deploy X-Git-Tag: 0.6.1~4 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=b46cbbf3182dd2792ad3d34ddb083fed91573be4;p=common%2Fthrift.git Thrift-363: Maven Deploy Patch: jfarrell Client lib: java Adding the ability to publish the java client library as artifacts to the apache maven repository. Usage: ant -Drelease=true publish Note: You must have a gpg key setup and push it to pgp.mit.edu and have a ~/.m2/settings.xml file containing your apache and gpg information. Thrift-1114 will help make this file more secure or unnecessary. apache.releases.https @APACHE_USERNAME@ @APACHE_PASSWORD@ gpg @GPG_PASSPHRASE@ git-svn-id: https://svn.apache.org/repos/asf/thrift/branches/0.6.x@1095216 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/java/build.properties b/lib/java/build.properties new file mode 100644 index 00000000..3c75005e --- /dev/null +++ b/lib/java/build.properties @@ -0,0 +1,21 @@ +thrift.version=0.6.1 +thrift.groupid=org.apache.thrift + +# Jar Versions +mvn.ant.task.version=2.1.3 + +# Local Install paths +install.path=/usr/local/lib +install.javadoc.path=${install.path} + +# Maven dependency download locations +mvn.repo=http://repo1.maven.org/maven2 +apache.repo=https://repository.apache.org/content/repositories/releases +mvn.ant.task.url=${mvn.repo}/org/apache/maven/maven-ant-tasks/${mvn.ant.task.version} +mvn.ant.task.jar=maven-ant-tasks-${mvn.ant.task.version}.jar + +# Apache Maven publish +license=http://www.apache.org/licenses/LICENSE-2.0.txt" +maven-repository-url=https://repository.apache.org/service/local/staging/deploy/maven2 +maven-repository-id=apache.releases.https + diff --git a/lib/java/build.xml b/lib/java/build.xml index f626b372..cddf014c 100644 --- a/lib/java/build.xml +++ b/lib/java/build.xml @@ -18,83 +18,57 @@ under the License. --> Thrift Build File - - - - - - - - - - - - - - - - - - - + + + + - + - - + + - - - - + + - - - + + + + - + - - - - - - + + - - - - - - + - + @@ -102,12 +76,12 @@ - - - + + + - + @@ -115,38 +89,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - You need Apache Ivy 2.0 or later from ${ivy.repo.url}. It could not be loaded from ${ivy.jar} - - - + - + - + @@ -176,11 +124,11 @@ - + - + @@ -191,13 +139,13 @@ - + - + @@ -207,13 +155,13 @@ - + + > @@ -236,35 +184,35 @@ Tests failed! - + - + - + - + - + - + @@ -280,25 +228,25 @@ - + - + - + - - + + - - + + - + + > @@ -332,7 +280,8 @@ - + + @@ -341,22 +290,22 @@ - + - + - + - + - + @@ -375,7 +324,7 @@ - +