There are many cases and articles on the Internet about how to use maven to build a springboot multi-module project. Here is just a record of the building process.
1. Create the parent project
File–>new–>maven project
Select the option on the way, click the next button, select pom
in the Packaging option, and click Finish.
2. Delete other files under the project, leave only pom.xml
right-click the project, maven->New Maven Module Project
fill in the module name, be careful not to check the Create a simple Project option at this time
After completion, the first module is created.
In the same way you can create a second module springboot-web
3.springboot-web depends on the springboot-common module
If the web module needs to call common module support, you can add common as a web dependency package.
Right-click springboot-web, Maven->Add Dependency, select common module
At this point, open the pom file of springboot-web and you can see:
Add other modules or dependencies in the same way.