Sharing Java packages between modules in IntelliJ?

前端 未结 1 1557
我寻月下人不归
我寻月下人不归 2021-02-14 18:47

I\'m trying to figure out how can I share packages between two modules in a single IntelliJ project, and I can\'t seem to find the right way to do it. I know it can be done in E

相关标签:
1条回答
  • 2021-02-14 19:13

    You could move shared code into another module that has its own content root, say:

    /ProjectA/Module3/src
    

    and then add a module dependency on Module3 to both Module1 and Module2.

    0 讨论(0)
提交回复
热议问题