Get the App
SLTechnology News&Howtos  ›  Development  › 

How can IDEA manage projects with multiple different modules in the same project space?

Shulou Source: shulou.com Published: 2022-06-01 11:36:42 10月01日 Update

In this article Xiaobian for you to introduce in detail "IDEA how to achieve the same project space under the management of multiple different modules of the project", detailed content, clear steps, details handled properly, I hope that this "IDEA how to achieve the same project space under the management of multiple different modules of the project" article can help you solve doubts, following the editor's ideas slowly in-depth, together to learn new knowledge.

As you know with Eclipse and IDEA programming tools, Eclipse creates new projects in the same project space, while IDEA can only have one project in a project space, and .idea files are created when you create a project.

So every time you create a project or open another project, an annoying pop-up box appears:

Of course, you can check and remember, don't ask (R), but do you want him to replace the current window or open a new window?

Don't worry, when developing a project with a micro-service architecture, we all know that we can create a module module, so can we create a module for every new project to ensure that multiple different projects are managed in the same project space?

Of course, IDEA supports creating empty projects when creating projects. We can first create an empty project, determine the project space, and then create different module modules according to different projects:

Create Empty Project

Select the new project in the upper left corner, select Empty Project on the left, and click next.

Enter the project name. Here, take SpringBoot as an example, click finish:

Prompt to create the module, we can choose to cancel and create it later:

Empty project effect picture:

Create a module module

Click on the file, select New, select module, let's create a maven project, and click the next one:

Enter the project name and click finish:

Note: Location select the empty project directory you just created, and then select the empty project directory you just created.

The first project was created.

If you need to create another project, just follow the steps to create the model module, or you can import the existing module from another path.

After reading this, the article "how to manage multiple different modules in the same project space with IDEA" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it to understand it. If you want to know more about related articles, you are welcome to follow the industry information channel.

Tags: Project module space selection different multiple management file article content name new project step directory input proper annoying anxious will create example Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Apple OPPO Reno MySQL Docker