Aurélien Pupier created CAMEL-22228:
---------------------------------------

             Summary: Camel jbang export for SpringBoot genrates invalid 
CamelApplication.java file
                 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


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