title: Unable to define custom Log4j2 configuration file in pom.xml
body: <p>I've been struggling with this a lot. 
  I have a <code>log4j2.xml</code> file in my resources folder of a maven project. Everything works fine as long as I don't change the name of this configuration file. I want the configuration name to be <code>dev-log4j2.xml</code>.</p>
  
  <p>I'm aware that by default, log4j looks for log4j2.xml, however, upon a lot of search I came across a <a href="https://stackoverflow.com/a/30132945/4159199">link</a> which suggests to add the following lines to define a custom path to the configuration.</p>
  
  <pre><code>&lt;systemProperties&gt;
      &lt;property&gt;
         &lt;name&gt;log4j.configuration&lt;/name&gt;
         &lt;value&gt;src/main/resources/dev-log4j2.xml&lt;/value&gt;
      &lt;/property&gt;
  &lt;/systemProperties&gt;
  </code></pre>
  
  <p>but even this doesn't log anything in my log file. Can anyone direct me in a proper direction?</p>