Manage multi module in same project
已回答
I have 2 Maven projects: one is SVN-based, and one is Git-based. The SVN-based project is Maven multi-module while the Git-based one is just a simple Maven project. In fact, the Git-based project originates from a submodule of the SVN-based one. The reason for this extraction is part of the migration effort from SVN to Git.
Now I want to manage these 2 projects as 2 modules of the same project in term of IntelliJ jargon. How could I do this?
请先登录再写评论。
Import one project from Maven per https://www.jetbrains.com/help/idea/maven-support.html#maven_import_project_start. Then go to Project Structure | Modules, click + button, Import another project as module by pointing to pom.xml of that project.
In Settings (Preferences on macOS) | Version Control | Directory Mappings map the corresponding folders to Git and SVN.
I managed to do that and it seems work well. The only flaw I am observing is that when clicking VCS in the toolbar, IntelliJ crashed. There is no java_error_* log or specific idea64 crash dump found. Looking into the Event Viewer, I can see the error report:
For the time being, I can only work with version control task by using the related context-sensitive menu or the Version Control tool window.
Please upload the dmp crash (C:\Users\<user>\AppData\Local\CrashDumps\) file at https://uploads.jetbrains.com and provide the ID.
There is no dmp crash found when this happens. I can only share the log file at the ID 2022_12_07_23DPt9wWjD2Q3bsc4B9nem
This log is no helpful in case of the native crashes. It looks like some OS/driver/hardware issue.
Maybe
file will reveal something.
As shown in the Event View log:
DGAgent third-party security tool is causing these crashes:
LoadedModule[32]=C:\Program Files\DGAgent\plugins\09D849B6-32D3-4A40-85EE-6B84BA29E35B\AE_MailSensor_Plugin64.dll
LoadedModule[33]=C:\Program Files\DGAgent\plugins\09D849B6-32D3-4A40-85EE-6B84BA29E35B\ame_outlooksensor64.dll
LoadedModule[34]=C:\Program Files\DGAgent\plugins\09D849B6-32D3-4A40-85EE-6B84BA29E35B\ame_smtpsensor64.dll
LoadedModule[35]=C:\Program Files\DGAgent\plugins\8E4EA70A-6128-4B57-BD3F-8E9E0F0DA6BB\OS_Plugin64.dll
LoadedModule[36]=C:\Program Files\DGAgent\plugins\8E4EA70A-6128-4B57-BD3F-8E9E0F0DA6BB\COM_Sensor64.dll
Please contact your security team and ask to whitelist IntelliJ IDEA process so that these modules are not loaded into its address space. I'd recommend the same for the java processes.
Feel free to contact this tool vendor for a fix, they may have an updated version that will not cause crashes.
Unfortunately, there is nothing that we can do about this issue as it's caused by the third-party tool you are using.
Serge Baranov
I contacted security team to whitelist it and it seems to work well, no more crashes until now. Thanks.
One more question: In a simple Git-based project in IntelliJ, I usually see the Commit tool window which shows the Changed files, and in the case if I enable staging area it will show Staged and Unstaged files. But in the case of mixed version control system project like this, I don't see it anywhere. How do I enable this?
I've asked our VCS support team to help you. Please wait for their response.
Sy Pham unfortunately, the Commit Toolwidow works for Distributed Version Control systems at the moment. So if you add some VCS like SVN, the Ui that is common for both is enabled, which is commit dialog.
It is not possible to enable Commit toolwindow in this case. Please vote for https://youtrack.jetbrains.com/issue/IDEA-225055/Enable-Non-modal-commit-interface-for-Centralized-VCS
Dmitriy Smirnov
Good to know.
What is the meaning of "modal" and "non-modal" in the context of VCS here?