项目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)