You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/01/02 16:12:13 UTC

[jira] [Reopened] (SMX4-1270) Incorrect optional resolution in import of some bundles

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

Claus Ibsen reopened SMX4-1270:
-------------------------------


Sorry for reopening, but camel-hbase feature does not work as it requires some bundles that may have these optional import problems

{code}
[INFO]     OK: imports resolved for camel-hazelcast
[INFO]     OK: imports resolved for camel-hawtdb
[WARNING] Failed to validate feature camel-hbase
[WARNING] No export found to match org.apache.avro (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.xml.resolver.helpers (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-configuration/1.8_1)
[WARNING] No export found to match com.google.common.base (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match javax.inject (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match javax.interceptor (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.avro.util (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.jets3t.service.model (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match javax.ws.rs.core (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match com.google.common.util.concurrent (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match com.thoughtworks.paranamer (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.commons.digester.substitution;version="[1.8,2)" (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-configuration/1.8_1)
[WARNING] No export found to match org.jets3t.service.impl.rest.httpclient (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match com.google.common.primitives (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.xml.resolver (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-configuration/1.8_1)
[WARNING] No export found to match org.apache.thrift.meta_data (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.xml.resolver.tools (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-configuration/1.8_1)
[WARNING] No export found to match org.apache.bsf.util (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.xml.resolver.readers (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-configuration/1.8_1)
[WARNING] No export found to match org.apache.avro.generic (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.avro.ipc (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.commons.jexl2 (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-configuration/1.8_1)
[WARNING] No export found to match org.apache.commons.digester.xmlrules;version="[1.8,2)" (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-configuration/1.8_1)
[WARNING] No export found to match org.apache.thrift.scheme (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.avro.specific (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.commons.vfs2 (imported by mvn:commons-configuration/commons-configuration/1.8)
[WARNING] No export found to match javax.ws.rs (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.thrift.transport (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.xml.resolver (imported by mvn:commons-configuration/commons-configuration/1.8)
[WARNING] No export found to match org.jets3t.service (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match com.google.common.cache (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.thrift.server (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.avro.ipc.specific (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.commons.jexl2 (imported by mvn:commons-configuration/commons-configuration/1.8)
[WARNING] No export found to match org.apache.thrift;version="[0.8,1)" (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.jets3t.service.security (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.xml.resolver.tools (imported by mvn:commons-configuration/commons-configuration/1.8)
[WARNING] No export found to match com.google.common.collect (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.xml.resolver.helpers (imported by mvn:commons-configuration/commons-configuration/1.8)
[WARNING] No export found to match joptsimple (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.bsf (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.thrift.protocol (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match com.google.common.io (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match javax.jmdns (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.thrift.async (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.oro.text.regex (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match com.google.protobuf (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.codehaus.jettison.json;version="[1.1,2)" (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match javax.annotation.security (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
[WARNING] No export found to match org.apache.commons.vfs2.provider (imported by mvn:commons-configuration/commons-configuration/1.8)
[WARNING] No export found to match org.apache.xml.resolver.readers (imported by mvn:commons-configuration/commons-configuration/1.8)
[WARNING] No export found to match org.apache.commons.digester;version="[1.8,2)" (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-configuration/1.8_1)
[WARNING] No export found to match javax.ws.rs.ext (imported by mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hbase/0.94.2_1)
{code}

This is from todays code trunk at Camel running the feature validator
                
> 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