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.