Setting up Spark on IntelliJ with Maven

In a previous post, I talked about how to set up IntelliJ for Spark development using sbt. There is an alternative way to accomplish this using Maven. Simply add Maven to your IntelliJ project and add this snippet to your pom.xml:

<dependencies>
    <dependency>
        <groupId>org.apache.spark</groupId>
        <artifactId>spark-core_2.10</artifactId>
        <version>0.9.0-incubating</version>
    </dependency>
</dependencies>

Now you can start referencing Spark from within your project.