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

davsclaus 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 af123d7ffde CAMEL-18293: camel-cxf - Move CXFTestSupport to test-jar
af123d7ffde is described below

commit af123d7ffde7561832d1246041fa1e07294b65de
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 df9b0d59e53..bacc8ed7bdd 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 040a1a8f2c6..ede12cca949 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 d689f9335ca..87affd54f8d 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 a96816829a4..8a049b66c9a 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 7941d1d7835..5988e528e0e 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 2ed8ad12dc8..dd62b0d7567 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -2897,6 +2897,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>

Reply via email to