IDEA creates MAVEN parent-child project

IDEA creates MAVEN parent-child project

1. Reference materials

  1. IDEA creates MAVEN parent-child project

  2. Use IDEA to create maven parent-child projects

  3. Use IDEA to create maven parent-child project

2. Create Maven parent project

  1. Choose to create a new Maven project

    image-20210131115215641

  2. Enter the [GroupId] and [ArtifactId] of the project, and click [Finish] to complete the creation of the parent project

    image-20210131115228776

3. Create Maven subproject

  1. The source code will not be stored in the parent project, so its src directory can be deleted. Right-click on the parent project and select [New] -> [Module]

    image-20210131115322589

  2. Came to the creation interface of the Maven project again, continue to create sub-projects

    image-20210131115508318

  3. Here are three sub-projects: java-basics, juc, spring according to [the third quarter of the interview at the Yangge Dachang (I only learned Spring for the time being, and I haven’t learned Redis yet)]

    1. java-basics subproject

      image-20210131115659928

    2. juc subproject

      image-20210131115651807

    3. spring subproject

      image-20210131115704879

  4. After the sub-project is created, the ArtifactId of the sub-project will be marked in the pom file of the parent project

    image-20210131115847991

Guess you like

Origin blog.csdn.net/oneby1314/article/details/113464788