title: Attaching maven-exec-plugin to initialize
body: <p>I am trying to attach an exec process to a maven build. I want to build a secondary dependency (that is actually a Clojure project build with maven) every time I build the maven project.</p>
  
  <p>Currently, I have the <code>pom.xml</code> below, but the exec process is just not running. The maven documentation is not that much help.</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.1&lt;/version&gt;
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;id&gt;compile-with-lein&lt;/id&gt;
        &lt;phase&gt;initialize&lt;/phase&gt;
        &lt;goals&gt;
          &lt;goal&gt;exec&lt;/goal&gt;
        &lt;/goals&gt;
      &lt;/execution&gt;
    &lt;/executions&gt;
    &lt;configuration&gt;
      &lt;executable&gt;lein&lt;/executable&gt;
      &lt;commandlineArgs&gt;install&lt;/commandlineArgs&gt;
      &lt;workingDirectory&gt;../nrepl-clojure&lt;/workingDirectory&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>