Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-3371

App created with jbang can not be built

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.2.3.ER3, 3.2.6.CR1
    • team/eng
    • None
    • False
    • None
    • False
    • Hide
      quarkus create app app --stream=3.2 --jbang
      cd app
      quarkus build --verbose -- --repos local=file:///home/fedinskiy/code/quarkus/rhbq-3.2.3.ER3-repo
      
      Show
      quarkus create app app --stream=3.2 --jbang cd app quarkus build --verbose -- --repos local =file:///home/fedinskiy/code/quarkus/rhbq-3.2.3.ER3-repo
    • ---

      Application, created with the use of jbang, fails during build phase with non-descriptive error.

      The code of the generated app looks like this:

      //usr/bin/env jbang "$0" "$@" ; exit $?
      //JAVA 17
      //JAVAC_OPTIONS -parameters
      //DEPS com.redhat.quarkus.platform:quarkus-bom:3.2.3.Final-redhat-00004@pom
      //DEPS io.quarkus:quarkus-resteasy
      
      import io.quarkus.runtime.Quarkus;
      import jakarta.enterprise.context.ApplicationScoped;
      import jakarta.ws.rs.GET;
      import jakarta.ws.rs.Path;
      
      @Path("/hello-resteasy")
      @ApplicationScoped
      public class main {
      
          @GET
          public String sayHello() {
              return "Hello RESTEasy";
          }
      
          public static void main(String[] args) {
              Quarkus.run(args);
          }
      }
      

      During the build I receive this exception by jbang:

      [jbang] Post build with io.quarkus.launcher.JBangIntegration
      [jbang] Output: #1 - Issue running postBuild()
      [jbang] Deleting folder /home/fedinskiy/.jbang/cache/jars/main.java.e79bf2e5e30bcf33f61269b23115064a0242761a597fa9eaebf0a87da41f2dce.tmp
      [jbang] [ERROR] Issue running postBuild()
      dev.jbang.cli.ExitException: Issue running postBuild()
      	at dev.jbang.spi.IntegrationManager.runIntegrations(IntegrationManager.java:104)
      	at dev.jbang.source.buildsteps.IntegrationBuildStep.build(IntegrationBuildStep.java:59)
      	at dev.jbang.source.buildsteps.IntegrationBuildStep.build(IntegrationBuildStep.java:36)
      	at dev.jbang.source.AppBuilder.build(AppBuilder.java:83)
      	at dev.jbang.source.AppBuilder.build(AppBuilder.java:21)
      	at dev.jbang.cli.Build.doCall(Build.java:17)
      	at dev.jbang.cli.BaseCommand.call(BaseCommand.java:136)
      	at dev.jbang.cli.BaseCommand.call(BaseCommand.java:20)
      	at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
      	at picocli.CommandLine.access$1300(CommandLine.java:145)
      	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
      	at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
      	at dev.jbang.cli.JBang$3.handle(JBang.java:147)
      	at dev.jbang.cli.JBang$3.handle(JBang.java:142)
      	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
      	at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
      	at picocli.CommandLine.execute(CommandLine.java:2078)
      	at dev.jbang.Main.main(Main.java:14)
      Caused by: dev.jbang.cli.ExitException: External post exited with error: Issue running postBuild()
      	at dev.jbang.spi.IntegrationManager.runIntegrationExternal(IntegrationManager.java:250)
      	at dev.jbang.spi.IntegrationManager.runIntegrations(IntegrationManager.java:93)
      	... 17 more
      

      This works, if io.quarkus.platform:quarkus-bom:3.2.3.Final@pom used instead

              paul.robinson@redhat.com Paul Robinson
              rhn-support-fdudinsk Fedor Dudinskii
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: