I've googled and stack-overflowed everything, but maybe not enough as I'm still not clear how one adds a module of a Maven project as a dependency in another.
So for example let's say we've got:
MajorPager
|___ POM.xml
|___ chuck-commons-core
| |____POM.xml
|____rajni-commons-core
|____POM.xml
Now I want to add chuck-commons-core but not rajni-commons-core. If I do it directly, it can't find the module. So I ran across the following discussions on stack-overflow and my old friend Guggal:
In summary, the below discussions talk of how to create multi-module projects but not really how to include the sub-modules in a top-level POM into another project.
Useful discussions for context
SOAdding a reference to a parent POM projectSOHow to add a parent POM as dependency to a different maven projectSOAdding a reference to Parent POMSOMaven Parent POM vs Modules POMSODepend on multi-module aggregator projectSOHow to add dependency in Eclipse?SOHow do I configure Maven multi-module-dependency on sub project with different package?SOHow to add a module in parent projects POM as dependency?SOHow to add a dependency in Maven?Mavendependency mechanismMavenPOM aggregationBaeldungMulti-module projectCodetabMaven multi-moduleHowtodoinjavaMaven parent child POM exampleMasterthebossMaven multi-module tutorialCodetabMulti-module hierarchical projectSonatypeHow to share resources across projectsSpringMulti-module project
Concretely, I'd just like a summary from an expert how they add a sub-module of a Parent POM as a dependency to another project.