I try to open the Maven project in IntelliJ IDEA. This project uses spark and scala. When I run:
mvn clean install -DskipTests
it gives the error:
[ERROR] Failed to execute goal org.scalastyle:scalastyle-maven-plugin:0.7.0:check (default) on project spark-mllib_2.10: Failed during scalastyle execution: You have 50 Scalastyle violation(s)
I think that the problem is in the version of Maven. Indeed, in IntelliJ IDEA Settings, I have the version Bundled (Maven 3) 3.0.5, while pom.xml defines <maven.version>3.3.3</maven.version>
If I run mvn -version
in terminal, it points Maven 3.3.3
So, how can I update the version of Maven used by IntelliJ IDEA?
Maven home directory
setting so it points to the installation folder of the desired version