You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/04/11 16:41:13 UTC
[jira] [Created] (SPARK-6861) Scalastyle config prevents building
Maven child modules alone
Sean Owen created SPARK-6861:
--------------------------------
Summary: Scalastyle config prevents building Maven child modules alone
Key: SPARK-6861
URL: https://issues.apache.org/jira/browse/SPARK-6861
Project: Spark
Issue Type: Bug
Components: Build
Affects Versions: 1.3.1
Reporter: Sean Owen
Assignee: Sean Owen
Priority: Minor
This doesn't work because scalastyle fails to run: {{cd core; mvn package}} It's something that might reasonably be expected to work, and does, except for scalastyle.
scalastyle fails because its config file is declared to be at {{scalastyle-config.xml}}, but this is where it is relative to the project root (parent) only. The fix is to prefix with {{ ${project.parent.basedir} }}
And while I'm at it:
It's a little funny that {{scalastyle-config.xml}} is at the top level of the project. It should probably live in {{dev/}} with other style-related resources. This requires updating the SBT config too.
The current config writes output in {{scalastyle-output.xml}}, but, this means it ends up in the root directory of every module, where it's not cleaned up. It should go in {{target/}}.
Regarding SPARK-4066, I also note that the config forces scalastyle checks to run in the {{package}} phase, when its default is the later {{verify}} phase. The complaint there was that running something like {{package}} during development with outstanding style problems fails the build. Just letting it default to {{verify}} would push back execution of scalastyle to cases where, say, {{install}} was run (or it was triggered manually).
We can update Scalastyle to 0.7.0, to match the SBT build that actually runs these checks for real.
CC [~rahulsinghal.iitd]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org