Auto import of multiple modules in same folder.

已回答

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.

 

 

0

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.

-3

This link does not include any instructions on how to multiply select save modules. It does not appear to be possible.

0

@Jonathanl can you please provide details about your use case? Do you want to import not related to each other multiply Maven modules?

0

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).

0

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:

0

Thanks Andrey. I'll try this out next week.  -- Jon

0

请先登录再写评论。