[
https://issues.apache.org/jira/browse/CAMEL-19379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-19379.
---------------------------------
Fix Version/s: 3.21.0
4.0-RC1
4.0
Resolution: Fixed
> 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
> Priority: Minor
> Fix For: 3.21.0, 4.0-RC1, 4.0
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> 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)