'Intellij - adding another SpringBoot project

I have generated two Spring Initializer Maven projects. I open the first one with File-Open-location_of_the_file, It opens up the project, when I want to open the second project it closes the previous project. I want to be able to see both projects in the project window.

I don't want the program to open a second IntelliJ window, I just want them to be inside the same window, same file explorer inside IntelliJ. I have both projects in the /documents/microservices folder. I'm relatively new to IntelliJ, help would be greatly appreciated.



Solution 1:[1]

Use Import Module action: File | New | Module from Existing Sources.

See Import an existing module documentation for more information.

Solution 2:[2]

I solved this issue by doing this:

View -> Tool Windows -> maven -> + "Add maven projects" -> find the pom.xml from the project and then it adds it to your file explorer.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andrey
Solution 2 user3283421