Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Later
-
3.11.3
-
None
-
None
-
Unknown
Description
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.