[ 
https://issues.apache.org/jira/browse/FELIX-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stuart McCulloch resolved FELIX-2210.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: maven-bundle-plugin-2.3.4

The earlier bundleplugin/bnd was working as designed when it generated those 
imports because it defaulted to always import any exported packages, using the 
same version as that given to the exports.

However, since then the defaults have been improved to try and detect the 
difference between packages provided by a library bundle and packages used and 
re-exported by a client bundle. I tried using bundleplugin 2.3.4 with the 
original instructions from 2010/03/15 and you now get the expected manifest 
without the extra imports.

> Bogus import entries
> --------------------
>
>                 Key: FELIX-2210
>                 URL: https://issues.apache.org/jira/browse/FELIX-2210
>             Project: Felix
>          Issue Type: Bug
>          Components: Manifest Generator (mangen), Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.2.1
>            Reporter: Oleg Kalnichevski
>            Assignee: Stuart McCulloch
>             Fix For: maven-bundle-plugin-2.3.4
>
>
> The following plugin configuration produces a manifest that contains bogus 
> import entries containing references to a non-existent version
> http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcore-osgi/pom.xml
> The import section of the manifest refers to version 4.1, which is not 
> declared in the pom
> ---
> Import-Package: javax.net.ssl,org.apache.http;version="4.1",org.apache
>  .http.entity;version="4.1",org.apache.http.impl;version="4.1",org.apa
>  che.http.impl.entity;version="4.1",org.apache.http.impl.io;version="4
>  .1",org.apache.http.impl.nio;version="4.1",org.apache.http.impl.nio.c
>  odecs;version="4.1",org.apache.http.impl.nio.reactor;version="4.1",or
>  g.apache.http.impl.nio.ssl;version="4.1",org.apache.http.io;version="
>  4.1",org.apache.http.message;version="4.1",org.apache.http.nio;versio
>  n="4.1",org.apache.http.nio.entity;version="4.1",org.apache.http.nio.
>  params;version="4.1",org.apache.http.nio.protocol;version="4.1",org.a
>  pache.http.nio.reactor;version="4.1",org.apache.http.nio.util;version
>  ="4.1",org.apache.http.params;version="4.1",org.apache.http.protocol;
>  version="4.1",org.apache.http.util;version="4.1"
> ---
> This just does not seem right. Please advise. 
> For more details please see HTTPCORE-222

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to