Build with different supported versions of Spark, by default using Spark 2.2.1 to build
mvn -DskipTests -Pspark-2.1 -Dspark.version=2.1.0 clean package mvn -DskipTests -Pspark-2.2 -Dspark.version=2.2.1 clean package
Note: If you are working in Windows environment, remember to add -Pwindows
while building the project.
Note:Need install Apache Thrift 0.9.3
mvn clean -DskipTests -Pbuild-with-format -Pspark-2.2 package