On 27 August 2011 17:52, Benson Margulies <bimargul...@gmail.com> wrote:

> Using the POM at:
>
>
> http://svn.apache.org/viewvc/maven/sandbox/branches/doxia-ide-eclipse-with-tycho/org.apache.maven.doxia.eclipse.dependencies/pom.xml?revision=1162392&view=markup
>
> I am perplexed to get a very long Import-Package, including many
> things that are embedded, plus things like com.apple.mrj.
>
> Should I just put in an explicit Import-Package of '*' in the POM, or
> is there something more complex I've messed up here?
>

that example uses bundleplugin 2.1.0 which automatically imported every
import for reasons of substitutability:


http://felix.apache.org/site/apache-felix-osgi-faq.html#ApacheFelixOSGiFAQ-Shouldabundleimportitsownexportedpackages%253F

in recent versions (2.3.5) the bundleplugin (actually bnd, which does the
hard work) takes a heuristic approach:

   http://www.aqute.biz/Bnd/Versioning   -   see "Substitution" section near
the end of the page

which means you shouldn't see as many imports using the defaults - see also:

   http://www.aqute.biz/Bnd/Format#import-package
   http://www.aqute.biz/Bnd/Format#export-package

for ways to exclude imports, mark them as optional, or stop selected exports
from being imported

-- 
Cheers, Stuart

Reply via email to