the meaning of existence:
Aggregation: Makes the compilation of multiple modules more concise.
Inheritance: Reduce the writing of duplicate code, and can resolve the problem of package conflict.
One: Use of aggregations:
Create a new Maven project, where only the pom file, then Cleaninstall, runs only one file, as shown in figure:
Two: The use of inheritance:
Create a new Maven project, where only the pom file, then Cleaninstall, runs only one file, as shown in figure:
1. Create the parent's pom and add unified resource information
2. Submodule inherits the parent's Pom
3.parent Pom introduces the dependency packages required by the project, using dependencymanagement tags
4. The sub-module's POM selection requires a dependent package to be configured, and no more version is needed, so that it can unify the build number of the entire project's dependent package.
5. You can put the aggregated modules tag content directly in the parent's pom, and then configure the Pom to run the parent.
Version Management: