This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.18.x by this push:
new 44808ab29dcb [camel-4.18.x] Use apiSrc rather than sources JAR in
camel-as2 / camel-box / camel-dhis2 / camel-olingo2 (#28194)
44808ab29dcb is described below
commit 44808ab29dcb87da6bd082219630fba990edfb49
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Oct 21 06:45:05 2026 +0200
[camel-4.18.x] Use apiSrc rather than sources JAR in camel-as2 / camel-box
/ camel-dhis2 / camel-olingo2 (#28194)
Backport of cd6d418c78dc to camel-4.18.x (straight cherry-pick). The four
components read their API signatures from the -api module's source folder
(apiSrcDir) instead of its sources JAR, which is not always there when fromApis
runs in the parallel mvnd CI build.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
components/camel-as2/camel-as2-component/pom.xml | 10 +---------
components/camel-box/camel-box-component/pom.xml | 10 ++--------
components/camel-dhis2/camel-dhis2-component/pom.xml | 9 +--------
components/camel-olingo2/camel-olingo2-component/pom.xml | 10 +---------
4 files changed, 5 insertions(+), 34 deletions(-)
diff --git a/components/camel-as2/camel-as2-component/pom.xml
b/components/camel-as2/camel-as2-component/pom.xml
index 531fb68193bc..1dacd3ba839d 100644
--- a/components/camel-as2/camel-as2-component/pom.xml
+++ b/components/camel-as2/camel-as2-component/pom.xml
@@ -103,6 +103,7 @@
<goal>fromApis</goal>
</goals>
<configuration>
+
<apiSrcDir>../camel-as2-api/src/main/java</apiSrcDir>
<apis>
<api>
<apiName>client</apiName>
@@ -151,15 +152,6 @@
</configuration>
</execution>
</executions>
- <dependencies>
- <!-- Component API to read API signatures -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-as2-api</artifactId>
- <version>${project.version}</version>
- <classifier>sources</classifier>
- </dependency>
- </dependencies>
</plugin>
</plugins>
</build>
diff --git a/components/camel-box/camel-box-component/pom.xml
b/components/camel-box/camel-box-component/pom.xml
index 9587547026a4..2f2ee4c91837 100644
--- a/components/camel-box/camel-box-component/pom.xml
+++ b/components/camel-box/camel-box-component/pom.xml
@@ -99,6 +99,7 @@
<goal>fromApis</goal>
</goals>
<configuration>
+
<apiSrcDir>../camel-box-api/src/main/java</apiSrcDir>
<apis>
<api>
<apiName>collaborations</apiName>
@@ -542,14 +543,7 @@
</execution>
</executions>
<dependencies>
- <!-- Component API javadoc in provided scope to read API
signatures -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-box-api</artifactId>
- <version>${project.version}</version>
- <classifier>sources</classifier>
- </dependency>
- <!-- Component API javadoc in provided scope to read API
signatures -->
+ <!-- Box Java SDK sources for reading external API
signatures -->
<dependency>
<groupId>com.box</groupId>
<artifactId>box-java-sdk</artifactId>
diff --git a/components/camel-dhis2/camel-dhis2-component/pom.xml
b/components/camel-dhis2/camel-dhis2-component/pom.xml
index d31fbc5a3cc7..df5cacfd6a52 100644
--- a/components/camel-dhis2/camel-dhis2-component/pom.xml
+++ b/components/camel-dhis2/camel-dhis2-component/pom.xml
@@ -83,6 +83,7 @@
<goal>fromApis</goal>
</goals>
<configuration>
+
<apiSrcDir>../camel-dhis2-api/src/main/java</apiSrcDir>
<apis>
<api>
<apiName>post</apiName>
@@ -139,14 +140,6 @@
</configuration>
</execution>
</executions>
- <dependencies>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-dhis2-api</artifactId>
- <version>${project.version}</version>
- <classifier>sources</classifier>
- </dependency>
- </dependencies>
</plugin>
</plugins>
diff --git a/components/camel-olingo2/camel-olingo2-component/pom.xml
b/components/camel-olingo2/camel-olingo2-component/pom.xml
index aa83b71432cb..4bd3dc5dfd74 100644
--- a/components/camel-olingo2/camel-olingo2-component/pom.xml
+++ b/components/camel-olingo2/camel-olingo2-component/pom.xml
@@ -151,6 +151,7 @@
<goal>fromApis</goal>
</goals>
<configuration>
+
<apiSrcDir>../camel-olingo2-api/src/main/java</apiSrcDir>
<apis>
<api>
<apiName />
@@ -176,15 +177,6 @@
</configuration>
</execution>
</executions>
- <dependencies>
- <!-- Component API to read API -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-olingo2-api</artifactId>
- <version>${project.version}</version>
- <classifier>sources</classifier>
- </dependency>
- </dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>