NoSuchMethodError: scala.Predef$.any2ArrowAssoc

Can you please see the below error ,when I am running the below program using below mvn config.

Exception in thread "main" java.lang.NoSuchMethodError: scala.Predef$.any2ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object;
at org.apache.spark.sql.SparkSession$Builder.config(SparkSession.scala:750)
at org.apache.spark.sql.SparkSession$Builder.appName(SparkSession.scala:741)
at com.MLTest.JavaPCAExample.main(JavaPCAExample.java:20)