Currently external Scala compiler prohibits output path sharing

scala: Output path /Users/lizhitao/mt_wp/mafka/mafka-client/target/test-classes is shared between: Module 'mafka-client' tests, Module 'mafka-client' tests
Output path /Users/lizhitao/mt_wp/mafka/mafka-client/target/classes is shared between: Module 'mafka-client' production, Module 'mafka-client' production
Currently external Scala compiler prohibits output path sharing.
Either disable the external build mode or configure separate output paths.

TIP: you can use Project Artifacts to combine compiled classes.


今天用了一下gradle编译相关scala工程,结果很奇怪发现原有java工程运行不了了,当执行main方法时报如上错误。

解决方法如下:

IntelliJ IDEA preferences -> Compiler -> Use external build  选项去掉。

Currently external Scala compiler prohibits output path sharing_第1张图片


你可能感兴趣的:(Currently external Scala compiler prohibits output path sharing)