You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Krzysztof Sobkowiak (JIRA)" <ji...@apache.org> on 2016/04/28 22:42:12 UTC

[jira] [Created] (AMQ-6271) activemq-osgi defines wrong range for org.springframework.osgi...

Krzysztof Sobkowiak created AMQ-6271:
----------------------------------------

             Summary: activemq-osgi defines wrong range for org.springframework.osgi...
                 Key: AMQ-6271
                 URL: https://issues.apache.org/jira/browse/AMQ-6271
             Project: ActiveMQ
          Issue Type: Bug
          Components: OSGi/Karaf
    Affects Versions: 5.14.0, 5.13.3
            Reporter: Krzysztof Sobkowiak
             Fix For: 5.14.0, 5.13.4


The generated bundle manifest in activemq-bundle defines wrong range for Spring OSGi packages:

{noformat}
org.springframework.osgi.context.support;resolution:=optional;version="[3,5)"
{noformat}

where the pom defines following 

{noformat}
org.springframework.osgi*;version="[1,4]";resolution:=optional
{noformat}

I think, the {{maven-bundle-plugin}} generates wrong version when the subpackages are defined in pom after the super-package, like this

{noformat}
org.springframework*;version="[3,5)";resolution:=optional,
org.springframework.jms*;version="[3,5)";resolution:=optional,
org.springframework.osgi*;version="[1,4]";resolution:=optional,
org.springframework.transaction*;version="[3,5)";resolution:=optional,
{noformat}

In this case {{org.springframework.osgi*}} packages will have generated the {{[3,5)}} version because the super package {{org.springframework*}} is defined first. Bug in {{maven-bundle-plugin}} or a feature?

Btw. why do we need the range {{\[1,4\]}} for {{org.springframework.osgi*}}? It was introduced by https://github.com/apache/activemq/commit/3a6d67e8f95320bea91b7c7106173c9b34773bc5#diff-d5b8d20ad29a25abf3fbd33c79dafc9e (AMQ-4727). Previously was {{\[1.2,1.3\]}} (eventually {{[1.2, 2)}} ) and it should be ok, because we have (and will have) no newer version of Spring DM






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)