You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Aaron Hoffer <ho...@gmail.com> on 2021/09/17 02:49:12 UTC
Bundle import package version constraint
I tried upgrading our application from Artemis 2.17.0 to 2.18.0, but failed.
We use Karaf and Karaf failed to load the artemis-amqp-protocol artifact because of a missing requirement.
The artemis-amqp-protocol artifact has a dependency on package org.apache.qpid.proton, and an OSGi constraint that the version must be >= 0.34. The package org.apache.qpid.proton is defined in the proton-j artifact, and the highest released version is 0.33.9.
I checked the MANIFEST.MF in the artifact artemis-amqp-protocol-2.18.0.jar. The manifest does contains constraints like:
"org.apache.qpid.proton.codec;version="[0.34,1)"
I'm not sure how that happened. I cloned the Artemis repo and checked out the 2.18.0 tag. Then I built the project. The MANIFEST.MF file in the artemis-amqp-protocol-2.18.0.jar I just built has the expected version constraint:
org.apache.qpid.proton.codec;version="[0.33,1)"
Was the maven-bundle-plugin having a bad day? I don't think there needs to be a patch, but it looks like the 2.18.0 artifacts need to be rebuilt.
You can checkout the manifest in this artifact https://mvnrepository.com/artifact/org.apache.activemq/artemis-amqp-protocol/2.18.0