You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/06/01 20:08:27 UTC
[camel] branch main updated: Add camel-catalog as dependency to prevent parallel build failures (#10255)
This is an automated email from the ASF dual-hosted git repository.
nfilotto 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 7eafb4d1901 Add camel-catalog as dependency to prevent parallel build failures (#10255)
7eafb4d1901 is described below
commit 7eafb4d1901018853f07e0a18319b851dfb369f9
Author: Nicolas Filotto <es...@users.noreply.github.com>
AuthorDate: Thu Jun 1 22:08:19 2023 +0200
Add camel-catalog as dependency to prevent parallel build failures (#10255)
## Motivation
In the case of a parallel build, since `camel-catalog` is not explicitly defined as a dependency of `camel-endpointdsl`, they could be built in parallel which causes error of the following type:
```
[ERROR] Failed to execute goal org.apache.camel:camel-package-maven-plugin:4.0.0-SNAPSHOT:generate-endpoint-dsl (generate-endpoint-dsl) on project camel-endpointdsl: Execution generate-endpoint-dsl of goal org.apache.camel:camel-package-maven-plugin:4.0.0-SNAPSHOT:generate-endpoint-dsl failed: Error reading json file: /home/runner/work/camel/camel/dsl/camel-endpointdsl/target/../../../catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/lpr.json -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.camel:camel-package-maven-plugin:4.0.0-SNAPSHOT:generate-endpoint-dsl (generate-endpoint-dsl) on project camel-endpointdsl: Execution generate-endpoint-dsl of goal org.apache.camel:camel-package-maven-plugin:4.0.0-SNAPSHOT:generate-endpoint-dsl failed: Error reading json file: /home/runner/work/camel/camel/dsl/camel-endpointdsl/target/../../../catalog/camel-catalog/src/generated/resources/org/apa [...]
```
## Modifications
* Add explicitly `camel-catalog` as provided dependency of `camel-endpointdsl`
---
dsl/camel-endpointdsl/pom.xml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dsl/camel-endpointdsl/pom.xml b/dsl/camel-endpointdsl/pom.xml
index b641fffd4c5..cfcab7a6669 100644
--- a/dsl/camel-endpointdsl/pom.xml
+++ b/dsl/camel-endpointdsl/pom.xml
@@ -94,6 +94,12 @@
</exclusion>
</exclusions>
</dependency>
+ <!-- Add it explicitly to prevent parallel build failures -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-catalog</artifactId>
+ <scope>provided</scope>
+ </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>