Return-Path: Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: (qmail 9605 invoked from network); 25 Mar 2011 13:37:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Mar 2011 13:37:29 -0000 Received: (qmail 77835 invoked by uid 500); 25 Mar 2011 13:37:28 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 77802 invoked by uid 500); 25 Mar 2011 13:37:28 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 77794 invoked by uid 99); 25 Mar 2011 13:37:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 13:37:28 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of heavy@ungoverned.org designates 69.89.21.8 as permitted sender) Received: from [69.89.21.8] (HELO oproxy3-pub.bluehost.com) (69.89.21.8) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 25 Mar 2011 13:37:23 +0000 Received: (qmail 20591 invoked by uid 0); 25 Mar 2011 13:37:03 -0000 Received: from unknown (HELO host118.hostmonster.com) (74.220.207.118) by oproxy3.bluehost.com with SMTP; 25 Mar 2011 13:37:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=ungoverned.org; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=jTnwas1MHf30ERoW1Fp5INtKRMvCYVBVc8Bv2sCbUSuZnskyFlXiq4iH1NGXjxdOm09dLMAzDPV3Hkt70Q4ovBD9p3AS+7dPzc5tFo582WZHdmHYDU6/vrjwp+po8aSx; Received: from [99.62.222.230] (helo=heavyweight.glastender.com) by host118.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Q37CI-00060C-Ib for users@felix.apache.org; Fri, 25 Mar 2011 07:37:02 -0600 Message-ID: <4D8C9A7D.3040208@ungoverned.org> Date: Fri, 25 Mar 2011 09:37:01 -0400 From: "Richard S. Hall" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: users@felix.apache.org Subject: Re: [maven-bundle-plugin] no information about not visible packages References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1027:host118.hostmonster.com:ungovern:ungoverned.org} {sentby:smtp auth 99.62.222.230 authed with heavy@ungoverned.org} On 3/25/11 7:47, Lars Fischer wrote: > Hello, > > I played with the new Bndtools from Neil Bartlett > (http://njbartlett.name/2011/03/23/towards-maven-support-in-bndtools.html) > to compare it to the Maven Tycho build tool. > > Now I have a question about the usage of maven-bundle-plugin / bnd. > Maybe, this is the wrong place. Then I would be happy to know a better > place to ask. > > Tycho uses some Eclipse tools to build OSGi bundles and is aware of > the class visibilitiy depending on the MANIFEST.MF contents. It throws > an error if a not exported class from BundleA will be used in BundleB. > > The maven-bundle-plugin does not throw such an error. It creates a > bundle, which will not be able to start because of a missing > dependency to a not exported package. > > https://github.com/lfischer/bndtools-investigation shows a small > example. The Bundle "org.example.bndtools.comp" implements two > interfaces from the "org.example.bndtools.api" bundle. The package of > the used interface ISystemComponent is not exported, but the bundle > will be build without any hint. > > Is there a way to detect such things at build time? I believe bnd gives warnings about such situations or at least can be used to verify JAR files. Otherwise, you are correct that maven-bundle-plugin doesn't deal with that at compile time, it is only involved with the packaging phase of the bundle, not the compiling phase. -> richard > Best regards, > Lars > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org