Build a multi-module Maven project and a maven Project
Create a maven project under Eclipse, which consists of multiple modules.
1. Create a Parent Project
File-> New-> Project-> Maven Project (figure 1)
Next, open Figure 2
Click next To Go To The Select an Archetype interface.
Select site-simple and next to go to the interface for entering the project Group Id and Artifact Id
Click Finish to generate a project named test1.
Delete the src folder in the test1 Project
2. Create a service sub-project
The purpose of the service subitem is to provide the jar package for the web project, the Basic Package module layer and service layer
Right-click the test1 project name-> New-> Maven Module, and click next
Enter Module Name as test1-service, next
To Select an Archetype Interface
Enter Module Name as test1-web, next
<Dependency> <groupId> com. koala. test </groupId> <artifactId> test1-service </artifactId> <version> 0.0.1-SNAPSHOT </version> <scope> jar </scope> </dependency>
Content source, pom. xml file for the test1-service Project
Now that the Maven multi-module project is created, you only need to add the corresponding configuration file, package, code, and page.