2014-09-23 81 views
0

我刚刚添加了一个子项目到我的SBT编译来编译宏。下面是我添加了project/Build.scala为什么IDEA会因多项目构建失败?

import sbt._ 

object DevaBuild extends Build { 
    lazy val deva = Project("deva", file(".")) dependsOn macros 
    lazy val macros = Project("macros", file("macros")) 
} 

它建立在命令行罚款,但IntelliJ IDEA的给了我这个错误:

Error:scala: Output path .../deva/project/target/idea-classes is shared between: Module 'deva-build' production, Module 'main-build' production 
Output path .../deva/project/target/idea-test-classes is shared between: Module 'deva-build' tests, Module 'main-build' tests 
Please configure separate output paths to proceed with the compilation. 
TIP: you can use Project Artifacts to combine compiled classes if needed. 
+0

你使用sbt-idea插件还是内部Intellij Sbt导入支持(intellij-sbt插件)? – dk14 2014-09-23 07:04:51

回答

2

您需要更改内部输出pathes项目结构/模块/ “module_name”/唯一值的路径。这是一个分析sbt-idea插件的bug的项目结构,也可能是intellij-sbt插件。