[
https://issues.apache.org/jira/browse/CAMEL-22228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-22228.
---------------------------------
Resolution: Fixed
> 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
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.14.0
>
>
> 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)