This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.18.x by this push:
new 1bbdd1e1198 CAMEL-18293: camel-cxf - Move CXFTestSupport to test-jar
1bbdd1e1198 is described below
commit 1bbdd1e1198bbab2b2d5ec7d713f9e19625ca234
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Jul 25 09:59:29 2022 +0200
CAMEL-18293: camel-cxf - Move CXFTestSupport to test-jar
---
components/camel-cxf/camel-cxf-common/pom.xml | 19 +++++++++++++++++--
.../camel/component/cxf/common/CXFTestSupport.java | 0
components/camel-cxf/camel-cxf-rest/pom.xml | 6 ++++++
components/camel-cxf/camel-cxf-soap/pom.xml | 6 ++++++
components/camel-cxf/camel-cxf-spring-rest/pom.xml | 6 ++++++
components/camel-cxf/camel-cxf-spring-soap/pom.xml | 6 ++++++
parent/pom.xml | 6 ++++++
7 files changed, 47 insertions(+), 2 deletions(-)
diff --git a/components/camel-cxf/camel-cxf-common/pom.xml
b/components/camel-cxf/camel-cxf-common/pom.xml
index 1c1d16edfd4..4958b155e2c 100644
--- a/components/camel-cxf/camel-cxf-common/pom.xml
+++ b/components/camel-cxf/camel-cxf-common/pom.xml
@@ -102,10 +102,9 @@
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test-junit5</artifactId>
+ <scope>test</scope>
</dependency>
-
-
</dependencies>
<build>
@@ -122,6 +121,22 @@
</resource>
</resources>
<plugins>
+ <!-- generate the attached tests jar -->
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>test-jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <excludes>
+ <exclude>log4j2.properties</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
diff --git
a/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/common/CXFTestSupport.java
b/components/camel-cxf/camel-cxf-common/src/test/java/org/apache/camel/component/cxf/common/CXFTestSupport.java
similarity index 100%
rename from
components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/common/CXFTestSupport.java
rename to
components/camel-cxf/camel-cxf-common/src/test/java/org/apache/camel/component/cxf/common/CXFTestSupport.java
diff --git a/components/camel-cxf/camel-cxf-rest/pom.xml
b/components/camel-cxf/camel-cxf-rest/pom.xml
index b215bf69704..cbb175ed0aa 100644
--- a/components/camel-cxf/camel-cxf-rest/pom.xml
+++ b/components/camel-cxf/camel-cxf-rest/pom.xml
@@ -110,6 +110,12 @@
<!-- Test Dependencies -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-cxf-common</artifactId>
+ <type>test-jar</type>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core-xml</artifactId>
diff --git a/components/camel-cxf/camel-cxf-soap/pom.xml
b/components/camel-cxf/camel-cxf-soap/pom.xml
index 670e2d7b0a8..c2ed921e769 100644
--- a/components/camel-cxf/camel-cxf-soap/pom.xml
+++ b/components/camel-cxf/camel-cxf-soap/pom.xml
@@ -115,6 +115,12 @@
<!-- Test Dependencies -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-cxf-common</artifactId>
+ <type>test-jar</type>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core-xml</artifactId>
diff --git a/components/camel-cxf/camel-cxf-spring-rest/pom.xml
b/components/camel-cxf/camel-cxf-spring-rest/pom.xml
index a0f666a8a0c..bcdd63d9b2f 100644
--- a/components/camel-cxf/camel-cxf-spring-rest/pom.xml
+++ b/components/camel-cxf/camel-cxf-spring-rest/pom.xml
@@ -99,6 +99,12 @@
</dependency>
<!-- Test Dependencies -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-cxf-common</artifactId>
+ <type>test-jar</type>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core-xml</artifactId>
diff --git a/components/camel-cxf/camel-cxf-spring-soap/pom.xml
b/components/camel-cxf/camel-cxf-spring-soap/pom.xml
index e765c05400d..77629760096 100644
--- a/components/camel-cxf/camel-cxf-spring-soap/pom.xml
+++ b/components/camel-cxf/camel-cxf-spring-soap/pom.xml
@@ -92,6 +92,12 @@
<!-- Test Dependencies -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-cxf-common</artifactId>
+ <type>test-jar</type>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core-xml</artifactId>
diff --git a/parent/pom.xml b/parent/pom.xml
index 7b3359a538a..8c164a726e1 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -2886,6 +2886,12 @@
<version>${project.version}</version>
<type>test-jar</type>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-cxf-common</artifactId>
+ <version>${project.version}</version>
+ <type>test-jar</type>
+ </dependency>
<!-- cassandra -->
<dependency>