Issues when Importing/removing maven modules from a huge project
已回答
Hi,
I am working on a huge maven project which contains around 300 maven modules and around 3 million java code.
In my company, usually, we don't load all the project in Intellij but only some. So we have to regularly adding and removing some modules.
Time by time, when processing this operation, there are some issues.
- New modules do not compile using run -> build. And a some parts of the code are in errors
- New modules are not visible in the project view
- Some removed modules appeared after a maven reload project
Generally, doing an Invalidate Cache resolve the issues. But it is annoying. I wonder if it is not due to some incorrect configuration in the *.iml files
请先登录再写评论。
Do you have the Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Importing | Store generated project files externally option enabled?
Are there any checked ignored Maven modules when issue occurs in the Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Ignored Files settings?
Hello,
Yes, this option "Store generated project files externally" is checked. Should I Uncheck it ?
In Build, Execution, Deployment | Build Tools | Maven | Ignored Files, The panel is empty
After what actions does it usually happen? It would be essential to get the steps to reproduce. E.g. this may be related to
IDEA-166313 Maven projects is not reimported on branch switch/project update
when IDE ignores maven modules when modules do not exist in some other branch.