C:\work\jb3>camel version
Camel JBang version: 3.20.3

C:\work\jb3>jbang version
0.103.1


ચિરાગ/चिराग/Chirag
------------------------------------------
Sent from My Gmail Account

On Tue, Apr 11, 2023 at 1:39 PM Claus Ibsen <claus.ib...@gmail.com> wrote:
>
> Hi
>
> What Camel JBang version do you have?
>
> Old releases such as 3.14.x is not expected to work. The export and
> camel-jbang is starting to work better in 3.18 and 3.20 is where it works
> the best currently.
>
>
>
> On Tue, Apr 11, 2023 at 5:28 PM Chirag <chirag.sangh...@gmail.com> wrote:
>
> > C:\work\jb3>camel export --runtime=spring-boot
> > --directory=c:\work\jb3\myapp --gav=com.foo:acme:1.0-SNAPSHOT
> > --camel-spring-boot-version=3.14.0 --fresh
> > Generating fresh run data
> > Exporting as Spring Boot project to: c:\work\jb3\myapp
> > java.lang.NullPointerException: Cannot invoke
> > "org.apache.camel.tooling.model.ArtifactModel.getGroupId()" because
> > "am" is null
> >         at
> > org.apache.camel.catalog.DefaultCamelCatalog.matchArtifact(DefaultCamelCatalog.java:536)
> >         at
> > org.apache.camel.catalog.DefaultCamelCatalog.modelFromMavenGAV(DefaultCamelCatalog.java:495)
> >         at
> > org.apache.camel.dsl.jbang.core.commands.ExportSpringBoot.createMavenPom(ExportSpringBoot.java:231)
> >         at
> > org.apache.camel.dsl.jbang.core.commands.ExportSpringBoot.export(ExportSpringBoot.java:113)
> >         at
> > org.apache.camel.dsl.jbang.core.commands.Export.export(Export.java:114)
> >         at
> > org.apache.camel.dsl.jbang.core.commands.Export.export(Export.java:77)
> >         at
> > org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.doCall(ExportBaseCommand.java:172)
> >         at
> > org.apache.camel.dsl.jbang.core.commands.Export.doCall(Export.java:28)
> >         at
> > org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:70)
> >         at
> > org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:35)
> >         at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
> >         at picocli.CommandLine.access$1500(CommandLine.java:148)
> >         at
> > picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
> >         at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
> >         at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
> >         at
> > picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
> >         at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
> >         at picocli.CommandLine.execute(CommandLine.java:2170)
> >         at
> > org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:154)
> >         at main.CamelJBang.main(CamelJBang.java:36)
> >
> > Regards,
> >
> > ચિરાગ/चिराग/Chirag
> > ------------------------------------------
> > Sent from My Gmail Account
> >
>
>
> --
> Claus Ibsen
> -----------------
> @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to