[
https://issues.apache.org/jira/browse/CAMEL-17203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17446411#comment-17446411
]
Claus Ibsen commented on CAMEL-17203:
-------------------------------------
Can you put together your custom component code and attach as .zip or put on
github somewhere. We need an easy way to reproduce and look into this, before
we will help more.
> camel-ftp - Extending camel-ftp as custom component problem with generating
> metadata via tooling
> ------------------------------------------------------------------------------------------------
>
> Key: CAMEL-17203
> URL: https://issues.apache.org/jira/browse/CAMEL-17203
> Project: Camel
> Issue Type: Bug
> Components: tooling
> Affects Versions: 3.11.3
> Reporter: Andre Weickel
> Priority: Minor
>
> We have a custom component that extends the Camel ftp component but when we
> build our project not all resources are generated. The files in folder
> src/generated/resources/META-INF/services/org/apache/camel/configurer are
> available but folder
> src/generated/resources/META-INF/services/org/apache/camel/component/* is
> missing.
> Therefore we removed the generated folder in org.apache.camel.camel-ftp and
> build the project to see if the folder is generated but then we get the
> following error:
>
> Failed to execute goal
> org.apache.camel:camel-package-maven-plugin:3.11.3:generate (generate) on
> project camel-ftp: Error generating data
> {+}org.apache.maven.plugin.MojoExecutionException{+}: Error loading other
> model. Reason: {+}java.lang.IllegalArgumentException{+}: FirstVersion is not
> specified. This can be done in @UriEndpoint or in pom.xml file.
>
> It seems to be a bug because firstVersion is actually maintained in
> @UriEndpoint of FtpEndpoint, FtpsEndpoint and SftpEndpoint. When I maintain
> an additional firstVersion in the pom.xml file then the build is successful
> but folder and files of
> src/generated/resources/META-INF/services/org/apache/camel/component/* are
> also not generated for project org.apache.camel.camel-ftp.
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)