编译 spark-jobserver 时出错
Error while compiling spark-jobserver
在 IntelliJ IDEA 中刷新我的 SBT 项目时,我遇到了以下错误:
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>
我正在尝试编译 spark-jobserver 代码(spark-2.0-preview 分支):https://github.com/spark-jobserver/spark-jobserver/tree/spark-2.0-preview
我设法通过在 transitiveClassifiers 列表中传递 "sources" 分类器来解决问题:
transitiveClassifiers in Global := Seq("sources")
之前 build.sbt 文件中的列表是空的:
transitiveClassifiers in Global := Seq()
在 IntelliJ IDEA 中刷新我的 SBT 项目时,我遇到了以下错误:
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>
我正在尝试编译 spark-jobserver 代码(spark-2.0-preview 分支):https://github.com/spark-jobserver/spark-jobserver/tree/spark-2.0-preview
我设法通过在 transitiveClassifiers 列表中传递 "sources" 分类器来解决问题:
transitiveClassifiers in Global := Seq("sources")
之前 build.sbt 文件中的列表是空的:
transitiveClassifiers in Global := Seq()