Project structure

One project becoming several. A parent POM carries properties and dependencyManagement, and the child inherits them without a version of its own. The multi-module reactor follows, with three modules and a parent, the order the reactor builds them in, the counters it prints, and -pl with -am to narrow a run. A module installed into the local repository is then used by a second, separate project, and SNAPSHOT versions show what the suffix changes in the repository. Profiles close the part: two of them, one selected by -P and one by a property, and a resource that changes with them.

01 A parent POM and inheritance A parent pom with properties and dependencyManagement, and the child that inherits them. Open 02 The multi-module reactor Three modules and a parent: the reactor order, the counters, -pl and -am. Open 03 One module in another project A module installed into the local repository and used by a second, separate project. Open 04 SNAPSHOT versions A 1.0.0-SNAPSHOT library and its client, and what the suffix changes in the repository. Open 05 Profiles and their activation Two profiles, one by -P and one by a property, and a resource that changes with them. Open

Articles