Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-1520

Kogito Quarkus Archetype uses incorrect maven compiler settings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.9.0
    • 0.8.0
    • Core Engine
    • None

      The Kogito Quarkus Archetype has the Maven Compiler Source and Target set to `1.11`. This is an incorrect version number. The correct number for Java 11 is `11`.

      Strangely enought, the project compiles and starts in Quarkus dev-mode, but gives errors on hot-reload.

      java.lang.IllegalArgumentException: error: invalid source release: 1.11
      	at jdk.compiler/com.sun.tools.javac.main.Arguments.error(Arguments.java:907)
      	at jdk.compiler/com.sun.tools.javac.main.Arguments.doProcessArgs(Arguments.java:383)
      	at jdk.compiler/com.sun.tools.javac.main.Arguments.processArgs(Arguments.java:347)
      	at jdk.compiler/com.sun.tools.javac.main.Arguments.init(Arguments.java:246)
      	at jdk.compiler/com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:185)
      	at jdk.compiler/com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:119)
      	at jdk.compiler/com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:68)
      	at io.quarkus.dev.JavaCompilationProvider.compile(JavaCompilationProvider.java:56)
      	at org.kie.kogito.quarkus.deployment.KogitoCompilationProvider.compile(KogitoCompilationProvider.java:63)
      	at io.quarkus.dev.ClassLoaderCompiler.compile(ClassLoaderCompiler.java:174)
      	at io.quarkus.dev.RuntimeUpdatesProcessor.checkForChangedClasses(RuntimeUpdatesProcessor.java:194)
      	at io.quarkus.dev.RuntimeUpdatesProcessor.doScan(RuntimeUpdatesProcessor.java:125)
      	at io.quarkus.vertx.http.runtime.devmode.VertxHotReplacementSetup$1.handle(VertxHotReplacementSetup.java:50)
      	at io.quarkus.vertx.http.runtime.devmode.VertxHotReplacementSetup$1.handle(VertxHotReplacementSetup.java:42)
      	at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$2(ContextImpl.java:316)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      

            rhn-gps-ddoyle Duncan Doyle (Inactive)
            rhn-gps-ddoyle Duncan Doyle (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: