Hi Camel devs, While trying to develop a new Camel component I’d need an advise, again, on the generate.
#1 The generate generates a code under src/generated/. Should it be committed to Git and why, please? I have seen it committed for other components but I do not understand why. I have also observed the generated code is not updated (e.g. after retyping endpoint URI params) unless I manually delete previously generated configurers (mvn clean is not enough). #2 I face: generate_[m _[1m(generate)_[m on project _[36mcamel-azure-files_[m: _[1;31mError 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. my endpoint code reads: @UriEndpoint(firstVersion = "3.21.0", ... public class FilesEndpoint<T extends ShareFileItem> extends RemoteFileEndpoint<ShareFileItem> { Maven debug reports more details: [1mCaused by[m: java.lang.IllegalArgumentException: [1;31mFirstVersion is not specified. This can be done in @UriEndpoint or in pom.xml file.[m [1mat[m org.apache.camel.maven.packaging.SupportLevelHelper.defaultSupportLevel ([1mSupportLevelHelper.java:30[m) [1mat[m org.apache.camel.maven.packaging.PackageOtherMojo.prepareOthers ([1mPackageOtherMojo.java:132[m) [1mat[m org.apache.camel.maven.packaging.PrepareComponentMojo.execute ([1mPrepareComponentMojo.java:152[m) [1mat[m org.apache.camel.maven.packaging.AbstractGeneratorMojo.execute ([1mAbstractGeneratorMojo.java:98[m) [1mat[m org.apache.camel.maven.packaging.PrepareComponentMojo.execute ([1mPrepareComponentMojo.java:122[m) [1mat[m org.apache.camel.maven.packaging.AbstractGenerateMojo.invoke ([1mAbstractGenerateMojo.java:96[m) [1mat[m org.apache.camel.maven.packaging.AbstractGenerateMojo.invoke ([1mAbstractGenerateMojo.java:75[m) [1mat[m org.apache.camel.maven.packaging.GenerateMojo.doExecute ([1mGenerateMojo.java:54[m) [1mat[m org.apache.camel.maven.packaging.AbstractGenerateMojo.execute ([1mAbstractGenerateMojo.java:64[m) [1mat[m org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo ([1mDefaultBuildPluginManager.java:137[m) The error message does not help me to identify what "other" class it found and fails to process. Any clues, please? Regards Cc. -- Mr. Petr Kužel, Software Engineer Eurofins International Support Services s.à r.l. Val Fleuri 23 L-1526 LUXEMBOURG