[
https://issues.apache.org/jira/browse/SMX4-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13543681#comment-13543681
]
Claus Ibsen commented on SMX4-1270:
-----------------------------------
You dont reproduce on trunk since I have "fixed" it by adding all the zillion
optional dependencies to the features of camel-hbase and camel-hdfs (the 2 most
affected). So we have all kind of stuff not really needed.
And then there is a 2nd problem if you install the features in Karaf (eg not
just validate) then you get a weird error about tomcat jasper compiler v6.1-7.0
needed to be installed. But there is no version range specified anywhere. And
the only bundles we have is version 5.x of the jasper compiler.
Anyway its a big problem that the OSGi tooling do not respect the maven pom.xml
which have 3rd party dependencies marked as optional. And if so it should do
that as well. In the end it makes OSGi users in much more pain that regular
world which dont have the problem of ... must download the internet to use this
osgi bundle.
> Incorrect optional resolution in import of some bundles
> -------------------------------------------------------
>
> Key: SMX4-1270
> URL: https://issues.apache.org/jira/browse/SMX4-1270
> Project: ServiceMix 4
> Issue Type: Task
> Components: Bundles
> Reporter: Claus Ibsen
> Assignee: Jean-Baptiste Onofré
> Priority: Critical
> Fix For: bundles-2012.12
>
>
> The 1.7 bundles of Apache Velocity at
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.velocity/
> Has wrong MANIFEST.MF imports.
> For example if you look at the latest 1.7.0_5
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.velocity/1.7_5/org.apache.servicemix.bundles.velocity-1.7_5.pom
> In the bottom of this pom.xml file noticed the imports for commons-collection
> and commons-lang is mandatory (they dont have optional).
> But in the generated JAR the MANIFEST.MF contains the following
> {code}
> Import-Package: com.werken.xpath;resolution:=optional;version="[0.9.4,1)
> ",javax.servlet;resolution:=optional;version="[2.3,3)",javax.servlet.ht
> tp;resolution:=optional;version="[2.3,3)",org.apache.commons.collection
> s;version="[3.2,4)";resolution:=optional,org.apache.commons.collections
> .map;version="[3.2,4)";resolution:=optional,org.apache.commons.lang;ver
> sion="[2.4,3)";resolution:=optional,org.apache.commons.lang.builder;ver
> sion="[2.4,3)";resolution:=optional,org.apache.commons.lang.text;versio
> n="[2.4,3)";resolution:=optional,org.apache.commons.logging;resolution:
> =optional;version="[1.1,2)",org.apache.log;resolution:=optional;version
> ="[2,3)",org.apache.log.format;resolution:=optional;version="[2,3)",org
> .apache.log.output.io;resolution:=optional;version="[2,3)",org.apache.l
> og4j;resolution:=optional;version="[2,3)",org.apache.oro.text.perl;reso
> lution:=optional,org.apache.tools.ant;resolution:=optional;version="[1.
> 6,2)",org.apache.tools.ant.taskdefs;resolution:=optional;version="[1.6,
> 2)",org.jdom;resolution:=optional;version="[1,2)",org.jdom.input;resolu
> tion:=optional;version="[1,2)",org.jdom.output;resolution:=optional;ver
> sion="[1,2)"
> {code}
> Now notice that almost all the imports is now optional. This is now what we
> specified in the pom.xml file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira