You can find that spark.version will be 1.6.2 for the spark-1.6 profile in carbondata-parent pom.xml file
So if your spark version is not 1.6.2, I think you can provide more parameter(-Dspark.version=<your spark version>) to mvn command.
e.g.
If spark.version is 1.6.0, like the following.
-Dspark.version=1.6.0
Best regards
David Cai
Best Regards
David Cai