title: Where should log4j.properties be located when using Maven Exec Plugin?
body: <p>I am trying to use log4j in a project I am executing with the exec-maven-plugin.  I have tried placing the file in the following locations:</p>
  
  <pre><code>$PROJECT_HOME
  $PROJECT_HOME/src/main/resources
  $PROJECT_HOME/target
  $PROJECT_HOME/target/classes
  </code></pre>
  
  <p>For all locations of the file, I am getting the following message when executing the code:</p>
  
  <pre><code>log4j:WARN No appenders could be found for logger (mypacakge.MyClass).
  log4j:WARN Please initialize the log4j system properly.
  </code></pre>
  
  <p>Where should the <code>log4j.properties</code> file be located?</p>
  
  <hr>
  
  <p>exec-maven-plugin config:</p>
  
  <pre><code>...
  &lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.2&lt;/version&gt;
      &lt;configuration&gt;
          &lt;mainClass&gt;mypackage.Main&lt;/mainClass&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  ...
  </code></pre>