Feel free to use my personal template for my Scala-Spark projects
Clone the repository (or follow this link), then open your IntelliJ IDEA, Import Projects
Select the root of your project, check Import project from external model | Maven
On the next window, check Import Maven projects automatically, and you should not have other problems
Maven archetype