Return-Path: Delivered-To: apmail-servicemix-dev-archive@www.apache.org Received: (qmail 66750 invoked from network); 4 Feb 2010 15:51:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2010 15:51:56 -0000 Received: (qmail 35887 invoked by uid 500); 4 Feb 2010 15:51:56 -0000 Delivered-To: apmail-servicemix-dev-archive@servicemix.apache.org Received: (qmail 35847 invoked by uid 500); 4 Feb 2010 15:51:56 -0000 Mailing-List: contact dev-help@servicemix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@servicemix.apache.org Delivered-To: mailing list dev@servicemix.apache.org Received: (qmail 35837 invoked by uid 99); 4 Feb 2010 15:51:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 15:51:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 15:51:54 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4C215234C1EF for ; Thu, 4 Feb 2010 07:51:33 -0800 (PST) Message-ID: <2100879818.11101265298693306.JavaMail.jira@brutus.apache.org> Date: Thu, 4 Feb 2010 15:51:33 +0000 (UTC) From: =?UTF-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: dev@servicemix.apache.org Subject: [jira] Commented: (SMX4-354) OSGi bundles and versioning In-Reply-To: <1771926953.1252392492327.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/SMX4-354?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D57= 383#action_57383 ]=20 Jean-Baptiste Onofr=C3=A9 commented on SMX4-354: ------------------------------------------- Change applied on all service engine components. > OSGi bundles and versioning > --------------------------- > > Key: SMX4-354 > URL: https://issues.apache.org/activemq/browse/SMX4-354 > Project: ServiceMix 4 > Issue Type: Improvement > Reporter: Jean-Baptiste Onofr=C3=A9 > Assignee: Jean-Baptiste Onofr=C3=A9 > > Importing their own package may lead to real problems when deploying two > different versions of such a bundle. There is a high chance that the sec= ond > one will use the classes from the first one instead of their own classes. > Version ranges are also important to avoid some problems if the bundle is > wired to a dependent bundle with a new major version. > First, we need to upgrade to the maven-bundle-plugin 2.0.0 (in the parent > pom for all bundles). > We need to add the following instruction for the maven bundle plugin: > <_versionpolicy>[$(version;=3D=3D;$(@)),$(version;+;$(@))) > Then for each bundle, we need to make sure each package exported is not > imported. For example, if we have: > org.apache.commons.codec* > we need to add the following to imports: > !org.apache.commons.codec* > This line needs to be added at the beginning of the Import-Package > declaration. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.