Return-Path: X-Original-To: apmail-aries-dev-archive@www.apache.org Delivered-To: apmail-aries-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C1BDD462 for ; Thu, 29 Nov 2012 15:11:38 +0000 (UTC) Received: (qmail 76089 invoked by uid 500); 29 Nov 2012 15:11:38 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 75873 invoked by uid 500); 29 Nov 2012 15:11:33 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 75850 invoked by uid 99); 29 Nov 2012 15:11:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 15:11:33 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of emijiang6@googlemail.com designates 209.85.210.178 as permitted sender) Received: from [209.85.210.178] (HELO mail-ia0-f178.google.com) (209.85.210.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 15:11:26 +0000 Received: by mail-ia0-f178.google.com with SMTP id k25so11545617iah.23 for ; Thu, 29 Nov 2012 07:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=U6XoEpvuKZFgR8Hff5YqQLm8RBVW668LQk1ny8BWZus=; b=WmPEJvLOgrY8MpqclQ/0hQ6AU+nApErC6fWR41dFN1hmrDsBUcL9uEpfZlgCAGitz/ B7vvZV0Si2a4kLIjPqujYLLbj/SS/lBcFYlFIRP39S7G2UtgHsWmO9xRf22rQhtOziXl LrDEK5KpBqw9Wiv4o075Hkh/f487BllksSb7btGFloHB3sOun3xSRw0UCZVMviNK/UIw /2xlBAnA6IVMrP7CcwuEh8o3HOcaq8mAPJPdo0+tNFJqt065b3PeJ29RViqa0qlFBr/H tBcGo8Nx5ZWbf5RW+1QNy93qS7QkBQImyZi5+NP2eqeHSEYELmjU6cbuWDeh9rNu+RgW j5uA== MIME-Version: 1.0 Received: by 10.50.195.130 with SMTP id ie2mr23360825igc.40.1354201864831; Thu, 29 Nov 2012 07:11:04 -0800 (PST) Received: by 10.50.106.19 with HTTP; Thu, 29 Nov 2012 07:11:04 -0800 (PST) In-Reply-To: References: <39797018-688A-4E17-8BAA-B5F4C64D1807@yahoo.com> Date: Thu, 29 Nov 2012 15:11:04 +0000 Message-ID: Subject: Re: Semantic versioning tool and updating packageinfos From: Emily Jiang To: dev@aries.apache.org Content-Type: multipart/alternative; boundary=14dae9340a811b84ab04cfa3b1fe X-Virus-Checked: Checked by ClamAV on apache.org --14dae9340a811b84ab04cfa3b1fe Content-Type: text/plain; charset=ISO-8859-1 With David (Jencks)'s help, I managed to integrated the versioning maven plugin into a few projects. At the moment, the plugin will display the versioning report in the build and then overwrite the wrong version in the package-info.java. If the bundle version is incorrect, it just lists what the version should be instead of overwrite it directly. May I suggest we only fail the build if the bundle version is incorrect and leave the other errors being autocorrected by the plugin? Thoughts? By the way, you will need to ugrade your maven version to 3.x to be able to run the plugin. Thanks Emily On Mon, Nov 26, 2012 at 10:08 PM, Emily Jiang wrote: > Further to David J's comments, in order to fail a build, I think we can > parse the report xml doc. If there is an entry, we can fail the build, > which is trivial thing to do. David, if you can supply the snippet of your > maven plugin, I can help to integrate this tool in our trunk. Sorry. It has > been on my todo list, but I did not get to it. well. maybe now is the > time(*sigh*) > > Thanks > Emily > > > On Mon, Nov 26, 2012 at 6:20 PM, David Jencks wrote: > >> I turned Emily's code into a maven plugin, but I'm not sure I succeeded >> in documenting it. Mostly it puts correct packaginfo files into the source >> tree and generates a sort-of report of problems. I don't think it fails >> the build. You have to specify what the base you are comparing against is, >> IIRC in the plugin configuration. I'm off today but will try to figure it >> out soon unless someone beats me to it. >> >> >> thanks >> david jencks >> >> On Nov 26, 2012, at 7:46 AM, Holly Cummins wrote: >> >> > Hi all, >> > >> > As promised, I've started work on our next batch of releases. This one >> > should be way easier than the last batch I did, because it's way >> smaller. >> > However, one thing which is harder is that last time I knew what the >> > package and bundle versions were (1.0.0 across the board). This time I >> have >> > to think about it and choose sensible versions. >> > >> > Our version policy page ( >> > http://aries.apache.org/development/versionpolicy.html) confidently >> says >> > that setting bundle versions for a release should be easy because the >> > packages will already have the correct version. Sadly, the sample of one >> > package I've checked so far has changes, but no bump to the package >> number. >> > This means the release manager will need to verify/set both package and >> > bundle version numbers. In the ideal case the packageinfo will be >> correct, >> > but if we can't *guarantee* it's correct, it needs to be checked by the >> > release manager. >> > >> > Sifting through code changes by hand sounds both boring and unscalable >> to >> > me, so I'd like to revive the conversation about Emily's semantic >> > versioning tool. My questions are >> > >> > (a) Can the tool help me do this batch of checking, and if so, can >> someone >> > send me idiot's instructions? I'm sure it's documented, but my initial >> > google wasn't successful. >> > (b) Longer term, wouldn't it be great to get the tool integrated into >> the >> > release plugin? I know we've discussed this before, so I'm mostly >> chipping >> > in again with a "yes please, +1" :) >> > >> > (I think last time we discussed this someone suggested that bnd could >> > assign version numbers, but my searching suggests that's only in an >> as-yet >> > unreleased version.) >> > >> > Holly >> >> > > > -- > Thanks > Emily > ================= > Emily Jiang > ejiang@apache.org > > -- Thanks Emily ================= Emily Jiang ejiang@apache.org --14dae9340a811b84ab04cfa3b1fe--