简体   繁体   中英

How to link to the existing project in intellij

Eclipse has a good feature that I can link to other project in the same workspace as a dependency specified in pom.xml. Is it possible for me to do the same in intellij ?

Of-course you can do, I am doing a sbt project having dependencies of multiple projects. It will be easy to debug if you attach the dependent projects. It can be achieved easily by holding the ctrl and mouse clicking on any of the methods from the other projects in your current project. It will open the compiled code of the same. Then to the right top corner you can find Choose Sources... . Click that and in the explorer go to your dependency project and select the source. There you can see other project in the same workspace.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM