Navigating to implementation takes me to jar files in maven

已回答

Hi

I am finding that for some modules when I navigate to the implementation it takes me to a jar file in External Libraries instead of the source, which is in another module.

Does anybody know why this happens?  It's maddening..I've tried recloning the repos (each top-level module is in its own repo), invaliating/clearing caches, rebuilding maven project, deleting iws/ipr files..nothing works.

0

1) Please provide a couple of screenshots from a problem module:

- File | Project Structure | Modules | module_name | Sources

- File | Project Structure | Modules | module_name | Dependencies

and clarify the library name you're having problem with.

2) Make sure that Automatically download | Sources is enabled under Settings/Preferences | Build, Execution, Deployment | Build Tools | Maven | Importing. If not, enable this option and reload the Maven project.

0

Hi Egor

 

Thanks for replying.

I think I have fixed it - I figured if I completely uninstalled and reinstalled intellij it might work.  Steps:

  • exports intellij settings
  • uninstall intellij
  • find and delete all idea files from projects (ipr, iml, iws I think)
  • delete stuff like config directories (or just move to a backup folder)
  • reinstall intellij
  • import settings
  • import projects

It seems to have worked.

Jason

 

0

请先登录再写评论。