You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2021/09/20 19:20:00 UTC

[jira] [Commented] (ARTEMIS-3487) Artifact artemis-amqp-protocol-2.18.0.jar requires proton-j version >= 0.34

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

Justin Bertram commented on ARTEMIS-3487:
-----------------------------------------

I can confirm what you've described here, but I have no idea how it could have happened. I expect this will be corrected in the upcoming 2.19.0 release.

> Artifact artemis-amqp-protocol-2.18.0.jar requires proton-j version >= 0.34
> ---------------------------------------------------------------------------
>
>                 Key: ARTEMIS-3487
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3487
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: osgi
>    Affects Versions: 2.18.0
>            Reporter: Aaron Hoffer
>            Priority: Major
>         Attachments: MANIFEST.MF_from_mvnrepository, MANIFEST.MF_locally_built
>
>
> The MANIFEST.MF file for the artifact artemis-amqp-protocol-2.18.0.jar requires that version for proto-j packages be greater than or equal to 0.34:
>  
> {code:java}
> org.apache.qpid.proton.codec;version="[0.34,1)" 
> {code}
> However, the version of the proton-j artifact in the root POM of 2.18.0 is a lower version 
>  
> {code:java}
> <proton.version>0.33.8</proton.version> 
> {code}
>  
> This causes a "missing requirement" error when OSGi tries to load the  artemis-amqp-protocol-2.18.0 bundle.
> {noformat}
> org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=artemis-install; type=karaf.feature; version="[1.10.1.SNAPSHOT,1.10.1.SNAPSHOT]"; filter:="(&(osgi.identity=artemis-install)(type=karaf.feature)(version>=1.10.1.SNAPSHOT)(version<=1.10.1.SNAPSHOT))" [caused by: Unable to resolve artemis-install/1.10.1.SNAPSHOT: missing requirement [artemis-install/1.10.1.SNAPSHOT] osgi.identity; osgi.identity=artemis-amqp; type=karaf.feature; version="[2.18.0,2.18.0]" [caused by: Unable to resolve artemis-amqp/2.18.0: missing requirement [artemis-amqp/2.18.0] osgi.identity; osgi.identity=org.apache.activemq.artemis-amqp-protocol; type=osgi.bundle; version="[2.18.0,2.18.0]"; resolution:=mandatory [caused by: Unable to resolve org.apache.activemq.artemis-amqp-protocol/2.18.0: missing requirement [org.apache.activemq.artemis-amqp-protocol/2.18.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.qpid.proton)(version>=0.34.0)(!(version>=1.0.0)))"]]]{noformat}
>  
> After cloning the Artemis GitHub repo and checking out the 2.18.0 tag, I built the project. The MANIFEST.MF file for newly created artemis-amqp-protocol-2.18.0 had the correct version constraints for proton-j:
>  
> {code:java}
> org.apache.qpid.proton.amqp.messaging;version="[0.33,1)" 
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)