2015-04-03 48 views
1

在根目錄下建立星火1.3.0後,不管什麼命令建立examples目錄:星火1.3.0:建築實例:未能執行目標org.scalastyle

mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 -DskipTests clean package 

或者只是:

mvn -DskipTest clean package 

我得到:

[錯誤]未能執行目標org.scalastyle:scalastyle - Maven的插件:0.4.0:檢查(缺省)項目火花examples_2.10:在W¯¯失敗:無法找到confi [位於scalastyle-config.xml中的guration文件] - > [Help 1] [ERROR]

回答

3

scalastyle-config.xml複製到父文件夾中的examples文件夾應解決問題。

<plugin> 
    <groupId>org.scalastyle</groupId> 
    <artifactId>scalastyle-maven-plugin</artifactId> 
... 
    <configLocation>scalastyle-config.xml</configLocation> 

pom.xml配置預計在目錄行家的配置文件是從調用。

+0

這有點奇怪,因爲這個插件上不存在/ examples的pom.xml文件,也許它已經在主pom.xml中了?無論如何,將該文件複製到示例文件夾可以解決問題。 – aironman 2015-09-15 15:20:31

3

複製[spark_root] /scalastyle-config.xml[spark_root] /examples/scalastyle-config.xml可以解決問題

相關問題