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:

Caused by: java.lang.IllegalArgumentException: FirstVersion is 
not specified. This can be done in @UriEndpoint or in pom.xml file.
    at 
org.apache.camel.maven.packaging.SupportLevelHelper.defaultSupportLevel 
(SupportLevelHelper.java:30)
    at org.apache.camel.maven.packaging.PackageOtherMojo.prepareOthers 
(PackageOtherMojo.java:132)
    at org.apache.camel.maven.packaging.PrepareComponentMojo.execute 
(PrepareComponentMojo.java:152)
    at org.apache.camel.maven.packaging.AbstractGeneratorMojo.execute 
(AbstractGeneratorMojo.java:98)
    at org.apache.camel.maven.packaging.PrepareComponentMojo.execute 
(PrepareComponentMojo.java:122)
    at org.apache.camel.maven.packaging.AbstractGenerateMojo.invoke 
(AbstractGenerateMojo.java:96)
    at org.apache.camel.maven.packaging.AbstractGenerateMojo.invoke 
(AbstractGenerateMojo.java:75)
    at org.apache.camel.maven.packaging.GenerateMojo.doExecute 
(GenerateMojo.java:54)
    at org.apache.camel.maven.packaging.AbstractGenerateMojo.execute 
(AbstractGenerateMojo.java:64)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:137)

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

Reply via email to