Remove Module
Answered
I'm wondering if I'm doing something wrong when I remove a module from my project in IntelliJ. When I remove a maven module in a Java project, the module will go away and then reappear. If I remove it again, sometimes that module will reappear or it will go away and the nested modules will all show up. Any ideas? Is there a way to ensure a module doesn't get automatically re-added when it is removed?
Thanks,
Jon
Please sign in to leave a comment.
Can you please provide a screencast should your steps and what happens next? Thank you.
I will do that the next time I try to remove a project. What is the best way to post a screencast here? Thanks.
You can upload at https://uploads.jetbrains.com or any file sharing service. Thank you.
Upload id: 2021_04_16_3HGzCACMLKnLs9ew (file: Screen Recording 2021-04-16 at 2.07.46 PM.mov)
In this case, the second remove worked. When there are multiple levels, the issue will cause all the sub-projects to reappear. Then removing them will cause the original root project to come back.
Thanks. Created the IDEA-267269 Removing the root Maven project from project view does not add it to the Maven | Ignored Files list so on project re-import module reappears issue. Please vote follow it for updates.
For Maven module it is recommended to use Unlink action from Maven tool window to add/remove a Maven module. Please use this action instead.