Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-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 2D5D819334 for ; Thu, 7 Apr 2016 07:27:04 +0000 (UTC) Received: (qmail 78473 invoked by uid 500); 7 Apr 2016 07:27:04 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 78050 invoked by uid 500); 7 Apr 2016 07:27:03 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 78025 invoked by uid 99); 7 Apr 2016 07:27:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2016 07:27:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 110AEC0FE8 for ; Thu, 7 Apr 2016 07:27:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.261 X-Spam-Level: * X-Spam-Status: No, score=1.261 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_INFOUSMEBIZ=0.75, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Nnimw72EjkEd for ; Thu, 7 Apr 2016 07:27:01 +0000 (UTC) Received: from mail-ob0-f176.google.com (mail-ob0-f176.google.com [209.85.214.176]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id BDEB95F1BE for ; Thu, 7 Apr 2016 07:27:00 +0000 (UTC) Received: by mail-ob0-f176.google.com with SMTP id bg3so47346162obb.1 for ; Thu, 07 Apr 2016 00:27:00 -0700 (PDT) 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 :cc:content-transfer-encoding; bh=oWlF1345GMdLLDJoV5Bj533BQQMYGMkhlMvfu8+4F8Y=; b=FT09oAkwrJ1zIsPjIhUQ+sE/PW884AvyLyUPvPkhMti67LVoUjTcI9yRxjFRI5eIFR d/wEgJpve1nfNcsHlAlwcYKmdIpMKsFDnmdY6VtywcXaVKfy197QcBdaHpuRMKslNrWF mD4NxY9jZ/ygZHUAuDm2FNnQ6YwFwcoP1iQHJBKbn+FRzEX678eECSyAWU7RaFCDvzOO ISFaBKtYZIp9sFq4vNOhIjklOMZXDEPIJXavfKVqnvpZsSbPR/KKYeaG+wE8+hql2gvK ha/8GcZmMD+OizF0lUFCIO7ZOS3AabzpQfkgGv79tEqaa8d+FK3bNdOOUFCY4A4niFo6 tEZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-transfer-encoding; bh=oWlF1345GMdLLDJoV5Bj533BQQMYGMkhlMvfu8+4F8Y=; b=D+UVJVBDZfJUZRa7Fi5PxgKfWMJdqq1JSW/UuaiQhx2mrKAg4toiw+5nnRAnjig8ep uG+RxgGSHSVU3QSefqtHJUUrATHx9T1cLW/eP31OVzjp5Aj8I1frIuiOsyFjmYql/FMI bChoCJ1oZn+TW+reM3y+RIRwYsupQh1a0c3HwAyCmvFQep5auIOwWknVlfMuCGmbG13a t61/1Kvk0B0cA74zY4+InaCIwjtoE5Xmsr4m4tcejvxoPZa4z+IwFpgzjvZYFdtCfWIT ozOplWkBHKOGfSB9r8gmdj4yC6mlqGWq95XfaysEnGmdBnPt8ZZDfBhbP23VvGf+ur+M tXSg== X-Gm-Message-State: AD7BkJL7kZE9oVMSYILVeChAMH+hp6eSZTcOduXj/gXtqBOhty6p1bgLWcZXWNgRsBW83c/8duSfkyMk8DyIjA== MIME-Version: 1.0 X-Received: by 10.182.51.166 with SMTP id l6mr687471obo.82.1460014020177; Thu, 07 Apr 2016 00:27:00 -0700 (PDT) Received: by 10.182.246.136 with HTTP; Thu, 7 Apr 2016 00:27:00 -0700 (PDT) In-Reply-To: References: Date: Thu, 7 Apr 2016 09:27:00 +0200 Message-ID: Subject: Re: Usage of SNAPSHOT qualifier in package exports From: Julian Sedding To: dev@felix.apache.org Cc: "dev@camel.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Ra=C3=BAl A simple workaround to remove this ambiguity is to use odd micro versions for snapshots only and even micro versions for releases. We use this strategy in the Apache Sling project successfully since several years. I.e. 1.0.1-SNAPSHOT 1.0.2 <-- release 1.0.3-SNAPSHOT 1.0.4 <-- release Regards Julian On Wed, Apr 6, 2016 at 5:36 PM, Raul Kripalani wrote: > During a discussion in the Camel dev@ list about possibly adopting the > bnd-maven-plugin, a contributor noticed differences in the way that packa= ge > export versions are computed between Felix' maven-bundle-plugin and the > former. > > http://camel.465427.n5.nabble.com/DISCUSS-Moving-from-maven-bundle-plugin= -to-bnd-maven-plugin-and-SNAPSHOT-versions-tp5780520.html > > * maven-bundle-plugin transforms the -SNAPSHOT qualifier to .SNAPSHOT. > * bnd-maven-plugin transforms the -SNAPSHOT qualifier to .. > > OSGi sorts versions in alphanumeric order, which means that, to the eyes = of > an OSGi container, 1.0.0.SNAPSHOT is higher than 1.0.0 (!). > > https://versionatorr.appspot.com/?a=3D1.0.0-SNAPSHOT&b=3D1.0.0 > > Sure this is a minor issue, with practically zero impact. I can't think o= f > a use case where one would deploy the same bundle twice in production, as= a > SNAPSHOT and as final. > > It seems that your artefacts are affected, based on the MANIFEST.MF in th= is > bundle as an example: > https://repository.apache.org/content/groups/snapshots/org/apache/felix/o= rg.apache.felix.fileinstall/3.5.3-SNAPSHOT/org.apache.felix.fileinstall-3.5= .3-20160401.145250-1.jar > . > > As I said, not a biggie, but being Felix a leader in the OSGi technology > space, I would like to hear your thoughts, as it's a matter of semantic > correctness and adherence to the OSGi principles. > > Cheers, > > *Ra=C3=BAl Kripalani* > PMC & Committer @ Apache Ignite, Apache Camel | Integration, Big Data and > Messaging Engineer > http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani > Blog: raul.io > | > twitter: @raulvk