Return-Path: Delivered-To: apmail-servicemix-dev-archive@www.apache.org Received: (qmail 66723 invoked from network); 4 Feb 2010 15:51:54 -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:54 -0000 Received: (qmail 35654 invoked by uid 500); 4 Feb 2010 15:51:54 -0000 Delivered-To: apmail-servicemix-dev-archive@servicemix.apache.org Received: (qmail 35588 invoked by uid 500); 4 Feb 2010 15:51:54 -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 35577 invoked by uid 99); 4 Feb 2010 15:51:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 15:51:54 +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:53 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6312A234C48C for ; Thu, 4 Feb 2010 07:51:33 -0800 (PST) Message-ID: <1462462409.11121265298693404.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 [ https://issues.apache.org/activemq/browse/SMX4-354?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D57= 384#action_57384 ]=20 Jean-Baptiste Onofr=C3=A9 commented on SMX4-354: ------------------------------------------- FYI, for each component, I test if the unit tests are OK and I try to deplo= y it on SMX 4.1.0-SNAPSHOT. > 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.