The packaging pom refers to other Maven projects. But in the multi-module project, the parent POM defines the packaging pom. In the previous Maven projects, we have seen that the parent POM defines the packaging jar. The parent POM defines the Group ID, Artifact ID, version, and packaging. We can deploy an individual module, also. When we run the multi-module project, all the modules are deployed together in an embedded Tomcat Server. The child modules are actual Spring Boot projects that inherit the maven properties from the parent project. The parent pom is located in the project's root directory. The pom.xml file of the parent project consists the list of all modules, common dependencies, and properties that are inherited by the child projects. The parent maven project must contain the packaging type pom that makes the project as an aggregator. Or A multi-module project is defined by a parent POM referencing one or more submodules. In other words, a multi-module project is built from a parent pom that manages a group of submodules. In the multi-module project, the parent project works as a container for base maven configurations. Next → ← prev Spring Boot Multi-Module Project Multi-Module ProjectĪ Spring Boot project that contains nested maven projects is called the multi-module project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |