From thomas@koch.ro Thu Aug 2 12:11:44 2012 Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id ACCF213A5D7F for ; Thu, 2 Aug 2012 09:11:44 -0300 (ADT) Received: from koch.ro ([88.198.2.104]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SwuFh-0000qr-VI for pgsql-jdbc@postgresql.org; Thu, 02 Aug 2012 12:11:43 +0000 Received: from 57-230.104-92.cust.bluewin.ch ([92.104.230.57] helo=t61.localnet) by koch.ro with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1SwuFS-0001yz-QH for pgsql-jdbc@postgresql.org; Thu, 02 Aug 2012 14:11:26 +0200 From: Thomas Koch Reply-To: thomas@koch.ro To: pgsql-jdbc@postgresql.org Subject: Please consider using Maven Date: Thu, 2 Aug 2012 14:11:25 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-3-amd64; KDE/4.8.4; x86_64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message-Id: <201208021411.25302.thomas@koch.ro> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/7 X-Sequence-Number: 23162 Hi, I'm a Debian maintainer working on a package that uses postgresql. I've to = fix=20 the debian packaging of the jdbs lib because it does not come with maven's= =20 pom.xml files. - That has nothing to do with you. However I noticed, that you don't use maven. From hsn@filez.com Thu Aug 2 15:38:09 2012 Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id A066C13A5D7F for ; Thu, 2 Aug 2012 12:38:09 -0300 (ADT) Received: from ponto.amerinoc.com ([64.6.108.239]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SwxTS-0004BO-38 for pgsql-jdbc@postgresql.org; Thu, 02 Aug 2012 15:38:08 +0000 Received: from fbsd8.localdomain (205.83.broadband7.iol.cz [88.102.83.205]) (authenticated bits=128) by ponto.amerinoc.com (8.14.5/8.14.5) with ESMTP id q72FbkD9095944 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 2 Aug 2012 17:37:49 +0200 (CEST) (envelope-from hsn@filez.com) Received: from [127.0.0.1] ([10.0.0.1]) by fbsd8.localdomain (8.14.5/8.14.5) with ESMTP id q72FbeDN026041 for ; Thu, 2 Aug 2012 17:37:40 +0200 (CEST) (envelope-from hsn@filez.com) Message-ID: <501A9EBD.8070709@filez.com> Date: Thu, 02 Aug 2012 17:37:33 +0200 From: Radim Kolar User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Please consider using Maven References: <201208021411.25302.thomas@koch.ro> In-Reply-To: <201208021411.25302.thomas@koch.ro> Content-Type: multipart/alternative; boundary="------------020906070706010309010009" X-Antivirus: avast! (VPS 120802-0, 02.08.2012), Outbound message X-Antivirus-Status: Clean X-Pg-Spam-Score: 0.0 (/) X-Archive-Number: 201208/8 X-Sequence-Number: 23163 This is a multi-part message in MIME format. --------------020906070706010309010009 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Hi, > > I'm a Debian maintainer working on a package that uses postgresql. > However I noticed, that you don't use maven. We(the community) are working to make one of the finest database systems in the world even better day-by-day. We expect people to look at it the same way. It is 'do-ers' world in open source. If you want something,best way is to do it yourself and if you feel it is good,please consider *giving back*. Please do not expect us to be providing you with full time and extensive support on every issue/feature you want. When we suggest that you "do it yourself" this is in the spirit of open source where you give back. Atri & Dave --------------020906070706010309010009 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit

Hi,

I'm a Debian maintainer working on a package that uses postgresql. 
However I noticed, that you don't use maven.

We(the community) are working to make one of the finest database systems in the world even better day-by-day. We expect people to look at it the same way. It is 'do-ers' world in open source. If you want something,best way is to do it yourself and if you feel it is good,please consider *giving back*.

Please do not expect us to be providing you with full time and extensive support on every issue/feature you want. When we suggest that you "do it yourself" this is in the spirit of open source where you give back.

Atri & Dave
--------------020906070706010309010009-- From pg@fastcrypt.com Thu Aug 2 17:11:47 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 0AAAC13A5D7F for ; Thu, 2 Aug 2012 14:11:47 -0300 (ADT) Received: from mail-vb0-f46.google.com ([209.85.212.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Swyw5-0008N9-O9 for pgsql-jdbc@postgresql.org; Thu, 02 Aug 2012 17:11:46 +0000 Received: by vbbff1 with SMTP id ff1so8348301vbb.19 for ; Thu, 02 Aug 2012 10:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=+EnkAIMraU0HpaGW3jhkDRd7NqP9815sqZZog1pJl+w=; b=V+L6+Gdf3vD6HJazR5e82DsaljdkHmtTZPMEGu2pt/zyjy202NNlslw22HDZNswQyT oEgfJSueHy5DovzDy6oDo3v1zYa25N5TwJ86erp1G5YCuKEIYBZRCBjnP1AtEpWXREyT mcVblnv3u06Gh0hQ++HIG0TqFiQvZW2vcyiOkgRtCjZHMLWqX4SPUIOO+jLo4W6DkMeo Gf6+s6sAfLElaLCut3MjquBLpaViTh/rTcJ8BFGe3TTb+Nluqv+YfXrwYc9+mYwXf2/s 8x/n4QpPD/EyV6HjGUH7MDJTkgLdH+IRwEdL627R/vW4j5mB0qBED1dslt7rFpuOY9ow oI7w== Received: by 10.220.222.20 with SMTP id ie20mr15455710vcb.13.1343927492452; Thu, 02 Aug 2012 10:11:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.137.231 with HTTP; Thu, 2 Aug 2012 10:11:12 -0700 (PDT) In-Reply-To: <201208021411.25302.thomas@koch.ro> References: <201208021411.25302.thomas@koch.ro> From: Dave Cramer Date: Thu, 2 Aug 2012 13:11:12 -0400 X-Google-Sender-Auth: 3nhZBxI389ewx4LGWuRlAOw8h_c Message-ID: Subject: Re: Please consider using Maven To: thomas@koch.ro Cc: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201208/9 X-Sequence-Number: 23164 Thomas, I would have no problem publishing to maven if someone wants to do the work to make it happen. As far as using maven goes. The way the driver is built is highly dependent on ant, and it works very well. This would be a considerable amount of work with very limited benefit to the project. Also the project has no dependencies beyond junit, for testing. Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca On Thu, Aug 2, 2012 at 8:11 AM, Thomas Koch wrote: > Hi, > > I'm a Debian maintainer working on a package that uses postgresql. I've to fix > the debian packaging of the jdbs lib because it does not come with maven's > pom.xml files. - That has nothing to do with you. > > However I noticed, that you don't use maven. > > From a packagers point of view it's very very convenient, if java libraries > all have a common layout and if they declare their dependencies in a pom.xml. > I know that maven is crappy, but it's a better then having to deal with > hundreds of different flavours of crap in ant projects. > > So I'd like to encourage you to re-consider using maven. Please. > > Regards, > > Thomas Koch, http://www.koch.ro > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc From ringerc@ringerc.id.au Fri Aug 3 00:08:07 2012 Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 8DA8A14E1F38 for ; Thu, 2 Aug 2012 21:08:07 -0300 (ADT) Received: from mail-yx0-f174.google.com ([209.85.213.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sx5Qy-00044y-KW for pgsql-jdbc@postgresql.org; Fri, 03 Aug 2012 00:08:06 +0000 Received: by yenl2 with SMTP id l2so153036yen.19 for ; Thu, 02 Aug 2012 17:07:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=T9Xu2h/nKGY48dH9J6nKXS+8N31POOX65RL1wMgGBKQ=; b=XqyZgrORJgnCTLCwNlLi5NkW5sg+ia3fMnTTwFtebtLAyU8Cfo1yxW3LZXyJgC/BcJ ieapdvkZ/MdNamL1917OzqHE+vF/G/BQo85IqQeqEFmKJgwUVh4jcCa5qtQ75Gau7Hw2 sVbj3naBUBq75SOb02V7L/6F8CtB2eRc8FhP+yyXymwV9Zt4KTdmxF5nAsS97QhoW8l0 PsB10fBYvbY4YKd+E1x8/TcjYTlmDFvWy5/B8vQlHI6HN1dEPDBUGC3vJHaWHCsJhXTB B9jwMjJz6jqRNgaU3hwueXeYpkLu70eG0dbeyXWVXIyUIGw8+64a0O2pP8AIGFNJGrTV R7GA== Received: by 10.60.168.230 with SMTP id zz6mr41033470oeb.11.1343952471657; Thu, 02 Aug 2012 17:07:51 -0700 (PDT) Received: from ayaki.localdomain (124-169-196-180.dyn.iinet.net.au. [124.169.196.180]) by mx.google.com with ESMTPS id j10sm6032855oej.10.2012.08.02.17.07.48 (version=SSLv3 cipher=OTHER); Thu, 02 Aug 2012 17:07:50 -0700 (PDT) Message-ID: <501B1651.9030409@ringerc.id.au> Date: Fri, 03 Aug 2012 08:07:45 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Dave Cramer CC: thomas@koch.ro, pgsql-jdbc@postgresql.org Subject: Re: Please consider using Maven References: <201208021411.25302.thomas@koch.ro> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmmeOwkeUWScSuXz91XhQZR9u5v0QR5MSdIxz4kkkyXRixwzNlASjcad3szsU6G7ZjSX0Lo X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/10 X-Sequence-Number: 23165 On 08/03/2012 01:11 AM, Dave Cramer wrote: > Thomas, > > I would have no problem publishing to maven if someone wants to do the > work to make it happen. I work with Maven a lot and like it. Mostly. I thought about trying to Mavenize the JDBC driver a while ago but before I proposed it here I took at look at the build.xml and decided it wasn't so important after all ;-) PgJDBC has all that that funky business for handling different JDBC levels and compilation with different JDKs. It's not especially challenging to do with Maven, but it complicates things a bit. When I last looked I didn't know enough about Maven to be able to tackle it. Knowing that you're OK with moving it over to Maven is interesting. If I'm ever feeling the lack of pain and suffering in my day to day development I might give the conversion a go ;-) -- Craig Ringer From pg@fastcrypt.com Fri Aug 3 00:30:20 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 6564914E1F38 for ; Thu, 2 Aug 2012 21:30:20 -0300 (ADT) Received: from mail-vc0-f174.google.com ([209.85.220.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sx5mU-0007K6-VR for pgsql-jdbc@postgresql.org; Fri, 03 Aug 2012 00:30:20 +0000 Received: by vcbfk26 with SMTP id fk26so168799vcb.19 for ; Thu, 02 Aug 2012 17:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=o1+KQwQ4on9F4qDPANaEOqmSYwF8EB4eiYNHeBDjxFE=; b=HcvkMx/HvoVzfsz9nZMTJQUV65FQWbjNrKAXISWGBJH4I97ch+IcFwafHZFLQ5wE/u 0TCebDkC1BtpUBTeqi6/Bef4iJxIGw8hJgpExQdy8AeiQSEOqi7NXza513h93KfkrK2o 4uJ7JolD4Yv167bkGOWR8YTHUsHUZQma0MGkiNHcUN/RxcaMlLM39pGeO0LIsvU7YU7C CQCUSTt6lmG2HdmSQGyB2oBfBZxPliLnvSLoyrTJDo8pB6fNKsSpBNnyAJs4sY1iIxTm dpueef0OsIT4/GNcswnMVYsDkViD+KoCi/5xcNpRc5wHlmLl5EbEBQhKh8pd9do1Gijq vVNA== Received: by 10.52.99.70 with SMTP id eo6mr18997163vdb.35.1343953806187; Thu, 02 Aug 2012 17:30:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.137.231 with HTTP; Thu, 2 Aug 2012 17:29:46 -0700 (PDT) In-Reply-To: <501B1651.9030409@ringerc.id.au> References: <201208021411.25302.thomas@koch.ro> <501B1651.9030409@ringerc.id.au> From: Dave Cramer Date: Thu, 2 Aug 2012 20:29:46 -0400 X-Google-Sender-Auth: 3m22ycKZtG1XK8z_q34YHvpqZqU Message-ID: Subject: Re: Please consider using Maven To: Craig Ringer Cc: thomas@koch.ro, pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201208/11 X-Sequence-Number: 23166 Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca On Thu, Aug 2, 2012 at 8:07 PM, Craig Ringer wrote: > On 08/03/2012 01:11 AM, Dave Cramer wrote: >> >> Thomas, >> >> I would have no problem publishing to maven if someone wants to do the >> work to make it happen. > > > I work with Maven a lot and like it. Mostly. I thought about trying to > Mavenize the JDBC driver a while ago but before I proposed it here I took at > look at the build.xml and decided it wasn't so important after all ;-) > > PgJDBC has all that that funky business for handling different JDBC levels > and compilation with different JDKs. It's not especially challenging to do > with Maven, but it complicates things a bit. When I last looked I didn't > know enough about Maven to be able to tackle it. > > Knowing that you're OK with moving it over to Maven is interesting. If I'm > ever feeling the lack of pain and suffering in my day to day development I > might give the conversion a go ;-) > > -- > Craig Ringer Craig, What I said was I would be OK with publishing to maven, not using Maven for building it. I don't see any upside for the amount of work involved. As you say the build is complicated and works well with Ant. Dave From ringerc@ringerc.id.au Fri Aug 3 00:48:43 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id F21DC14E1F38 for ; Thu, 2 Aug 2012 21:48:43 -0300 (ADT) Received: from mail-ob0-f174.google.com ([209.85.214.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sx64I-0007ar-Ia for pgsql-jdbc@postgresql.org; Fri, 03 Aug 2012 00:48:43 +0000 Received: by obbuo13 with SMTP id uo13so235045obb.19 for ; Thu, 02 Aug 2012 17:48:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=7wG8tJy1N1+xoGA88gZYC2jz25PGolZDYPZHvISiWAY=; b=W9A89Tmt0+2TBz7XzxHuwYCcBxFBpuyGH4CLDj/GjKwWWYvJtqYaDsVOw+jIeua1pG TsTG6b0OzKqhhqEmB0DNs4dVE80MT/IhVfi4yfgeIq7zCOtkL8aGuPEdmBml8pve5q0g pO8jnxzuvN3gLtvcnyWqu44rWCWaWYjjcgg0fxokFn87vuBkvcnlfxF/7Iik0tl4YtKE 3Ytl2QQqseLNkmAC7A1PgBPopu319ifdtC0c459VnRHPAJnr55Lj+t+Lj/qg4ab9LWy9 f5Y2XAZu6zSMP0CGrw1ZvC0JFhEExCY/gILJWoISOPvHYmQ+Vz0F2X4HB7PEi42qrZ2R 4ncA== Received: by 10.182.17.42 with SMTP id l10mr20420904obd.52.1343954909425; Thu, 02 Aug 2012 17:48:29 -0700 (PDT) Received: from ayaki.localdomain (124-169-196-180.dyn.iinet.net.au. [124.169.196.180]) by mx.google.com with ESMTPS id ql3sm7775307obc.17.2012.08.02.17.48.25 (version=SSLv3 cipher=OTHER); Thu, 02 Aug 2012 17:48:28 -0700 (PDT) Message-ID: <501B1FD6.1060009@ringerc.id.au> Date: Fri, 03 Aug 2012 08:48:22 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Dave Cramer CC: thomas@koch.ro, pgsql-jdbc@postgresql.org Subject: Re: Please consider using Maven References: <201208021411.25302.thomas@koch.ro> <501B1651.9030409@ringerc.id.au> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkEsqG4VZmG3xJGbqz6j7Q9laWGLB/MmAWYVl2iYmzF+smj7hZSrzAy9EoxkJxURydr0AjG X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/12 X-Sequence-Number: 23167 On 08/03/2012 08:29 AM, Dave Cramer wrote: > What I said was I would be OK with publishing to maven, not using > Maven for building it. I don't see any upside for the amount of work > involved. As you say the build is complicated and works well with Ant. Phew. I'm not sad about that. Extending the build with maven-ant-tasks for artifact creation and deployment would make sense. I haven't used it before, but it doesn't look too bad. I'll see what I can rig up. -- Craig Ringer From skong@investoranalytics.com Thu Aug 9 21:42:56 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 2F1F71DEF5C3 for ; Thu, 9 Aug 2012 18:42:56 -0300 (ADT) Received: from mail160.messagelabs.com ([216.82.253.99]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SzaVK-0000uw-9D for pgsql-jdbc@postgresql.org; Thu, 09 Aug 2012 21:42:55 +0000 X-Env-Sender: skong@investoranalytics.com X-Msg-Ref: server-2.tower-160.messagelabs.com!1344548560!7894526!2 X-Originating-IP: [216.166.12.31] X-StarScan-Received: X-StarScan-Version: 6.6.1.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 12839 invoked from network); 9 Aug 2012 21:42:41 -0000 Received: from out001.collaborationhost.net (HELO out001.collaborationhost.net) (216.166.12.31) by server-2.tower-160.messagelabs.com with RC4-SHA encrypted SMTP; 9 Aug 2012 21:42:41 -0000 Received: from AUSP01VMBX11.collaborationhost.net ([10.2.8.165]) by AUSP01MHUB01.collaborationhost.net ([10.2.8.25]) with mapi; Thu, 9 Aug 2012 16:42:28 -0500 From: Shijun Kong To: "pgsql-jdbc@postgresql.org" Date: Thu, 9 Aug 2012 16:42:24 -0500 Subject: Re: Please consider using Maven Thread-Topic: [JDBC] Please consider using Maven Thread-Index: Ac12d96xwTl8hAp9TlCkGpN4sYQaWw== Message-ID: In-Reply-To: <501B1651.9030409@ringerc.id.au> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.3.120616 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201208/22 X-Sequence-Number: 23177 Maven definitely can handle that, one solution can be using profiles for different jdbc versions. (http://maven.apache.org/guides/introduction/introduction-to-profiles.html) For all those "if then include" entries in build.xml: It can be archived by use maven compiler plugin, includes filter (http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html) ../src/main/java maven-compiler-plugin 2.0.2 **/jdbc3/** I do see the benefit for pgsql-jdbc project to migrating to maven. The standard and conversion brought by maven makes it much easier to write patch and test for a project without have to spend time read a customized ant build.xml and README for some basic jobs (compile/test/build). I once wanted to contribute back an hstore enhancement but gave up after spending 5 mins into build.xml.(Yes, I am lazy. I don't want to spend more than 5 mins to understand a customized build/test process.) Here is a half way migration (example only, I am not sure if I would have time to complete it), only fixed to do one job: compile for jdbc4: https://github.com/sinbadblue/pgjdbc/tree/maven_migration To reduce the initial conversion work, I only changed directories structure and leverage existing ant target "driver" to build for java version 1.6(jdbc4 flavor) only. __________________________ Shijun Kong On 8/2/12 8:07 PM, "Craig Ringer" wrote: >On 08/03/2012 01:11 AM, Dave Cramer wrote: >> Thomas, >> >> I would have no problem publishing to maven if someone wants to do the >> work to make it happen. > >I work with Maven a lot and like it. Mostly. I thought about trying to >Mavenize the JDBC driver a while ago but before I proposed it here I >took at look at the build.xml and decided it wasn't so important after >all ;-) > >PgJDBC has all that that funky business for handling different JDBC >levels and compilation with different JDKs. It's not especially >challenging to do with Maven, but it complicates things a bit. When I >last looked I didn't know enough about Maven to be able to tackle it. > >Knowing that you're OK with moving it over to Maven is interesting. If >I'm ever feeling the lack of pain and suffering in my day to day >development I might give the conversion a go ;-) > >-- >Craig Ringer > >-- >Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) >To make changes to your subscription: >http://www.postgresql.org/mailpref/pgsql-jdbc This email message and any attachments may contain legally privileged or c= onfidential information intended solely for the use of the individual or en= tity to whom it is addressed. If the reader of this message is not the inte= nded recipient, you are hereby notified that any reading, dissemination, di= stribution or copying of this message or its attachments is strictly prohib= ited. If you have received this message in error, please notify us immediat= ely by telephone, fax or email and delete the message and all attachments t= o the message. Any views or opinions expressed are solely those of the auth= or and do not necessarily represent those of Investor Analytics LLC. From pg@fastcrypt.com Fri Aug 10 10:33:58 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 565F0192E3B7 for ; Fri, 10 Aug 2012 07:33:58 -0300 (ADT) Received: from mail-vb0-f46.google.com ([209.85.212.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SzmXU-0003M2-Ei for pgsql-jdbc@postgresql.org; Fri, 10 Aug 2012 10:33:57 +0000 Received: by vbbff1 with SMTP id ff1so961604vbb.19 for ; Fri, 10 Aug 2012 03:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=ILvjsB2wNpQ7jKek6GtQdIdh/mQxIA7WYu2UdgBn3vA=; b=Ks1LZG86szkh2PxELE0aa1L11I4b4rSiMNEkPlnKX1CCXlqHRO3DKibnrcS3iW+u3+ ZR2wVSKM8m6hvxTqGDWjaitLlr89Zm3gbPM6A7xd1e/EdiaFL9ulpwVPklUQsMAFukAc qghQsyh5NKv4Z7W9EPCuTMgVO8Z9Fv/nkute+UkNGBZvACZoPK9HAzBr0RIiEEGkc6Up KmlMW738oZlhah/PuwY/1T2mfXLnA9sY6Ru40QQiifSYTg2K1yDWNXSE/bs//Qg6cPcB mnl26d8JVdz25F5zlTSoIj0FBb5nIj7UYGMrg7HAznLLeHtoski6vfG7GD/D+sTfAHWt 4gMQ== Received: by 10.58.12.7 with SMTP id u7mr2447931veb.8.1344594824069; Fri, 10 Aug 2012 03:33:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.230.35 with HTTP; Fri, 10 Aug 2012 03:33:23 -0700 (PDT) In-Reply-To: References: <501B1651.9030409@ringerc.id.au> From: Dave Cramer Date: Fri, 10 Aug 2012 06:33:23 -0400 X-Google-Sender-Auth: i2GmeWWFDGcD4prs6voVQLRB69k Message-ID: Subject: Re: Please consider using Maven To: Shijun Kong Cc: "pgsql-jdbc@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201208/23 X-Sequence-Number: 23178 Well clearly the maintainers of the driver are much more comfortable using ant. So your solution would have *us* relearn a new tool. Why not use gradle as someone else suggested? Or the next new super duper build system when it comes out? I think our time is better spent adding features not refactoring the build system. Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca On Thu, Aug 9, 2012 at 5:42 PM, Shijun Kong w= rote: > > Maven definitely can handle that, one solution can be using profiles for > different jdbc versions. > (http://maven.apache.org/guides/introduction/introduction-to-profiles.htm= l) > > For all those "if then include" entries in build.xml: > > > It can be archived by use maven compiler plugin, includes filter > (http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html) > > > ../src/main/java > > > > maven-compiler-plugin > 2.0.2 > > **/jdbc3/** > > > > > > > > I do see the benefit for pgsql-jdbc project to migrating to > maven. The standard and conversion brought by maven makes it much easier > to write patch and test for a project without have to spend time read a > customized ant build.xml and README for some basic jobs > (compile/test/build). I once wanted to contribute back an hstore > enhancement but gave up after spending 5 mins into build.xml.(Yes, I am > lazy. I don't want to spend more than 5 mins to understand a customized > build/test process.) > > Here is a half way migration (example only, I am not sure if I would have > time to complete it), only fixed to do one job: compile for jdbc4: > https://github.com/sinbadblue/pgjdbc/tree/maven_migration > > To reduce the initial conversion work, I only changed directories > structure and leverage existing ant target "driver" to build for java > version 1.6(jdbc4 flavor) only. > __________________________ > > Shijun Kong > > > On 8/2/12 8:07 PM, "Craig Ringer" wrote: > >>On 08/03/2012 01:11 AM, Dave Cramer wrote: >>> Thomas, >>> >>> I would have no problem publishing to maven if someone wants to do the >>> work to make it happen. >> >>I work with Maven a lot and like it. Mostly. I thought about trying to >>Mavenize the JDBC driver a while ago but before I proposed it here I >>took at look at the build.xml and decided it wasn't so important after >>all ;-) >> >>PgJDBC has all that that funky business for handling different JDBC >>levels and compilation with different JDKs. It's not especially >>challenging to do with Maven, but it complicates things a bit. When I >>last looked I didn't know enough about Maven to be able to tackle it. >> >>Knowing that you're OK with moving it over to Maven is interesting. If >>I'm ever feeling the lack of pain and suffering in my day to day >>development I might give the conversion a go ;-) >> >>-- >>Craig Ringer >> >>-- >>Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) >>To make changes to your subscription: >>http://www.postgresql.org/mailpref/pgsql-jdbc > > > This email message and any attachments may contain legally privileged or= confidential information intended solely for the use of the individual or = entity to whom it is addressed. If the reader of this message is not the in= tended recipient, you are hereby notified that any reading, dissemination, = distribution or copying of this message or its attachments is strictly proh= ibited. If you have received this message in error, please notify us immedi= ately by telephone, fax or email and delete the message and all attachments= to the message. Any views or opinions expressed are solely those of the au= thor and do not necessarily represent those of Investor Analytics LLC. > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc From skong@investoranalytics.com Fri Aug 10 20:12:01 2012 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SzvYv-0006mB-E3 for pgsql-jdbc@postgresql.org; Fri, 10 Aug 2012 20:12:01 +0000 Received: from mail160.messagelabs.com ([216.82.253.99]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SzpEy-00061A-Jx for pgsql-jdbc@postgresql.org; Fri, 10 Aug 2012 13:27:02 +0000 X-Env-Sender: skong@investoranalytics.com X-Msg-Ref: server-8.tower-160.messagelabs.com!1344605153!7962387!22 X-Originating-IP: [216.166.12.69] X-StarScan-Received: X-StarScan-Version: 6.6.1.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 4330 invoked from network); 10 Aug 2012 13:26:46 -0000 Received: from out001.collaborationhost.net (HELO out001.collaborationhost.net) (216.166.12.69) by server-8.tower-160.messagelabs.com with RC4-SHA encrypted SMTP; 10 Aug 2012 13:26:46 -0000 Received: from AUSP01VMBX11.collaborationhost.net ([10.2.8.165]) by AUSP01MHUB03.collaborationhost.net ([10.2.8.78]) with mapi; Fri, 10 Aug 2012 08:26:30 -0500 From: Shijun Kong To: Dave Cramer CC: "pgsql-jdbc@postgresql.org" Date: Fri, 10 Aug 2012 08:26:27 -0500 Subject: Re: Please consider using Maven Thread-Topic: [JDBC] Please consider using Maven Thread-Index: Ac12+7+KhxMZArsEQ6miM0T634jtMQ== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.3.120616 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201208/24 X-Sequence-Number: 23179 You are right. That's the point: "the maintainers of the driver are much more comfortable using ant.", be more accurate, this ant build.xml (or ant program, ant script?) I did projects with ant and maven (both for small teams less than 10 and large teams with more than 100 developers). Per my personal experience, when a project grows to a certain size, complexity and a team with more than handful people, ant build.xml files themselves becomes a part of code hard to maintain/enhance/test. On the other hand, maven is much standard, consistent for 99% jobs. When a new developer get source code with ant, he/she has to spend time read instrument, understand step 1,2,3 to compile/test/build a project. If using maven, it's always maven clean compile test package install. I will stop here, looks like the topic is moving to ant V.S maven instead of how could we make pgsql-jdbc easier for outsider to play and contribute. It's light a fanboy war between Android and iOS. As you said, "I think our time is better spent adding features not refactoring the build system." __________________________ Shijun Kong On 8/10/12 6:33 AM, "Dave Cramer" wrote: >Well clearly the maintainers of the driver are much more comfortable >using ant. So your solution would have *us* relearn a new tool. > >Why not use gradle as someone else suggested? Or the next new super >duper build system when it comes out? > >I think our time is better spent adding features not refactoring the >build system. > > >Dave Cramer > >dave.cramer(at)credativ(dot)ca >http://www.credativ.ca > > >On Thu, Aug 9, 2012 at 5:42 PM, Shijun Kong >wrote: >> >> Maven definitely can handle that, one solution can be using profiles for >> different jdbc versions. >> >>(http://maven.apache.org/guides/introduction/introduction-to-profiles.htm >>l) >> >> For all those "if then include" entries in build.xml: >> >> >> It can be archived by use maven compiler plugin, includes filter >> >>(http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html) >> >> >> ../src/main/java >> >> >> >> maven-compiler-plugin >> 2.0.2 >> >> **/jdbc3/** >> >> >> >> >> >> >> >> I do see the benefit for pgsql-jdbc project to migrating to >> maven. The standard and conversion brought by maven makes it much easier >> to write patch and test for a project without have to spend time read a >> customized ant build.xml and README for some basic jobs >> (compile/test/build). I once wanted to contribute back an hstore >> enhancement but gave up after spending 5 mins into build.xml.(Yes, I am >> lazy. I don't want to spend more than 5 mins to understand a customized >> build/test process.) >> >> Here is a half way migration (example only, I am not sure if I would >>have >> time to complete it), only fixed to do one job: compile for jdbc4: >> https://github.com/sinbadblue/pgjdbc/tree/maven_migration >> >> To reduce the initial conversion work, I only changed directories >> structure and leverage existing ant target "driver" to build for java >> version 1.6(jdbc4 flavor) only. >> __________________________ >> >> Shijun Kong >> >> >> On 8/2/12 8:07 PM, "Craig Ringer" wrote: >> >>>On 08/03/2012 01:11 AM, Dave Cramer wrote: >>>> Thomas, >>>> >>>> I would have no problem publishing to maven if someone wants to do the >>>> work to make it happen. >>> >>>I work with Maven a lot and like it. Mostly. I thought about trying to >>>Mavenize the JDBC driver a while ago but before I proposed it here I >>>took at look at the build.xml and decided it wasn't so important after >>>all ;-) >>> >>>PgJDBC has all that that funky business for handling different JDBC >>>levels and compilation with different JDKs. It's not especially >>>challenging to do with Maven, but it complicates things a bit. When I >>>last looked I didn't know enough about Maven to be able to tackle it. >>> >>>Knowing that you're OK with moving it over to Maven is interesting. If >>>I'm ever feeling the lack of pain and suffering in my day to day >>>development I might give the conversion a go ;-) >>> >>>-- >>>Craig Ringer >>> >>>-- >>>Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) >>>To make changes to your subscription: >>>http://www.postgresql.org/mailpref/pgsql-jdbc >> >> >> This email message and any attachments may contain legally privileged >>or confidential information intended solely for the use of the >>individual or entity to whom it is addressed. If the reader of this >>message is not the intended recipient, you are hereby notified that any >>reading, dissemination, distribution or copying of this message or its >>attachments is strictly prohibited. If you have received this message in >>error, please notify us immediately by telephone, fax or email and >>delete the message and all attachments to the message. Any views or >>opinions expressed are solely those of the author and do not necessarily >>represent those of Investor Analytics LLC. >> >> -- >> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-jdbc This email message and any attachments may contain legally privileged or c= onfidential information intended solely for the use of the individual or en= tity to whom it is addressed. If the reader of this message is not the inte= nded recipient, you are hereby notified that any reading, dissemination, di= stribution or copying of this message or its attachments is strictly prohib= ited. If you have received this message in error, please notify us immediat= ely by telephone, fax or email and delete the message and all attachments t= o the message. Any views or opinions expressed are solely those of the auth= or and do not necessarily represent those of Investor Analytics LLC.