使用带有 Scala 插件的 Intellij IDEA。
执行Build
->时Rebuild Project
,我收到以下 make 警告:
Output path ProjectRootFolder\project\target\idea-test-classes intersects with a source root. Only files that were created by build will be cleaned.
Output path ProjectRootFolder\project\target\idea-classes intersects with a source root. Only files that were created by build will be cleaned.
该项目是使用 SBT gen-idea 插件生成的。
Project Structure
警告中提到的两个输出路径设置为-> Modules
-> ProjectName-build
-> Paths
->下项目的构建模块的输出路径和测试输出路径Use module compile output path
。
查看ProjectName
模块和ProjectName-build
模块的 Sources 选项卡,我发现没有ProjectRootFolder\project\target
标记为Source
.