Maven Modules + Building a Single Specific Module
Fleeting- External reference: https://stackoverflow.com/questions/1114026/maven-modules-building-a-single-specific-module
Maven Modules + Building a Single Specific Module - Stack Overflow
So just cd into the parent P directory and run:
mvn install -pl B -am
Note that you need to use a colon if you are referencing an artifactId which differs from the directory name:
mvn install -pl :B -am