We're using maven 2.1.0. I have multiple modules that are completely separate, but still have many common dependencies. Like log4J, but some modules don't need it. I am wondering if it is a good idea to declare all common dependencies in one parent file in the
<dependencyManagement> section or is there a better way to deal with this?
A follow up question about
<dependencyManagement>. If I declare Log4J in the
<dependencyManagement> section of the parent and a sub project does not use it, will it be included anyway?