[ https://issues.apache.org/jira/browse/CAMEL-20911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17859830#comment-17859830 ]
Christoph Deppisch commented on CAMEL-20911: -------------------------------------------- This seems to work with Camel 4.6.0 which uses Camel Quarkus 3.10.0. Camel 4.7.0 uses Camel Quarkus 3.11.0 which causes the error > Maven build failure for Camel JBang exported Quarkus app > -------------------------------------------------------- > > Key: CAMEL-20911 > URL: https://issues.apache.org/jira/browse/CAMEL-20911 > Project: Camel > Issue Type: Bug > Components: camel-jbang > Affects Versions: 4.7.0 > Reporter: Christoph Deppisch > Priority: Major > > When Camel JBang exports code to a Quarkus Maven application the resulting > build fails with: > {noformat} > SRCFG00014: The config property quarkus.camel.openapi.codegen.model-package > is required but it could not be found in any config source{noformat} > The code exported is Sample.java: > {noformat} > import org.apache.camel.builder.RouteBuilder; > public class Sample extends RouteBuilder { > @Override > public void configure() throws Exception { > from("timer:tick") > .log("Hello Camel!"); > } > }{noformat} > The Camel JBang command used to export: > {noformat} > camel export Sample.java --runtime=quarkus > --gav=org.apache.camel:sample:1.0-SNAPSHOT --dir sample{noformat} > Camel version: 4.7.0-SNAPSHOT > The Maven output when calling _mvn package_ on the generated export project: > {noformat} > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 2.909 s > [INFO] Finished at: 2024-06-25T09:03:20+02:00 > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > io.quarkus.platform:quarkus-maven-plugin:3.11.3:build (default) on project > sample: Failed to build quarkus application: SRCFG00014: The config property > quarkus.camel.openapi.codegen.model-package is required but it could not be > found in any config source -> [Help 1]{noformat} > Maven StackTrace: > {noformat} > Caused by: io.quarkus.runtime.configuration.ConfigurationException: > SRCFG00014: The config property quarkus.camel.openapi.codegen.model-package > is required but it could not be found in any config source > at > io.quarkus.deployment.configuration.BuildTimeConfigurationReader$ReadOperation.readConfigValue > (BuildTimeConfigurationReader.java:944) > at > io.quarkus.deployment.configuration.BuildTimeConfigurationReader$ReadOperation.readConfigGroup > (BuildTimeConfigurationReader.java:882) > at > io.quarkus.deployment.configuration.BuildTimeConfigurationReader$ReadOperation.readConfigGroup > (BuildTimeConfigurationReader.java:923) > at > io.quarkus.deployment.configuration.BuildTimeConfigurationReader$ReadOperation.run > (BuildTimeConfigurationReader.java:516) > at > io.quarkus.deployment.configuration.BuildTimeConfigurationReader.lambda$readConfiguration$0 > (BuildTimeConfigurationReader.java:424) > at io.smallrye.config.SecretKeys.doUnlocked (SecretKeys.java:28) > at > io.quarkus.deployment.configuration.BuildTimeConfigurationReader.readConfiguration > (BuildTimeConfigurationReader.java:424) > at io.quarkus.deployment.ExtensionLoader.loadStepsFrom > (ExtensionLoader.java:140) > at io.quarkus.deployment.QuarkusAugmentor.run (QuarkusAugmentor.java:107) > at io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment > (AugmentActionImpl.java:327) > at > io.quarkus.runner.bootstrap.AugmentActionImpl.createProductionApplication > (AugmentActionImpl.java:173) > at io.quarkus.maven.BuildMojo.doExecute (BuildMojo.java:133) > at io.quarkus.maven.QuarkusBootstrapMojo.execute > (QuarkusBootstrapMojo.java:171) > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo > (DefaultBuildPluginManager.java:126) > at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 > (MojoExecutor.java:328) > at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute > (MojoExecutor.java:316) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:212) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:174) > at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 > (MojoExecutor.java:75) > at org.apache.maven.lifecycle.internal.MojoExecutor$1.run > (MojoExecutor.java:162) > at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute > (DefaultMojosExecutionStrategy.java:39) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:159) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:105) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:73) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build > (SingleThreadedBuilder.java:53) > at org.apache.maven.lifecycle.internal.LifecycleStarter.execute > (LifecycleStarter.java:118) > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) > at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) > at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) > at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) > at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:77) > at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke (Method.java:568) > at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced > (Launcher.java:283) > at org.codehaus.plexus.classworlds.launcher.Launcher.launch > (Launcher.java:226) > at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode > (Launcher.java:407) > at org.codehaus.plexus.classworlds.launcher.Launcher.main > (Launcher.java:348) > Caused by: java.util.NoSuchElementException: SRCFG00014: The config property > quarkus.camel.openapi.codegen.model-package is required but it could not be > found in any config source > at io.smallrye.config.SmallRyeConfig.convertValue > (SmallRyeConfig.java:435) > at io.smallrye.config.SmallRyeConfig.getValue (SmallRyeConfig.java:380) > at > io.quarkus.deployment.configuration.BuildTimeConfigurationReader$ReadOperation.readConfigValue > (BuildTimeConfigurationReader.java:939) > at > io.quarkus.deployment.configuration.BuildTimeConfigurationReader$ReadOperation.readConfigGroup > (BuildTimeConfigurationReader.java:882) > at > io.quarkus.deployment.configuration.BuildTimeConfigurationReader$ReadOperation.readConfigGroup > (BuildTimeConfigurationReader.java:923) > at > io.quarkus.deployment.configuration.BuildTimeConfigurationReader$ReadOperation.run > (BuildTimeConfigurationReader.java:516) > at > io.quarkus.deployment.configuration.BuildTimeConfigurationReader.lambda$readConfiguration$0 > (BuildTimeConfigurationReader.java:424) > at io.smallrye.config.SecretKeys.doUnlocked (SecretKeys.java:28) > at > io.quarkus.deployment.configuration.BuildTimeConfigurationReader.readConfiguration > (BuildTimeConfigurationReader.java:424) > at io.quarkus.deployment.ExtensionLoader.loadStepsFrom > (ExtensionLoader.java:140) > at io.quarkus.deployment.QuarkusAugmentor.run (QuarkusAugmentor.java:107) > at io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment > (AugmentActionImpl.java:327) > at > io.quarkus.runner.bootstrap.AugmentActionImpl.createProductionApplication > (AugmentActionImpl.java:173) > at io.quarkus.maven.BuildMojo.doExecute (BuildMojo.java:133) > at io.quarkus.maven.QuarkusBootstrapMojo.execute > (QuarkusBootstrapMojo.java:171) > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo > (DefaultBuildPluginManager.java:126) > at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 > (MojoExecutor.java:328) > at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute > (MojoExecutor.java:316) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:212) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:174) > at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 > (MojoExecutor.java:75) > at org.apache.maven.lifecycle.internal.MojoExecutor$1.run > (MojoExecutor.java:162) > at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute > (DefaultMojosExecutionStrategy.java:39) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:159) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:105) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:73) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build > (SingleThreadedBuilder.java:53) > at org.apache.maven.lifecycle.internal.LifecycleStarter.execute > (LifecycleStarter.java:118) > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) > at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) > at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) > at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) > at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:77) > at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke (Method.java:568) > at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced > (Launcher.java:283) > at org.codehaus.plexus.classworlds.launcher.Launcher.launch > (Launcher.java:226) > at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode > (Launcher.java:407) > at org.codehaus.plexus.classworlds.launcher.Launcher.main > (Launcher.java:348){noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)