Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-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 7C9DF6060 for ; Thu, 30 Jun 2011 16:54:50 +0000 (UTC) Received: (qmail 98606 invoked by uid 500); 30 Jun 2011 16:54:50 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 98312 invoked by uid 500); 30 Jun 2011 16:54:49 -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 98297 invoked by uid 99); 30 Jun 2011 16:54:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 16:54:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 16:54:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6CABD43C84A for ; Thu, 30 Jun 2011 16:54:28 +0000 (UTC) Date: Thu, 30 Jun 2011 16:54:28 +0000 (UTC) From: "Sahoo (JIRA)" To: dev@felix.apache.org Message-ID: <911278081.6015.1309452868426.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (FELIX-1571) Bundle-ClassPath without "." while using maven-bundle-plugin in a war project confuses the plugin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-1571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057930#comment-13057930 ] Sahoo commented on FELIX-1571: ------------------------------ Filed FELIX-3018 > Bundle-ClassPath without "." while using maven-bundle-plugin in a war project confuses the plugin > ------------------------------------------------------------------------------------------------- > > Key: FELIX-1571 > URL: https://issues.apache.org/jira/browse/FELIX-1571 > Project: Felix > Issue Type: Bug > Components: Maven Bundle Plugin > Affects Versions: maven-bundle-plugin-2.0.0 > Reporter: Sahoo > Assignee: Stuart McCulloch > Fix For: maven-bundle-plugin-2.3.5 > > Attachments: test.zip, wicket-cdi.tar.gz > > > I am using a war type project, so the packaging is governed by > maven-war-plugin. For the OSGi meta data in the war, I am using manifest > goal of maven-bundle-plugin in process-classes phase. Yes, I have already > looked at the excellent examples on this use case at [1]. However, my use > case has one difference. I don't want "." in Bundle-ClassPath. Why? Because, > it should never be. Files at the root level of .war file is never used > directly by class loaders in web container; WEB-INF/classes and > WEB-INF/lib/*.jar are used instead. As soon as I remove the "." from > Bundle-ClassPath settings, bundle plugin is confused. I don't know why "." > is necessary for bundle plugin to generate meta data? My guess is without > it, it does not find any classes in the target dir? > Please see the attached test case. I want to know two things: > 1. How to configure bundle plugin to generate Bundle-ClassPath that contains WEB-INF/classes and WEB-INF/lib/*.jar, but "." should not be part of the classpath? > 2. How to configure bundle plugin to generate Import-Package statements for classes packaged in WEB-INF/lib/*.jar? -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira