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
SO
Adding a reference to a parent POM projectSO
How to add a parent POM as dependency to a different maven projectSO
Adding a reference to Parent POMSO
Maven Parent POM vs Modules POMSO
Depend on multi-module aggregator projectSO
How to add dependency in Eclipse?SO
How do I configure Maven multi-module-dependency on sub project with different package?SO
How to add a module in parent projects POM as dependency?SO
How to add a dependency in Maven?Maven
dependency mechanismMaven
POM aggregationBaeldung
Multi-module projectCodetab
Maven multi-moduleHowtodoinjava
Maven parent child POM exampleMastertheboss
Maven multi-module tutorialCodetab
Multi-module hierarchical projectSonatype
How to share resources across projectsSpring
Multi-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.