You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Petr Kuzel (Jira)" <ji...@apache.org> on 2023/05/22 15:21:00 UTC
[jira] [Created] (CAMEL-19379) EndpointSchemaGeneratorMojo: Improve "Could not find component java type" error message
Petr Kuzel created CAMEL-19379:
----------------------------------
Summary: EndpointSchemaGeneratorMojo: Improve "Could not find component java type" error message
Key: CAMEL-19379
URL: https://issues.apache.org/jira/browse/CAMEL-19379
Project: Camel
Issue Type: Improvement
Components: build system, camel-core
Affects Versions: 3.20.4
Environment: Windows
Reporter: Petr Kuzel
As a newcomer, trying to develop a Camel component, my maven build failed with:
{{Error generating data org.apache.maven.plugin.MojoFailureException: Unable to create mojo [m: Could not find component java type}}
I had to ask dev mailing list because the error message puzzled me.
Proposing to improve error message to something alike:
{{throw new IllegalStateException("Could not find @Component(\"" + scheme + "\") annotated class.");}}
Maven stack trace in debug mode reveals the method:
{{{}...{}}}{{{}[1mCaused by[m: org.apache.maven.plugin.MojoFailureException: [1;31mError generating data org.apache.maven.plugin.MojoFailureException: Unable to create mojo[m{}}}{{{}...{}}}{{{}[1mCaused by[m: org.apache.maven.plugin.MojoFailureException: [1;31mUnable to create mojo[m{}}}{{{}...{}}}{{{}[1mCaused by[m: java.lang.IllegalStateException: [1;31mCould not find component java type[m{}}}{{ [1mat[m org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo.{*}findComponentProperties{*} ([1mEndpointSchemaGeneratorMojo.java:872[m)}}{{ [1mat[m org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo.writeJSonSchemeAndPropertyConfigurer ([1mEndpointSchemaGeneratorMojo.java:257[m)}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)