2015-09-07 109 views
0

問題很簡單。我有一些SBT項目有一些依賴和現有的來源。我想改變一些需要更新源代碼的依賴項。在更新SBT文件中的依賴項後,需要在IntelliJ中刷新項目以加載新的依賴關係集。但是,它無法刷新,因爲插件想要在導入過程中編譯源代碼,這顯然會導致編譯錯誤(需要爲新的依賴項更新源代碼)。如何將SBT項目導入IntelliJ Idea如果源被破壞?

SBT插件是否正常行爲編譯整個項目導入或它是我的SBT項目中的錯誤?

(IntelliJ IDEA的CE 15.0 EAP,最多最新的Scala插件的版本)

回答

0

看來,這個問題是在這條線:

managedClasspath in IntegrationTest <<= Classpaths.concat(managedClasspath in IntegrationTest, exportedProducts in Test) 

據尼古拉Obedin提供的提示在SCL tracker中,我設法通過將上述行更改爲:

(internalDependencyClasspath in IntegrationTest) <<= Classpaths.concat(internalDependencyClasspath in IntegrationTest, exportedProducts in Test) 
相關問題