Reputation: 2135
After building Spark 1.3.0 in the root directory, no matter what command to build examples
directory:
mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 -DskipTests clean package
or just:
mvn -DskipTest clean package
I get:
[ERROR] Failed to execute goal org.scalastyle:scalastyle-maven-plugin:0.4.0:check (default) on project spark-examples_2.10: Failed during w: Unable to find configuration file at location scalastyle-config.xml -> [Help 1] [ERROR]
Upvotes: 2
Views: 5811
Reputation: 2230
copy the [spark_root]/scalastyle-config.xml to [spark_root]/examples/scalastyle-config.xml can solve the problem
Upvotes: 6
Reputation: 232
Copying scalastyle-config.xml
into the examples
folder from parent folder should solve the issue.
<plugin>
<groupId>org.scalastyle</groupId>
<artifactId>scalastyle-maven-plugin</artifactId>
...
<configLocation>scalastyle-config.xml</configLocation>
The configuration in pom.xml
expects the configuration file in the directory maven is invoked from.
Upvotes: 4