Auto import of multiple modules in same folder.
Answered
How do I create a new project and import all the maven modules that are under a parent folder?
There isn't a parent pom, just individual folders. I know how to import a module one at a time, but this become time consuming for each new project that I work on.
Please sign in to leave a comment.
You can import a module into existing project from Maven projects tool window, including selecting multiply Maven modules (pom.xml files) and import them at once.
This link does not include any instructions on how to multiply select save modules. It does not appear to be possible.
@Jonathanl can you please provide details about your use case? Do you want to import not related to each other multiply Maven modules?
Hi Andrey. Yes, that's right. I want to be able to import all the maven modules from multiple repositories that are not necessarily related. Is there a way to do that? In Eclipse you can just select all the repository folders and it scans them (if I remember right).
When you open a directory that have several independent Maven project in its sub-directories, IDE shows the popup where you can select to import these Maven projects:
If for some reason you did not see or skipped this notification (or if projects are located not in sub-directories but in separate directories) you can select to add the projects (one by one) from the Maven tool window:
Thanks Andrey. I'll try this out next week. -- Jon