[ 
https://issues.apache.org/jira/browse/ARTEMIS-2487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16929281#comment-16929281
 ] 

Rico Neubauer edited comment on ARTEMIS-2487 at 9/13/19 3:54 PM:
-----------------------------------------------------------------

OK, found it.

maven-bundle-plugin takes the version from export declaration of dependency. 
jctools:2.1.1 had a bug, that it exported its packages as 2.2.0. See manifest 
of  
[jctools-core-2.1.1|https://search.maven.org/remotecontent?filepath=org/jctools/jctools-core/2.1.1/jctools-core-2.1.1.jar]

This was fixed in 2.1.2 and it exports correctly as 2.1.2.

Pragmatic approach therefore: Update to 2.1.2 as already discussed in 
ARTEMIS-2399.

Pull-Request sent.
 Tested it locally and result is the correct import declaration:
{noformat}
org.jctools.queues;version="[2.1,3)"{noformat}


was (Author: riconeubauer):
OK, found it.

maven-bundle-plugin takes the version from export declaration of dependency. 
jctools:2.1.1 had a bug, that it exported its packages as 2.2.0. See manifest 
of 
[https://search.maven.org/remotecontent?filepath=org/jctools/jctools-core/2.1.1/jctools-core-2.1.1.jar|jctools-core-2.1.1]

This was fixed in 2.1.2 and it exports correctly as 2.1.2.

Pragmatic approach therefore: Update to 2.1.2 as already discussed in 
ARTEMIS-2399.

Pull-Request sent.
 Tested it locally and result is the correct import declaration:
{noformat}
org.jctools.queues;version="[2.1,3)"{noformat}

> artemis-server-osgi references not-existing jctools:2.2.0
> ---------------------------------------------------------
>
>                 Key: ARTEMIS-2487
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2487
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: osgi
>    Affects Versions: 2.10.0
>            Reporter: Rico Neubauer
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Have a look in released org.apache.activemq:artemis-server-osgi:2.10.0 
> ([https://search.maven.org/artifact/org.apache.activemq/artemis-server-osgi/2.10.0/bundle)]
> There is an import towards 
> {noformat}
> org.jctools.queues;version="[2.2,3)"{noformat}
>  
> No such version exists. Latest version existing is 2.1.2 and in Artemis' 
> parent pom.xml version 2.1.1 is referenced.
> https://search.maven.org/search?q=a:jctools-core
> This obviously leads to being not deployable in an OSGi-container.
> So far did not see where that ghost version could come from.
> Error in Karaf:
>  
> {noformat}
> org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
> org.apache.activemq.artemis-server-osgi/2.10.0: missing requirement 
> [org.apache.activemq.artemis-server-osgi/2.10.0] osgi.wiring.package; 
> filter:="(&(osgi.wiring.package=org.jctools.queues)(version>=2.2.0)(!(version>=3.0.0)))"{noformat}
>  
> Dependency itself was introduced with ARTEMIS-2399.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to