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 c3ef718de2e8 CAMEL-22967: dep-check - pre-install 
camel-yaml-dsl-validator-maven-plugin
c3ef718de2e8 is described below

commit c3ef718de2e82bd1c64415007423e6f92c31c801
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Sep 23 17:43:48 2026 +0200

    CAMEL-22967: dep-check - pre-install camel-yaml-dsl-validator-maven-plugin
    
    The dependency analysis job runs mvn compile, which stops before
    process-classes, so maven-plugin-plugin has not yet generated
    META-INF/maven/plugin.xml. camel-jbang-core uses
    camel-yaml-dsl-validator-maven-plugin as a build plugin at
    generate-resources, so Maven picks the plugin up from its reactor
    target/classes and fails to parse the descriptor.
    
    Same fix as the other SNAPSHOT build plugins in this job: install it
    before the main compile step and exclude its module from the reactor so
    Maven resolves it from the local repository. camel-jbang-core gets a
    dep-check profile that binds generate-doc-samples to phase=none - the
    generated eip-samples.json is pre-committed, so skipping regeneration is
    safe.
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    Claude-Session: https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj
---
 .github/workflows/dep-check.yml          | 11 ++++++++++-
 dsl/camel-jbang/camel-jbang-core/pom.xml | 20 ++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/dep-check.yml b/.github/workflows/dep-check.yml
index ac52fbeaf68f..153c6c5bcb2c 100644
--- a/.github/workflows/dep-check.yml
+++ b/.github/workflows/dep-check.yml
@@ -74,6 +74,7 @@ jobs:
         
!components/camel-debezium/camel-debezium-common/camel-debezium-maven-plugin,
         !tooling/maven/sync-properties-maven-plugin,
         !dsl/camel-yaml-dsl/camel-yaml-dsl-maven-plugin,
+        !dsl/camel-yaml-dsl/camel-yaml-dsl-validator-maven-plugin,
         !dsl/camel-endpointdsl-support
     steps:
       - name: Checkout
@@ -117,8 +118,11 @@ jobs:
           # sync-properties-maven-plugin is a SNAPSHOT reactor artifact used 
by camel-dependencies
           # at generate-resources phase. Same root cause as 
camel-debezium-maven-plugin — installed
           # here and excluded via EXCLUDED_MODULES so Maven uses the .m2 
version.
+          # camel-yaml-dsl-validator-maven-plugin is a SNAPSHOT reactor 
artifact used as a build
+          # plugin by camel-jbang-core at generate-resources phase. Same root 
cause — installed here
+          # and excluded via EXCLUDED_MODULES so Maven uses the .m2 version.
           mvn install \
-            -pl 
tooling/maven/camel-package-maven-plugin,tooling/maven/camel-api-component-maven-plugin,components/camel-debezium/camel-debezium-common/camel-debezium-maven-plugin,tooling/maven/sync-properties-maven-plugin,dsl/camel-yaml-dsl/camel-yaml-dsl-maven-plugin
 \
+            -pl 
tooling/maven/camel-package-maven-plugin,tooling/maven/camel-api-component-maven-plugin,components/camel-debezium/camel-debezium-common/camel-debezium-maven-plugin,tooling/maven/sync-properties-maven-plugin,dsl/camel-yaml-dsl/camel-yaml-dsl-maven-plugin,dsl/camel-yaml-dsl/camel-yaml-dsl-validator-maven-plugin
 \
             --also-make \
             -DskipTests -Dlicense.skip -Dquickly \
             --no-transfer-progress --batch-mode -q
@@ -271,6 +275,11 @@ jobs:
           # the camel-yaml-dsl-maven-plugin executions to phase=none (the 
mojos read jandex.idx,
           # which is not available in a clean CI checkout). The generated 
sources/resources are
           # pre-committed, so skipping regeneration is safe.
+          # camel-yaml-dsl-validator-maven-plugin is excluded for the same 
reason: it is a SNAPSHOT
+          # reactor plugin used by camel-jbang-core at generate-resources 
phase. Pre-installing it
+          # and excluding it via EXCLUDED_MODULES lets Maven use the .m2 
version.
+          # camel-jbang-core has a dep-check profile that binds its 
generate-doc-samples execution
+          # to phase=none. The generated eip-samples.json is pre-committed, so 
skipping it is safe.
           # camel-endpointdsl: its main build disables default-compile 
(phase:none); there is no
           # dep-check profile to re-enable it (unlike 
camel-endpointdsl-support). This means the
           # compile step is a no-op for this module (same as 
camel-componentdsl). The reason we
diff --git a/dsl/camel-jbang/camel-jbang-core/pom.xml 
b/dsl/camel-jbang/camel-jbang-core/pom.xml
index 02aaa66bb0dd..dfd10995e098 100644
--- a/dsl/camel-jbang/camel-jbang-core/pom.xml
+++ b/dsl/camel-jbang/camel-jbang-core/pom.xml
@@ -334,6 +334,26 @@
     </build>
 
     <profiles>
+
+        <profile>
+            <!-- the dependency analysis CI job compiles without regenerating: 
the plugin comes from
+                 the local repository and eip-samples.json is pre-committed 
(see .github/workflows/dep-check.yml) -->
+            <id>dep-check</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.camel</groupId>
+                        
<artifactId>camel-yaml-dsl-validator-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>generate-doc-samples</id>
+                                <phase>none</phase>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
         <profile>
             <id>sync-example-catalog</id>
             <build>

Reply via email to