Output path is shared between the same module error

项目github地址:bitcarmanlee easy-algorithm-interview-and-practice
欢迎大家star,留言,一起学习进步

在 IntelliJ IDEA中想编译运行某个scala文件的时候,IDE报了以下的错误:

Error scalac: Output path .../eval/target/test-classes is shared between: Module 'eval' tests, Module 'eval' tests
      Output path .../eval/target/classes is shared between: Module 'eval' production, Module 'eval' production
      Please configure separate output paths to proceed with the compilation.

报错已经写得很清楚了,就是编译的时候某些test的输出路径相同,导致不能正常运行!
错误很明显,解决的方法也很简单,动动鼠标就OK:

Step1:synchronize both modules。右键冲突的项目,然后选择Synchronize进行同步。 (right click > Synchronize)
Step2:re-import pom.xml for both modules。右键冲突的项目,选择Maven选项然后选择Reimport重新将项目打入,等import完毕,大功告成! (right click > Maven > Re Import)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值