title: log4j.properties in multiple maven modules?
body: <p>What happens, when I have a maven application consisting of multiple modules and each of them contains a log4j.properties file, do they get merged or overwritten by a certain one (if yes, which one)?</p>
  
  <p>Update: Following your advice I have now excluded the additional properties like this in my poms:</p>
  
  <pre><code>&lt;dependency&gt;
  [...]
  &lt;excludes&gt;&lt;exclude&gt;**/log4j.properties&lt;/exclude&gt;&lt;/excludes&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>P.S.: However, the "excludes" tag is not recognized by Maven and "exclusions" only works for dependencies, not resources.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Just found out in <a href="https://stackoverflow.com/questions/13767911/log4j-in-a-multi-module-maven-project?rq=1">log4j in a multi-module Maven project</a> that I can just put the log4j.properties in src/test/resources so that they aren't included anyways in the executable module!.</p>