I have already successfully compile and run spark examples. My problem is that if I make some modifications (e.g., on SparkPi.scala or LogQuery.scala) I have to use “mvn -DskipTests package” to rebuild the whole spark project and wait a relatively long time.
I also tried “mvn scala:cc” as described in http://spark.apache.org/docs/latest/building-with-maven.html, but I could only get infinite stop like:
[INFO] --- scala-maven-plugin:3.2.0:cc (default-cli) @ spark-parent ---
[INFO] wait for files to compile...
Is there any method to incrementally compile the examples using mvn? Thank you!