IntelliJ: Working on multiple projects

前端 未结 19 2033
抹茶落季
抹茶落季 2020-11-27 09:18

We build in maven multiple projects (let\'s name them A,B,C). Project A uses .jar of project B which uses .jar of project C.

I am modifying codes of all A/B/C projec

19条回答
  •  眼角桃花
    2020-11-27 09:26

    Prequisite

    Having all the related projects in the same root directory.

    Steps

    1) First you create a new Empty project


    2) Then you select the root directory of all you projects.

    This will create a empty project, with a .idea directory that will simply remember the module organisation we are about to do in the next step


    3) Then, in the next window, you import the different projects as modules


    4) In the next window, to import each project, simply double click on the build.gradle, or pom.xml

    The project will be imported as a new module.


    5) Done, you now have all your projects as modules, opened on the same IntelliJ project

提交回复
热议问题