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 729617643 for ; Mon, 21 Nov 2011 16:51:19 +0000 (UTC) Received: (qmail 89886 invoked by uid 500); 21 Nov 2011 16:51:19 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 89847 invoked by uid 500); 21 Nov 2011 16:51:19 -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 89839 invoked by uid 99); 21 Nov 2011 16:51:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2011 16:51:19 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Mon, 21 Nov 2011 16:51:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8F71893889 for ; Mon, 21 Nov 2011 16:50:51 +0000 (UTC) Date: Mon, 21 Nov 2011 16:50:51 +0000 (UTC) From: "David Bosschaert (Commented) (JIRA)" To: dev@felix.apache.org Message-ID: <924965900.51720.1321894251589.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2069698831.51672.1321893531739.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (FELIX-3238) Unable to filter out classes from identical package in a dependency MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154291#comment-13154291 ] David Bosschaert commented on FELIX-3238: ----------------------------------------- I fabricated a small test setup here: https://github.com/bosschaert/coderthoughts (branch: split-package) The bundle ascii-pics-api-bundle-mbp contains org.coderthoughts.asciipics.impl.RogueClass The bundle ascii-pics-provider-bundle-mbp contains the rest of the org.coderthoughts.asciipics.impl package and depends on the ascii-pics-api-bundle-mbp bundle. To reproduce simply run 'mvn install' in the AsciiGraphicsService_MBP directory. Then look at the bundle in ascii-pics-provider-bundle-mbp/target/ascii-pics-provider-bundle-mbp-1.0.0-SNAPSHOT.jar and you will find the RogueClass inside the bundle. > Unable to filter out classes from identical package in a dependency > ------------------------------------------------------------------- > > Key: FELIX-3238 > URL: https://issues.apache.org/jira/browse/FELIX-3238 > Project: Felix > Issue Type: Bug > Components: Maven Bundle Plugin > Affects Versions: maven-bundle-plugin-2.3.5 > Reporter: David Bosschaert > > I as part of a refactoring a project is moving some classes from a package org.acme.foo from bundle A to a separate bundle B. > Unfortunately its not possible to move all the classes to the separate bundle so this introduces a split package. Both bundle A and bundle B export package org.acme.foo. > Bundle A has a maven dependency on bundle B. > What happens at the moment with the Maven Bundle Plugin 2.3.4 (we can't use 2.3.5 as it has FELIX-3058 ) is that all the classes from org.acme.foo that exist in bundle B are copied into the resulting bundle A. > Below the pom.xml of a test-setup that I created. Both the current project as well as ascii-pics-api-bundle-mbp dependency contain the org.coderthouhts.asciipics.impl package. > > 4.0.0 > > org.coderthoughts > ascii-pics-parent-mbp > 1.0.0-SNAPSHOT > > ascii-pics-provider-bundle-mbp > bundle > > > > org.coderthoughts > ascii-pics-api-bundle-mbp > 1.0.0 > provided > > > org.osgi > org.osgi.core > 4.2.0 > provided > > > > > > > org.apache.felix > maven-bundle-plugin > true > > > ${project.name} > org.coderthoughts.asciipics.Activator > org.coderthoughts.asciipics.impl;-split-package:=first > > > > > > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira