[
https://issues.apache.org/jira/browse/CAMEL-17203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-17203.
---------------------------------
Resolution: Later
No response from reporter
> 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: Task
> 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.10#820010)