You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aurélien Pupier (Jira)" <ji...@apache.org> on 2025/07/08 18:44:00 UTC

[jira] [Updated] (CAMEL-22228) Camel jbang export for SpringBoot and Main generates invalid CamelApplication.java file when gav is not specified

     [ https://issues.apache.org/jira/browse/CAMEL-22228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aurélien Pupier updated CAMEL-22228:
------------------------------------
    Summary: Camel jbang export for SpringBoot and Main generates invalid CamelApplication.java file when gav is not specified  (was: Camel jbang export for SpringBoot and Main generates invalid CamelApplication.java file)

> Camel jbang export for SpringBoot and Main generates invalid CamelApplication.java file when gav is not specified
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-22228
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22228
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 4.13.0
>            Reporter: Aurélien Pupier
>            Priority: Major
>
> jbang '-Dcamel.jbang.version=4.12.0' camel@apache/camel init 'demo.camel.yaml'
> jbang -Dcamel.jbang.version=4.12.0 camel@apache/camel export --runtime spring-boot --dir /home/apupier/ws/demo/export-springboot-2 .
> it genrates an invalid CamelApplication.java file, notice the double-dot on the first line:
> {noformat}
> package org.example.project..;
> import org.springframework.boot.SpringApplication;
> import org.springframework.boot.autoconfigure.SpringBootApplication;
> @SpringBootApplication
> public class CamelApplication {
>     public static void main(String[] args) {
>         SpringApplication.run(CamelApplication.class, args);
>     }
> }
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)