2017-05-09 90 views
1

雖然提神的IntelliJ IDEA的我SBT項目,我面臨着以下錯誤:錯誤而編譯火花jobserver

Error:Error while importing SBT project:<br/>...<br/><pre>[warn] Credentials file C:\Users\usr\.bintray\.credentials does not exist 
[warn] Credentials file C:\Users\usr\.bintray\.credentials does not exist 
[warn] Credentials file C:\Users\usr\.bintray\.credentials does not exist 
[warn] Credentials file C:\Users\usr\.bintray\.credentials does not exist 
[trace] Stack trace suppressed: run 'last job-server-api/*:updateClassifiers' for the full output. 
[trace] Stack trace suppressed: run 'last akka-app/*:updateClassifiers' for the full output. 
[trace] Stack trace suppressed: run 'last job-server-extras/*:updateClassifiers' for the full output. 
[trace] Stack trace suppressed: run 'last job-server/*:updateClassifiers' for the full output. 
[trace] Stack trace suppressed: run 'last job-server-python/*:updateClassifiers' for the full output. 
[trace] Stack trace suppressed: run 'last root/*:updateClassifiers' for the full output. 
[trace] Stack trace suppressed: run 'last job-server-tests/*:updateClassifiers' for the full output. 
[error] (job-server-api/*:updateClassifiers) java.lang.AssertionError: assertion failed: classifiers cannot be empty 
[error] (akka-app/*:updateClassifiers) java.lang.AssertionError: assertion failed: classifiers cannot be empty 
[error] (job-server-extras/*:updateClassifiers) java.lang.AssertionError: assertion failed: classifiers cannot be empty 
[error] (job-server/*:updateClassifiers) java.lang.AssertionError: assertion failed: classifiers cannot be empty 
[error] (job-server-python/*:updateClassifiers) java.lang.AssertionError: assertion failed: classifiers cannot be empty 
[error] (root/*:updateClassifiers) java.lang.AssertionError: assertion failed: classifiers cannot be empty 
[error] (job-server-tests/*:updateClassifiers) java.lang.AssertionError: assertion failed: classifiers cannot be empty 
[error] Total time: 2 s, completed May 9, 2017 8:01:21 PM 
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0</pre><br/>See complete log in <a href="file:/C:/Users/usr/.IntelliJIdea2017.1/system/log/sbt.last.log">file:/C:/Users/usr/.IntelliJIdea2017.1/system/log/sbt.last.log</a> 

我試圖編譯火花jobserver代碼(火花2.0預覽分支): https://github.com/spark-jobserver/spark-jobserver/tree/spark-2.0-preview

+0

這看起來很簡單,但是,你是否嘗試過直接從命令行'sbt clean compile'? – matthieusb

+0

我已經試過了,我可以從命令行成功編譯。但是,這並不能解決IntelliJ IDEA中的編譯錯誤。 –

+0

你有沒有正確地配置您的SBT項目,在這個環節上自動導入一樣:看到這個鏈接](https://www.jetbrains.com/help/idea/2017.1/getting-started-with-sbt.html#add_refresh_dependencies) – matthieusb

回答

0

我設法使「源」分類中transitiveClassifiers列表來解決該問題:

transitiveClassifiers in Global := Seq("sources") 

此前的名單是在build.sbt文件空:

transitiveClassifiers in Global := Seq()