Is there any way to rename module groups?

已回答

Hi!,

 

I've imported a multi-module maven project into IntelliJ IDEA and used the "Create module groups for multi-module Maven projects" feature to automatically create the module groups.

Thing is, one of the modules is named, "modules" :), and now i have a "modules and modules" group which I want to rename to something more descriptive.

Is there a way to rename it or do I have to create a new group and move all the modules and sub-groups into the new group?

 

Thanks!

5
Avatar
Permanently deleted user

 Thank you Serge!

0

To manually rename a module group, do the following:

  1. Close the project
  2. Inside a text editor, open .idea/modules.xml and change all occurrences of group attribute value for the module elements.
  3. If you are using a Gradle based project, open settings.gradle and change the rootProject.name if it currently matches the old group name.
  4. Open the project in IntelliJ IDEA. If the old group name is still being displayed, invalidate the caches and restart.
1

请先登录再写评论。