Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 65950 invoked from network); 8 Jan 2008 20:54:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jan 2008 20:54:02 -0000 Received: (qmail 13102 invoked by uid 500); 8 Jan 2008 20:53:51 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 13070 invoked by uid 500); 8 Jan 2008 20:53:51 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 13059 invoked by uid 99); 8 Jan 2008 20:53:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 12:53:51 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 08 Jan 2008 20:53:46 +0000 Received: (qmail 65657 invoked from network); 8 Jan 2008 20:53:37 -0000 Received: from localhost (HELO carsten-ziegelers-computer.local) (127.0.0.1) by localhost with SMTP; 8 Jan 2008 20:53:37 -0000 Message-ID: <4783E2D0.1000906@apache.org> Date: Tue, 08 Jan 2008 21:53:36 +0100 From: Carsten Ziegeler User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: dev@felix.apache.org CC: Jakarta Commons Developers List Subject: Problems with bundle plugin [Fwd: Re: Support for OSGi] Content-Type: multipart/mixed; boundary="------------050901040400070202090103" X-Virus-Checked: Checked by ClamAV on apache.org --------------050901040400070202090103 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Forwarding to the Felix list. Carsten -- Carsten Ziegeler cziegeler@apache.org --------------050901040400070202090103 Content-Type: message/rfc822; name="Re: Support for OSGi.eml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Re: Support for OSGi.eml" X-Account-Key: account2 X-Mozilla-Keys: X-Envelope-From: X-Envelope-To: X-Delivery-Time: 1199824281 X-UID: 253736 Return-Path: DomainKey-Status: bad From=gmail.com; diagnostics=Signature was available but failed to verify against domain specified key X-RZG-CLASS-ID: mi Received: from minotaur.apache.org ([140.211.11.9]) by mailin.webmailer.de (hamish mi47) (RZmta 14.11) with SMTP id r03bfdk08KSmFx for ; Tue, 8 Jan 2008 21:31:20 +0100 (MET) (envelope-from: ) Received: (qmail 57478 invoked by uid 1260); 8 Jan 2008 20:31:17 -0000 Delivered-To: cziegeler@locus.apache.org Received: (qmail 57421 invoked from network); 8 Jan 2008 20:31:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jan 2008 20:31:17 -0000 Received: (qmail 70586 invoked by uid 500); 8 Jan 2008 20:31:05 -0000 Delivered-To: apmail-cziegeler@apache.org Received: (qmail 70264 invoked by uid 500); 8 Jan 2008 20:31:04 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 70255 invoked by uid 99); 8 Jan 2008 20:31:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 12:31:04 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of niall.pemberton@gmail.com designates 209.85.146.178 as permitted sender) Received: from [209.85.146.178] (HELO wa-out-1112.google.com) (209.85.146.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 20:30:40 +0000 Received: by wa-out-1112.google.com with SMTP id k34so13440674wah.10 for ; Tue, 08 Jan 2008 12:30:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=8PasWbC1irjKF2dJ/0QTOHgrdKJavt3eeg51j+fskbg=; b=H0AAn+gDqMIV4Zj+F4npl96gNWmfk/qM6tQkHkCHr9iBLckxoSl1XySZh/KyCWUBJg3QFVCjfw3d9VCiJmCI1iRAWoKIXVEe7OBY6Kmgl85VDerwYBEzvqAb3rLOZzwS5Mdn05yEr4MnUbcUWWNmQY+X+vAdA/Hw+7nKi9gCjoE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Fhl5LJndGf1PGdxBjKBOdzdkaYAXHdWytyioF/RCoU4slH+m4yLmtLmvPDu4B/llkcSOJsXSAabN+815abdDIYO5H8uGEtLMieccfjWE2GY0isPGHfxBhNLvGQ+iO8g7NwKbVdF0ro/am4O67FrVFKiHUN35glUwwqEnzVWybgs= Received: by 10.115.109.1 with SMTP id l1mr24406977wam.136.1199824245496; Tue, 08 Jan 2008 12:30:45 -0800 (PST) Received: by 10.114.155.12 with HTTP; Tue, 8 Jan 2008 12:30:45 -0800 (PST) Message-ID: <55afdc850801081230r24492e1vfe6a95101c2ae3e0@mail.gmail.com> Date: Tue, 8 Jan 2008 20:30:45 +0000 From: "Niall Pemberton" To: "Jakarta Commons Developers List" Subject: Re: Support for OSGi In-Reply-To: <4774EDAB.1060208@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47692CCB.7020608@apache.org> <55afdc850712191242k32107b51pa1d4f83291bedb0a@mail.gmail.com> <8ED8F00A-73D1-4BB9-BA79-7D805060E11F@apache.org> <476A73F1.4000801@apache.org> <4c39e3030712200601m6ee67bd4jd8233f04bf841668@mail.gmail.com> <476A7830.8010500@apache.org> <4774EDAB.1060208@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org On Dec 28, 2007 12:35 PM, Carsten Ziegeler wrote: > Hi, > > in the meantime Stuart fixed the problem with the maven bundleplugin, so > I think we can give it a test drive :) > > Attached is a patch for the parent pom of commons and one to demonstrate > how to add support for OSGi to commons-lang. > > The changes to the parent pom are minimal: it just adds the maven > bundleplugin from the Apache Felix project. We currently need to use a > snapshot version, but a release is comming soon. > Besides adding the plugin, the patch also configures the bundle symbolic > name for all modules. The symbolic name is the unique identifier which > should follow java package naming. The best value is to use something > like "org.apache.commons.{artifactId}" where artifact id is commons-lang > or commons-collections etc. > > The patch to commons lang is also very simple. It changes the parent pom > to the current snapshot (which includes the changes from above) and sets > the packaging to bundle - this ensures that the bundleplugin runs and > creates the resulting jar file. So the bundleplugin replaces the maven > jar plugin. If you leave the packaging as "jar" the bundleplugin will > not run. > The last part of the patch adds the configuration to the bundleplugin. > The export "*" exports all packages definied in this module for other > bundles, so all classes are public. All packages are marked with the > current version which allows to run different versions in parallel. > The imports are not specified as they are calculated automatically by > the bundleplugin. > > And that's it :) > > The changes to the other projects should be similar. I tried using the bundle plugin (I checked out and built the latest from svn) with Commons Validator and it produced the following MANIFEST.MF: http://people.apache.org/~niallp/commons-osgi/commons-validator-MANIFEST.MF It seems to have picked up some Manifest entries from BeanUtils - for example: Extension-Name: org.apache.commons.beanutils Implementation-Version: 1.6 Specification-Title: Jakarta Commons Beanutils Implementation-Title: org.apache.commons.beanutils Niall (N.B. The BeanUtils 1.7.0 jar has version incorectly specifying 1.6 in its manifest. > Carsten > > > -- > Carsten Ziegeler > cziegeler@apache.org > > Index: /Users/cziegeler/Developer/workspaces/default/commons-proper/commons-parent/pom.xml > =================================================================== > --- /Users/cziegeler/Developer/workspaces/default/commons-proper/commons-parent/pom.xml (revision 605909) > +++ /Users/cziegeler/Developer/workspaces/default/commons-proper/commons-parent/pom.xml (working copy) > @@ -159,6 +159,12 @@ > maven-release-plugin > 2.0-beta-7 > > + > + org.apache.felix > + maven-bundle-plugin > + 1.1.0-SNAPSHOT > + true > + > > > > @@ -194,6 +200,15 @@ > ${maven.compile.source} > > > + > + org.apache.felix > + maven-bundle-plugin > + > + > + org.apache.commons.${pom.artifactId} > + > + > + > > > > > Index: /Users/cziegeler/Developer/workspaces/default/commons-proper/lang/pom.xml > =================================================================== > --- /Users/cziegeler/Developer/workspaces/default/commons-proper/lang/pom.xml (revision 605909) > +++ /Users/cziegeler/Developer/workspaces/default/commons-proper/lang/pom.xml (working copy) > @@ -22,13 +22,14 @@ > > org.apache.commons > commons-parent > - 5 > + 6-SNAPSHOT > > 4.0.0 > commons-lang > commons-lang > 2.4-SNAPSHOT > Commons Lang > + bundle > > 2001 > > @@ -401,6 +402,16 @@ > gnu > > > + > + org.apache.felix > + maven-bundle-plugin > + true > + > + > + *;version=${pom.version} > + > + > + > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org --------------050901040400070202090103--