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/09 14:51:00 UTC

[jira] [Commented] (CAMEL-22228) Camel jbang export for SpringBoot and Main generates invalid CamelApplication.java file when gav is not specified and use of `.` as target to export

    [ https://issues.apache.org/jira/browse/CAMEL-22228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18004182#comment-18004182 ] 

Aurélien Pupier commented on CAMEL-22228:
-----------------------------------------

jbang -Dcamel.jbang.version=4.12.0 camel@apache/camel export --runtime spring-boot --dir /home/apupier/ws/demo/export-springboot-2 demo.camel.yaml

and

jbang -Dcamel.jbang.version=4.12.0 camel@apache/camel export --runtime spring-boot --dir /home/apupier/ws/demo/export-springboot-2 *

are working fine

> Camel jbang export for SpringBoot and Main generates invalid CamelApplication.java file when gav is not specified and use of `.` as target to export
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 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: Minor
>
> 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)