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 a9fe6eb6c94 CAMEL-19379: Better error message for maven plugin for component generation. a9fe6eb6c94 is described below commit a9fe6eb6c94414bf67d29d817b887c68a860851a Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue May 23 07:16:09 2023 +0200 CAMEL-19379: Better error message for maven plugin for component generation. --- .../org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java index 39851d81687..926af5f4483 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java +++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java @@ -864,10 +864,10 @@ public class EndpointSchemaGeneratorMojo extends AbstractGeneratorMojo { model.setDeprecationNote(deprecationNote); model.setDeprecatedSince(project.getProperties().getProperty("deprecatedSince")); - // these information is not available at compile time and we enrich + // this information is not available at compile time, and we enrich // these later during the camel-package-maven-plugin if (model.getJavaType() == null) { - throw new IllegalStateException("Could not find component java type"); + throw new IllegalStateException("Could not find @Component(\"" + scheme + "\") annotated class."); } // favor to use endpoint class javadoc as description