Thank you for the answer. So basically it is not recommended to install Spark to your local maven repository? I thought if they wanted to enforce scalastyle for better open source contributions, they would have fixed all the scalastyle warnings.
On a side note, my posts on Nabble never got accepted by the mailing list for some reason (I am subscribed to the mail list), and your reply does not show as a reply to my question on Nabble probably for the same reason. Sorry for the late reply but is using email the only way to communicate on the mail list? I got another reply to this question through email but the two replies are not even in the same "email conversation". On Wed, May 17, 2017 at 8:48 PM, Marcelo Vanzin <van...@cloudera.com> wrote: > scalastyle runs on the "verify" phase, which is after package but > before install. > > On Wed, May 17, 2017 at 5:47 PM, yiskylee <yisky...@gmail.com> wrote: > > ./build/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -DskipTests clean > > package > > works, but > > ./build/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -DskipTests clean > > install > > triggers scalastyle violation error. > > > > Is the scalastyle check not used on package but only on install? To > install, > > should I turn off "failOnViolation" in the pom? > > > > > > > > -- > > View this message in context: http://apache-spark-user-list. > 1001560.n3.nabble.com/scalastyle-violation-on-mvn-install-but-not-on-mvn- > package-tp28693.html > > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe e-mail: user-unsubscr...@spark.apache.org > > > > > > -- > Marcelo > -- Sincerely Xiangyu Li <yisky...@gmail.com>