Dependency Versions - Makeover

John Sanda jsanda at redhat.com
Fri Mar 15 16:57:07 UTC 2013


>> _____
> 
> 
> So you would rather see all the dependencies declared in the dependencyManagement section of the root pom of the project? And then apply the option 2 from below across all the sub-modules? The only concern that I have with this option is that we will have a huge!! section for dependency management. Aside from the huge section in the root pom I think it is a cleaner approach. 
> 
> 
> Any other thoughts?
> 

I think any common dependency should go in the root dependencyManagement section. If I have a dependency that is only used in one sub-module, then I am ok with that dependency being declared in the sub-module. The problem there though is that things are likely to fall through the cracks. Something else we can do is utilize "dependency set" modules that just pom module that declare a common set of dependencies. Then for a given set of related dependencies, we can just declared the dependency on that pom module.


More information about the rhq-devel mailing list