IDEA creates MAVEN parent-child project
1. Reference materials
2. Create Maven parent project
-
Choose to create a new Maven project
-
Enter the [GroupId] and [ArtifactId] of the project, and click [Finish] to complete the creation of the parent project
3. Create Maven subproject
-
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]
-
Came to the creation interface of the Maven project again, continue to create sub-projects
-
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)]
-
java-basics subproject
-
juc subproject
-
spring subproject
-
-
After the sub-project is created, the ArtifactId of the sub-project will be marked in the pom file of the parent project