Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-11184 Add support for full FEEL 1.2 feature set
  3. CAM-11344

Promote maven version to ensure JDK compatibility with scala maven plugin

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • 7.13.0, 7.13.0-alpha2
    • None
    • None
    • None

      Problem
      With version scala-maven-plugin in version 3.2.1, building the dmn fails with the following exception

      [ERROR] error: error while loading Object, Missing dependency 'object scala.native in compiler mirror', required by /modules/java.base/java/lang/Object.class
      [ERROR] error: scala.reflect.internal.MissingRequirementError: object scala in compiler mirror not found.
      [ERROR] 	at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:24)
      [ERROR] 	at scala.reflect.internal.Mirrors$RootsBase.$anonfun$getModuleOrClass$6(Mirrors.scala:66)
      [ERROR] 	at scala.reflect.internal.Mirrors$RootsBase.getPackage(Mirrors.scala:66)
      [ERROR] 	at scala.reflect.internal.Definitions$DefinitionsClass.ScalaPackage$lzycompute(Definitions.scala:195)
      [ERROR] 	at scala.reflect.internal.Definitions$DefinitionsClass.ScalaPackage(Definitions.scala:195)
      [ERROR] 	at scala.reflect.internal.Definitions$DefinitionsClass.ScalaPackageClass$lzycompute(Definitions.scala:196)
      [ERROR] 	at scala.reflect.internal.Definitions$DefinitionsClass.ScalaPackageClass(Definitions.scala:196)
      [ERROR] 	at scala.reflect.internal.Definitions$DefinitionsClass.AnyClass$lzycompute(Definitions.scala:284)
      [ERROR] 	at scala.reflect.internal.Definitions$DefinitionsClass.AnyClass(Definitions.scala:284)
      [ERROR] 	at scala.tools.nsc.symtab.classfile.ClassfileParser$ClassTypeCompleter.complete(ClassfileParser.scala:1273)
      [ERROR] 	at scala.reflect.internal.Symbols$Symbol.completeInfo(Symbols.scala:1544)
      [ERROR] 	at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1517)
      [ERROR] 	at scala.reflect.internal.Symbols$Symbol.initialize(Symbols.scala:1691)
      [ERROR] 	at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1585)
      [ERROR] 	at scala.tools.nsc.Global$Run.<init>(Global.scala:1205)
      [ERROR] 	at scala.tools.nsc.Driver.doCompile(Driver.scala:47)
      [ERROR] 	at scala.tools.nsc.MainClass.doCompile(Main.scala:30)
      [ERROR] 	at scala.tools.nsc.Driver.process(Driver.scala:68)
      [ERROR] 	at scala.tools.nsc.Driver.main(Driver.scala:82)
      [ERROR] 	at scala.tools.nsc.Main.main(Main.scala)
      [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [ERROR] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [ERROR] 	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      [ERROR] 	at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
      [ERROR] 	at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)

      Solution

      • Update scala-maven-plugin to version 4.3.1
      • This version requires a Maven version >= 3.3.9 which is not available in our CI
      The plugin net.alchim31.maven:scala-maven-plugin:4.3.1 requires Maven version 3.3.9 -> [Help 1]
      

        This is the controller panel for Smart Panels app

              tassilo.weidner Tassilo Weidner
              tassilo.weidner Tassilo Weidner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: