You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Flavio Donzé (JIRA)" <ji...@apache.org> on 2015/08/20 15:18:45 UTC
[jira] [Created] (SM-2654) source bundles should not have
export/import package declaration
Flavio Donzé created SM-2654:
--------------------------------
Summary: source bundles should not have export/import package declaration
Key: SM-2654
URL: https://issues.apache.org/jira/browse/SM-2654
Project: ServiceMix
Issue Type: Bug
Components: bundles
Reporter: Flavio Donzé
We are using spring in our application and are currently updating from 3.2.5 > 4.2.0.
I'm using the spring OSGi bundles provided at:
http://repo1.maven.org/maven2/org/apache/servicemix/bundles/
After adding the binary and source bundles to the target platform, I had a lot of strange compile errors.
Classes and packages were not found which do actually exist and are correctly in the MANIFEST.MF.
I came to the conclusion that the source bundles were the cause of it,
they import and worse export the same packages as the binary bundles.
Removed the source bundles from the target platform and everything worked fine.
To make sure I took a look at some other source bundles in my target platform and they all do not export/import their packages.
org.eclipse.jetty.server.source_9.3.2.v20150730.jar
com.caucho.hessian.source_3.2.0.0.jar
org.eclipse.emf.common.source_2.11.0.v20150512-0501.jar
org.eclipse.core.contenttype.source_3.5.0.v20150421-2214.jar
org.eclipse.equinox.frameworkadmin.source_2.0.200.v20150423-1455.jar
javax.servlet.source_3.1.0.v201410161800.jar
org.eclipse.osgi.source_3.10.100.v20150529-1857.jar
Here are some examples where export and import packages are part of the MANIFEST.MF.
http://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-context/4.2.0.RELEASE_1/org.apache.servicemix.bundles.spring-context-4.2.0.RELEASE_1-sources.jar
http://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-beans/4.2.0.RELEASE_1/org.apache.servicemix.bundles.spring-beans-4.2.0.RELEASE_1-sources.jar
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)