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 90b564e74036 CAMEL-22550: [build] Generated class is missing @Generated
90b564e74036 is described below

commit 90b564e7403647c4595512033f67eb88a1cbb5dc
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Dec 25 12:03:26 2025 +0100

    CAMEL-22550: [build] Generated class is missing @Generated
---
 .../camel/maven/packaging/SanityCheckGeneratedClassesMojo.java       | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SanityCheckGeneratedClassesMojo.java
 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SanityCheckGeneratedClassesMojo.java
index b1fc439fa4de..58292cd93bb0 100644
--- 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SanityCheckGeneratedClassesMojo.java
+++ 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SanityCheckGeneratedClassesMojo.java
@@ -39,6 +39,11 @@ public class SanityCheckGeneratedClassesMojo extends 
AbstractGeneratorMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
+        // skip camel-api
+        if ("camel-api".equals(project.getArtifactId())) {
+            return;
+        }
+
         Path generated = 
project.getBasedir().toPath().resolve("src/generated/java");
         if (Files.isDirectory(generated)) {
             try (Stream<Path> stream = Files.walk(generated)) {

Reply via email to