Currently external Scala compiler prohibits output path sharing

来源:互联网 发布:淘宝重复开店不查了 编辑:程序博客网 时间:2024/06/05 00:08
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  选项去掉。



0 0
原创粉丝点击