felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart McCulloch (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-935) Dependent project classes included raw and also jarred
Date Thu, 12 Feb 2009 05:55:59 GMT

    [ https://issues.apache.org/jira/browse/FELIX-935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12672892#action_12672892
] 

Stuart McCulloch commented on FELIX-935:
----------------------------------------

Please read:

   http://felix.apache.org/site/apache-felix-bundle-plugin-faq.html#ApacheFelixBundlePluginFAQ-WhenIembedadependencywhydoIseeduplicatedcontent%253F

as well as:

   http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html#ApacheFelixMavenBundlePlugin(BND)-EmbedDependencyandExportPackage

your current instructions are asking the bundleplugin to:

 1)  embed all compile and runtime dependencies
      <Embed-Dependency>*;scope=compile|runtime;inline=false</Embed-Dependency>

 2)  pull in all classes and resources under the com.basistech.rex2009 packages from the classpath
      <Export-Package>com.basistech.rex2009.*</Export-Package>

so if your dependencies contain classes from com.basistech.rex2009 then you will see this
happen.

To export a package without pulling it into the bundle (for example when you're embedding
it) use:

      <_exportcontents>com.basistech.rex2009.*</_exportcontents>

HTH

> Dependent project classes included raw and also jarred
> ------------------------------------------------------
>
>                 Key: FELIX-935
>                 URL: https://issues.apache.org/jira/browse/FELIX-935
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.4.3
>            Reporter: Benson Margulies
>         Attachments: pom.xml
>
>
> In the attached pom, I am packaging up  one direct dependency plus its transitive dependencies
into a bundle. As it happens, an eclipse-friendly bundle.
> When I look at the resulting jar, I see that the classes from the direct dependency are
sitting in the jar, as well as the jar for the dependency! This seems wrong.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message