Invisible Arrow
Invisible Arrow

Reputation: 4905

IntelliJ Idea 14: How do I import all existing idea modules in a folder tree into a project

I currently have a set of idea modules (each module having a .iml file) in a folder tree.

When I open the Import Module dialog for an new/existing project and specify this folder tree, the import dialog shows import options from Eclipse, Maven and Gradle, but not Idea.

How do I import all these existing idea modules into the current project?

Upvotes: 2

Views: 4288

Answers (2)

yole
yole

Reputation: 97188

  • Go to Scopes in Settings
  • Define a scope with the pattern file:*.iml
  • Switch the Project view to the scope you've defined
  • Select the .iml files there
  • Invoke "Import N modules" action from the context menu

Upvotes: 2

Hunter Zhao
Hunter Zhao

Reputation: 4649

As far as I know, IntelliJ won't support multi-importing for module, so as a workaround, just select each .iml file of module rather than the module directory while importing. Here is the IntelliJ 14 Web Help: Adding an Existing Module to a Project

Upvotes: 0

Related Questions