IntelliJ: Working on multiple projects

前端 未结 19 2076
抹茶落季
抹茶落季 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:32

    For people not using maven to build and wanting to add a new project (I am using intellij 14.1.3):

    1. Right click the top level folder in the project view, select new -> Module
    2. Name the module the same name as the project to be added
    3. From the top menu select File->New->Project. Enter the same name as the new module, same folder locations as well.
    4. Open the Project, and wait for intellij to create the project structure.
    5. Close this new project, and open the original project the module was added to in step 2

    Depending on your builder, additional steps will be needed to add it to the build process.

    For SBT, and in the top level project I modified the Build.scala file to aggregate the new project, and added the project in the SBT projects window. More info on SBT multiproject builds: http://www.scala-sbt.org/0.12.2/docs/Getting-Started/Multi-Project.html

提交回复
热议问题