This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-3.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.x by this push: new 4d7ed752d57 CAMEL-19379: Better error message for maven plugin for component generation. 4d7ed752d57 is described below commit 4d7ed752d57045cdc95a89e0453d7fa2c09af1ad 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 de85e02121c..469be89e2f6 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 @@ -866,10 +866,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