Output path is shared between the same module error

后端 未结 13 2153
天涯浪人
天涯浪人 2021-02-01 13:16

When I try to compile any class in my project I get the error below:

Error scala: Output path .../eval/target/test-classes is shared between: Module \'eval\' tes         


        
13条回答
  •  滥情空心
    2021-02-01 13:19

    I had 2 differently named versions of the same module and needed to delete one to avoid this clash. This is what worked for me:

    In IntelliJ IDEA go to File -> Project Structure -> Modules -> Your Project -> Paths

    Ensure each Modules "Output path" and "Test output path" locations are unique across all your modules. If you have more than one module with the same paths, you can specify unique paths for every module or as in my case, delete the module that you do not require as it was a duplicate of an existing module

提交回复
热议问题