Being able to navigate among modules in a multi-module project
Answered
I have 4 Gradle projects. One of them depends on the other three. And another depends on the other two.
I imported them using Import Module (as Gradle). And then put the dependency relations in place in Project Structure->Modules. But I still can't seem to navigate (via Command + Click) among the source codes of these modules. IntelliJ directs me to the .class files.
I saw this, but couldn't find a solution to my problem there. What step am I missing?
Please sign in to leave a comment.
Hello,
Please try to use option from this comment: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360005958400/comments/360000823520
I am having a similar issue.
I have one project with maven modules. I can navigate from one module to another when I control click on code in one module that is referred to in the 2nd. It takes me to the source of the 2nd module.
I have another project that is a mix of gradle and maven. I have both modules imported in my project workspace. When I control click, it takes me to the decompiled class file, instead of the actual source. How can I get it to take me to the source that I already imported in my workspace, in the 2nd module?
Alakhotia Check if Multi-Project Workspace Plugin helps with the issue.
Thanks. It says it's not compatible with my IDEA, IntelliJ IDEA 2023.3 (Community Edition).
Alakhotia Consider updating to IDEA 2024.2 or 2024.3, you should also be able to install those versions side-by-side with the existing one (2023.3), so you can check if the Multi-Project Workspace Plugin helps with your issue.
I updated to 2024.3.
It fixed the problem. I can now navigate from a gradle project to a maven project when I click on the corresponding dependency in my code.