This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new a881465786 Fix hashicorp-vault tests when running locally
a881465786 is described below
commit a881465786dced3ce80a8183b9bf2898a997eb90
Author: JiriOndrusek <[email protected]>
AuthorDate: Mon Feb 23 14:06:44 2026 +0100
Fix hashicorp-vault tests when running locally
Fixes #7543
---
extensions-support/spring/shade/core/pom.xml | 27 ++++++++++++++++++++++
extensions-support/spring/shade/pom.xml | 6 +++++
.../camel-quarkus-banned-dependencies-spring.xml | 1 +
3 files changed, 34 insertions(+)
diff --git a/extensions-support/spring/shade/core/pom.xml
b/extensions-support/spring/shade/core/pom.xml
index 9da5524bc4..49ecf433c6 100644
--- a/extensions-support/spring/shade/core/pom.xml
+++ b/extensions-support/spring/shade/core/pom.xml
@@ -82,6 +82,33 @@
</execution>
</executions>
</plugin>
+ <!--
+ Workaround for
https://github.com/apache/camel-quarkus/issues/7543.
+ This module produces an artifact that does not include any
compiled classes only license files, which causes tests to fail when the empty
target/classes directory is detected.
+ The workaround explicitly loads and installs the license
files from the target/license directory.
+ -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>legal-resources</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+
<outputDirectory>${project.basedir}/target/license/</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+
<classesDirectory>${project.basedir}/target/license</classesDirectory>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>
diff --git a/extensions-support/spring/shade/pom.xml
b/extensions-support/spring/shade/pom.xml
index f1de798f7e..37bcf08ff1 100644
--- a/extensions-support/spring/shade/pom.xml
+++ b/extensions-support/spring/shade/pom.xml
@@ -59,6 +59,12 @@
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-jcl</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
diff --git
a/tooling/enforcer-rules/camel-quarkus-banned-dependencies-spring.xml
b/tooling/enforcer-rules/camel-quarkus-banned-dependencies-spring.xml
index a67bf6ee8d..1b14bdf562 100644
--- a/tooling/enforcer-rules/camel-quarkus-banned-dependencies-spring.xml
+++ b/tooling/enforcer-rules/camel-quarkus-banned-dependencies-spring.xml
@@ -43,6 +43,7 @@
<exclude>org.springframework.hateoas:*</exclude>
<exclude>org.springframework.integration:*</exclude>
<exclude>org.springframework.javaconfig:*</exclude>
+ <exclude>org.springframework.jcl:*</exclude>
<exclude>org.springframework.kafka:*</exclude>
<exclude>org.springframework.ldap:*</exclude>
<exclude>org.springframework.maven:*</exclude>