IDEA IDEA create multiple projects in the same directory create multiple projects in the same directory

 

Different from the past Eclipse, NetBeans development tools, IDEA and Eclipse's Project Workspace fairly, and is equivalent to Module Project.

The following procedure gives the correspondence between the concepts of Eclipse and IDEA:

Our goal is to: create a workspace, and then create two projects under it, namely the working space project, and contains projectA projectB two projects, then create two modules module1 and module2 projectA in the project.

First, the two projects are the same directory 

First, create a new directory, and then use the idea to open (this time not to create any project)

A project to create a project in an empty directory

The figure is used to select the maven template, if necessary can choose, I created here is a basic java maven directory structure of.

 

 

projectA created a

 

Create a project in the project B

Right on the project to establish Module

Note the none icon next place when creating the project, it should be none; when the module is created, should be the coordinates of the parent module

  

 

 

At this time, two projects established under the project directory has been completed

 

Second, a plurality of modules projectA

Right-created module on projectA

Click Next.

 

 Module 1 is created

Similarly creation module 2

 

 So far we have created two projects projectA and projectB in the project directory, create two modules module-1 and module-2 is projectA. project directory and projectAprojectB not necessarily linked in the project, except for the storage project. projectA and projectB not have any contact.

module-1, and module-2 and project a strong relationship is projectA two submodules.

 

 

Three, idea to import multiple items in the same directory

Create a directory project2

Copy the project to the projects of the project2

After opening below

 On the project's pom.xml file right, then select Add as Maven Project 

 

At this point B project has been successfully imported, there will be a successful import directory of the project different icons, you can compare projectA and projectB, this time projectB have been imported, projectA not imported successfully.

Similarly projectA do the above operation, projectA also successfully imported

So far, the project has been successfully imported from the project2 directory to IDEA

Different from the past Eclipse, NetBeans development tools, IDEA and Eclipse's Project Workspace fairly, and is equivalent to Module Project.

The following procedure gives the correspondence between the concepts of Eclipse and IDEA:

Our goal is to: create a workspace, and then create two projects under it, namely the working space project, and contains projectA projectB two projects, then create two modules module1 and module2 projectA in the project.

First, the two projects are the same directory 

First, create a new directory, and then use the idea to open (this time not to create any project)

A project to create a project in an empty directory

The figure is used to select the maven template, if necessary can choose, I created here is a basic java maven directory structure of.

 

 

projectA created a

 

Create a project in the project B

Right on the project to establish Module

Note the none icon next place when creating the project, it should be none; when the module is created, should be the coordinates of the parent module

  

 

 

At this time, two projects established under the project directory has been completed

 

Second, a plurality of modules projectA

Right-created module on projectA

Click Next.

 

 Module 1 is created

Similarly creation module 2

 

 So far we have created two projects projectA and projectB in the project directory, create two modules module-1 and module-2 is projectA. project directory and projectAprojectB not necessarily linked in the project, except for the storage project. projectA and projectB not have any contact.

module-1, and module-2 and project a strong relationship is projectA two submodules.

 

 

Three, idea to import multiple items in the same directory

Create a directory project2

Copy the project to the projects of the project2

After opening below

 On the project's pom.xml file right, then select Add as Maven Project 

 

At this point B project has been successfully imported, there will be a successful import directory of the project different icons, you can compare projectA and projectB, this time projectB have been imported, projectA not imported successfully.

Similarly projectA do the above operation, projectA also successfully imported

So far, the project has been successfully imported from the project2 directory to IDEA

Guess you like

Origin www.cnblogs.com/fuqiang-terry/p/12669911.html