This is an automated email from the ASF dual-hosted git repository.

apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new ba205e4561fe CAMEL-22463 - Add jackson dependency to hashicorp vault
ba205e4561fe is described below

commit ba205e4561fe3a5020693cf9931495098fcdddc3
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Mon Feb 23 15:59:31 2026 +0100

    CAMEL-22463 - Add jackson dependency to hashicorp vault
    
    the jackson dependency is now optional with spring-vault-core 4.x
    This is needed by this component, otherwise there is this kind of error:
    
    ```
    Caused by: java.lang.ExceptionInInitializerError: Exception
    java.lang.IllegalStateException: Either Jackson 2 or Jackson 3 must be
    available on the classpath [in thread "main"]
            at 
org.springframework.vault.support.JacksonCompat.<clinit>(JacksonCompat.java:97)
            at 
org.springframework.vault.client.VaultClients.createRestTemplate(VaultClients.java:152)
            at 
org.springframework.vault.client.VaultClients.createRestTemplate(VaultClients.java:90)
            at 
org.springframework.vault.client.RestTemplateBuilder.createTemplate(RestTemplateBuilder.java:251)
            at 
org.springframework.vault.client.RestTemplateBuilder.build(RestTemplateBuilder.java:227)
            at 
org.springframework.vault.core.VaultTemplate.doCreateRestTemplate(VaultTemplate.java:336)
            at 
org.springframework.vault.core.VaultTemplate.<init>(VaultTemplate.java:114)
            at 
org.apache.camel.component.hashicorp.vault.integration.HashicorpVaultPropertiesSourceNoEnvTestIT.init(HashicorpVaultPropertiesSourceNoEnvTestIT.java:58)
    ```
    
    it is a similar solution than used for pqc:
    
https://github.com/apache/camel/commit/73ea276e3666c81b18fe559a69cbfc4fb37685a6
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 components/camel-hashicorp-vault/pom.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/components/camel-hashicorp-vault/pom.xml 
b/components/camel-hashicorp-vault/pom.xml
index 29d485f4bd35..7b293bb47465 100644
--- a/components/camel-hashicorp-vault/pom.xml
+++ b/components/camel-hashicorp-vault/pom.xml
@@ -48,6 +48,11 @@
            <artifactId>spring-vault-core</artifactId>
            <version>${spring-vault-core-version}</version>
         </dependency>
+            
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-databind</artifactId>
+        </dependency>
 
         <!-- for testing -->
         <dependency>

Reply via email to