I have maven project with two modules and parent pom.xml. In the first module I have interface, in the second - implementation. If I import the first module, open interface and press Ctrl+Alt+F7 - I see that "No implementations found". Why can't Idea (version 12.0.3) find implementation in the second module?
Please see screenshots:
1) Interface in the imported module.
Thanks for the samle. The answer is that 'Find usages' looks for usages and implementation is not considered to be a usage. For example, you can add the following method to A1Impl class at your sample:
Then 'Find Usages' will locate it. Alternatively, you can invoke 'Find Usages Settings' (mapped to Ctrl+Alt+Shift+F7 at the default keymap, also available via Main Menu | Edit | Find | Find Usages Settings). It allows to specify that implementation methods should be chosen as well:
Please note that there is a dedicated action to quickly show list of all overriding methods - 'Navigate to Implementation (s)' (Ctrl+Alt+B at the default keymap, also available via Main Menu | Navigate | Implementation (s)). It also works for class hierarchy down traversal.
No, problem is in scope. Implementation class place in the "Project and Libraries" scope, but I can't select it. Why is it not present in scope dropdown?
Could you find implemention using Ctrl+Alt+B in sample project? I can't.
I'm afraid I don't understand the problem. 'Find Usages Settings' works fine at the sample project you attached if 'Implementing methods' box is checked. 'Project and Libraries' scope is also available for selection at 'Find Usages Settings' dialog at the sample project.