I am using plugin for compiling Spark jobs and after upgrade plugin from 4.5.6 to 4.6.0, I am getting fail with message:
'8' is not a valid choice for '-target'
[INFO] --- scala-maven-plugin:4.6.0:compile (scala-compile) @ spark-testing ---
[INFO] Using incremental compilation using Mixed compile order
[INFO] Compiler bridge file: /Users/ab017z5/.sbt/1.0/zinc/org.scala-sbt/org.scala-sbt-compiler-bridge_2.11-1.6.1-bin_2.11.12__52.0-1.6.1_20220117T214008.jar
[INFO] compiling 6 Scala sources to /Users/ab017z5/projects/metron_mule/spark-testing/target/classes ...
[ERROR] '8' is not a valid choice for '-target'
[ERROR] bad option: '-target:8'
I did some testing and when I remove maven.compiler.source and maven.compiler.target, compiling is OK, but I am unsure for the result.
Is there some configuration way how to change the configuration having maven.compiler set to 8 in place?
I am using plugin for compiling Spark jobs and after upgrade plugin from 4.5.6 to 4.6.0, I am getting fail with message:
'8' is not a valid choice for '-target'
Settings I use and I found it has some impact:
When I run
mvn clean package
I got error:I did some testing and when I remove
maven.compiler.source
andmaven.compiler.target
, compiling is OK, but I am unsure for the result.Is there some configuration way how to change the configuration having maven.compiler set to 8 in place?