Hi,
The Camel features are using a range for the Spring version:
<feature name='camel-spring' version='3.20.4' start-level='50'>
<bundle
dependency='true'>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
<feature version='[5,6)'>spring</feature>
<feature version='[5,6)'>spring-tx</feature>
<feature version='3.20.4'>camel-core</feature>
<bundle>mvn:org.apache.camel/camel-core-xml/3.20.4</bundle>
<bundle>mvn:org.apache.camel/camel-spring/3.20.4</bundle>
<bundle>mvn:org.apache.camel/camel-spring-xml/3.20.4</bundle>
</feature>
So it will be take the higher version of Spring available in Karaf.
Regards,
François
On 28/04/2023 09:58, Ephemeris Lappis wrote:
Hello.
If I'm not wrong, most of Spring dependencies in Karaf come with this
feature repository :
feature:provided mvn:org.apache.karaf.features/spring/4.4.3/xml/features
Name │ Version
───────────────────────┼─────────
spring │ 5.3.23.1
spring-aspects │ 5.3.23.1
spring-instrument │ 5.3.23.1
spring-jdbc │ 5.3.23.1
spring-jms │ 5.3.23.1
spring-messaging │ 5.3.23.1
spring-test │ 5.3.23.1
spring-orm │ 5.3.23.1
spring-oxm │ 5.3.23.1
spring-tx │ 5.3.23.1
spring-web │ 5.3.23.1
spring-websocket │ 5.3.23.1
spring-security │ 5.6.3.1
spring-security │ 5.7.3.1
aries-blueprint-spring │ 0.0.0
I don't know if another version of this repository exists that I could
add in one of our features files before Spring (spring or
camel-spring) dependencies are resolved.
I don't know if changing the Karaf version of Spring to match the
Camel version may have an impact on other features that do not relate
to Camel...
Your point of view is welcome :) !
Thanks again.
Regards.
Le ven. 28 avr. 2023 à 09:04, Maurice Betzel
<[email protected]> a écrit :
Hi,
You should be able to add the feature repo and install with version.
Something like this from the Karaf docs:
karaf@root()> feature:repo-add
mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.3.0/xml/features
-----Original Message-----
From: Ephemeris Lappis <[email protected]>
Sent: Thursday, April 27, 2023 7:37 PM
To: [email protected]; [email protected]
Subject: Karaf, Camel, and Spring
CAUTION: This email originated from outside of Gaston Schul. Do not click
links or open attachments unless you recognize the sender and know the content
is safe.
Hello.
We're upgrading Camel to 3.20.4. This version of Camel seems to depend on
Spring 5.3.27.
As the application should run on Karaf 4.4.3 that provides spring components
with version 5.3.23.
Should we either force our project dependencies to use Spring 5.3.23, or try to
upgrade the Karaf repository to use Spring 5.3.27 ?
Thanks for your help.
Regards.
Al onze verrichtingen geschieden op basis van de Algemene voorwaarden der
Expediteurs van België, gepubliceerd in de bijlage tot het Belgisch Staatsblad
dd. 24 juni 2005 onder nr. 0090237. De tekst van deze voorwaarden wordt op uw
verzoek gratis toegezonden.
All our transactions are subject to the General Conditions of the Belgian Forwarders
Association which have been published under nr. 0090237 in the "Bijlage tot het
Belgisch Staatsblad" dated June 24th, 2005, and is available free of charge upon
request.
Toutes nos opérations se font sur base des Conditions Générales des Expéditeurs
de Belgique. Le texte en a été publié dans l' Annexe au Moniteur Belge du 24
juin 2005 sous le n° 0090237. Ce texte sera vous envoyé gratuitment sur demande.
Email confidentiality notice:
This email and any files transmitted with it are confidential and intended only
for the use of the recipient. If you have received this email in error please
notify its sender.