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

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

this is specifc when the Maven gav is not provided. The file is correct when 
the --gav parameter is provided

> 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)

Reply via email to