title: Maven exec-maven-plugin and maven-resources-plugin not running, not sure why
body: <p>I have added a couple of new plugins to a maven <code>pom.xml</code> file.</p>
  
  <p>I have not been able to figure out why <code>exec-maven-plugin</code> and  <code>maven-resources-plugin</code> they aren't running when I issue the command: <code>mvn install</code>. The other maven plugins do execute as expected.</p>
  
  <p>When I run <code>mvn exec:exec</code>, <code>exec-maven-plugin</code> does indeed get run.</p>
  
  <p>I have tried using a number of different phases, to no avail.</p>
  
  <p>What am I doing wrong here, and what should I try?</p>
  
  <hr>
  
  <p>Here is the relevant section of my maven file</p>
  
  <pre><code>&lt;plugins&gt;
      &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.1&lt;/version&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;id&gt;build-spa-bower&lt;/id&gt;
                  &lt;phase&gt;validate&lt;/phase&gt;
                  &lt;configuration&gt;
                      &lt;executable&gt;bower&lt;/executable&gt;
                      &lt;arguments&gt;install&lt;/arguments&gt;
                      &lt;workingDirectory&gt;src/main/spa&lt;/workingDirectory&gt;
                  &lt;/configuration&gt;
              &lt;/execution&gt;
              &lt;execution&gt;
                  &lt;id&gt;build-spa-grunt&lt;/id&gt;
                  &lt;phase&gt;validate&lt;/phase&gt;
                  &lt;configuration&gt;
                      &lt;executable&gt;bower&lt;/executable&gt;
                      &lt;arguments&gt;install&lt;/arguments&gt;
                      &lt;workingDirectory&gt;src/main/spa&lt;/workingDirectory&gt;
                  &lt;/configuration&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
      &lt;/plugin&gt;
      &lt;plugin&gt;
          &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.6&lt;/version&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;id&gt;resource-spa&lt;/id&gt;
                  &lt;phase&gt;compile&lt;/phase&gt;
                  &lt;configuration&gt;
                      &lt;outputDirectory&gt;${project.groupId}/${project.artifactId}/spa&lt;/outputDirectory&gt;
                      &lt;resources&gt;
                          &lt;directory&gt;src/main/spa/dist&lt;/directory&gt;
                          &lt;filtering&gt;false&lt;/filtering&gt;
                      &lt;/resources&gt;
                  &lt;/configuration&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
      &lt;/plugin&gt;
      &lt;!-- ... --&gt;
  &lt;/plugins&gt;
  </code></pre>
  
  <hr>
  
  <p>EDIT:</p>
  
  <p>found answer for exec plugin, but not yet for resources plugin.</p>
  
  <p>The exec plugin requires a goal in order to trigger</p>
  
  <p>adding <code>&lt;goals&gt;&lt;goal&gt;exec&lt;/goal&gt;&lt;/goals&gt;</code> to each <code>&lt;execution&gt;</code> did the trick for me.</p>