Return-Path: X-Original-To: apmail-maven-dev-archive@www.apache.org Delivered-To: apmail-maven-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 602F8DF18 for ; Thu, 15 Nov 2012 00:52:19 +0000 (UTC) Received: (qmail 9223 invoked by uid 500); 15 Nov 2012 00:52:18 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 9144 invoked by uid 500); 15 Nov 2012 00:52:18 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 9136 invoked by uid 99); 15 Nov 2012 00:52:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 00:52:18 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.215.43] (HELO mail-la0-f43.google.com) (209.85.215.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 00:52:11 +0000 Received: by mail-la0-f43.google.com with SMTP id z14so1067803lag.30 for ; Wed, 14 Nov 2012 16:51:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=utv17dF9kpkITlaI/sjTwAPsMYIcI3xJcPflT1heKaw=; b=TMviKQ/zmYBPLYrGL7O8SFpbebW9wcNFfv+XeeGF+ogTVnns4fW4guHfNb9FAwv8T0 C5L/6YS0biIGtYo1emyt4hVYkKmvuVN0cATqFsKw/z/IporvnVjB5vQOH3UNkeStbcS4 6kQWKU/7lWGZ4/yyond0fK/sSnFZcTJehKxPpmc/klwS1xCGBhT56OI0wp2mCHzoTc8f ZcuCUTi8zR3jH/r55UHI8dKPmXwA8jXFqJxcTLrXv9hN1ewoXku/4wYgSzbNwrYWPo+9 HJ4+9IqHbxuzD677d3SlVNZkeS4lwCLaUMFsXQlG71DISDUhKzwBXV0PJO9SK5PfBIGd K5YQ== MIME-Version: 1.0 Received: by 10.152.147.100 with SMTP id tj4mr10860015lab.42.1352940710525; Wed, 14 Nov 2012 16:51:50 -0800 (PST) Received: by 10.114.6.72 with HTTP; Wed, 14 Nov 2012 16:51:50 -0800 (PST) X-Originating-IP: [204.16.152.10] In-Reply-To: <94a9c8e1a9185960734cdf033c1640ad.squirrel@www.mosabuam.com> References: <20ACD123-E135-4D9C-B04E-4926B07C9ABB@tesla.io> <07d3aa7b983b2bac1470eb07a63fe4e2.squirrel@www.mosabuam.com> <1527998.OnLFzz9ZRz@bigmax> <94a9c8e1a9185960734cdf033c1640ad.squirrel@www.mosabuam.com> Date: Wed, 14 Nov 2012 16:51:50 -0800 Message-ID: Subject: Re: https://jira.codehaus.org/browse/MNG-1304 From: Rex Hoffman To: Maven Developers List , manfred@mosabuam.com Content-Type: multipart/alternative; boundary=e89a8f22bd8973fcae04ce7e0e8f X-Gm-Message-State: ALoCoQmAwLq8ro51NbSrHTJaq30sQzmQZByjvGWrYL3evmnr59xHYQ6n+BWGqBP/MZEG8wpiIoUA X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f22bd8973fcae04ce7e0e8f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I had created a hack of the clirr plugin at a prior employer to compute the next version number a few years ago.... (rejected by the mojo project, as the owners didn't want to start breaking builds with clirr) We had 50-60 jars and 20+ developers with a range of skill/java knowledge, some remote. I attempted to use sigtest instead as a plugin for the enforcer but ran out of time/energy and switched jobs... but it's api was more than painful and getting useful info about the deltas was more than a little difficult. I understand the netbeans guys have pulled it off though. The general behavior of the clirr hack was to download the last release with a version number less then the projects (usually broke the build if the version had already been released) and run clirr, again breaking the build if the version didn't conform to what a few heuristics on top clirr expected. Of course this has limitations. An API that expects you to implement an interface (never too hot of an idea) to interact with the API needs to have that interface treated differently than if it was an interface clients were expect to call and not implement. My finding at every org I've been is that people screw up correct version number incrementing (including myself). Changing the type input on a method (unless its to a super class) breaks backwards compatibility, and refactoring tools makes doing this all too easy. Not sure how far you guys want to go with this, but I wouldn't mind putting in some effort or resurrecting the support for clirr. If maven embraces a standard like semver, building out even a partial enforcement of the standard would go a long way to further adoption. As far a version numbers stored in artifacts, perhaps allow an extension to the build that turns on the restriction, and maybe a corresponding enforcer rule? Rex On Wed, Nov 14, 2012 at 4:13 PM, Manfred Moser wrote= : > Sure... not core then. But ideally some shared library that implements > that so all plugins that need to do it can do it consistently the same.. > > manfred > > On Wed, November 14, 2012 3:17 pm, Herv=C3=A9 BOUTEMY wrote: > > no > > core only needs to compare version > > core never need to calculate "next" version > > > > some plugines like release or versions need to try to guess which is th= e > > next > > one: nothing that belong to core IMHO > > > > Regards, > > > > Herv=C3=A9 > > > > Le mardi 13 novembre 2012 14:28:18 Manfred Moser a =C3=A9crit : > >> True... separate, but closely related. If we state that semver is the > >> recommended practice (and I believe that to be a good idea) .. the who= le > >> tooling should work nicely with it. And that includes the use case I > >> mentioned.. > >> > >> And yes.. maybe the version stuff should be part of core ... and then = be > >> used e.g. by the release plugin as well as the versions plugin and > >> others.. > >> > >> manfred > >> > >> On Tue, November 13, 2012 2:05 pm, Robert Scholte wrote: > >> > These are 2 separate issues. As long as the bugfix/patch-part contai= ns > >> > non-numeric values and Maven (actually Aether) still does a String > >> match > >> > (apart from those special cases like alpha, beta, RC) we have to be > >> very > >> > careful with calculating the next version. > >> > You could question if this kind of logic belongs in the > >> > maven-release-plugin, since it is more related to how Maven resolves > >> > versions. > >> > > >> > Robert > >> > > >> > Op Tue, 13 Nov 2012 22:22:48 +0100 schreef Manfred Moser > >> > > >> > : > >> >> On Tue, November 13, 2012 12:38 pm, Jason van Zyl wrote: > >> >>> This is a long-standing issue, but I think a document and standard > >> has > >> >>> emerged that I think is reasonable. How do people feel about tryin= g > >> to > >> >>> adhere to: > >> >>> > >> >>> http://semver.org > >> >>> > >> >>> and moving toward using this as our standard versioning > >> documentation? > >> >> > >> >> I think that would be awesome. One of the things we would have to d= o > >> is > >> >> fix the release plugin to work with 1.2.3-RC.2 as compared to > >> 1.2.3-RC2. > >> >> Currently it does not correctly suggest the next version being > >> >> 1.2.3-RC.3 > >> >> but rather goes to 1.2.4-RC.2 > >> >> > >> >> This would also make it easier to explain the reasoning for the > >> version > >> >> numbering since we could just point to the external docs as a best > >> >> practice. > >> >> > >> >> manfred > >> >> > >> >> -------------------------------------------------------------------= -- > >> >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > >> >> For additional commands, e-mail: dev-help@maven.apache.org > >> > > >> > --------------------------------------------------------------------= - > >> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > >> > For additional commands, e-mail: dev-help@maven.apache.org > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > >> For additional commands, e-mail: dev-help@maven.apache.org > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > > For additional commands, e-mail: dev-help@maven.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > For additional commands, e-mail: dev-help@maven.apache.org > > --e89a8f22bd8973fcae04ce7e0e8f--