title: deploying a war-project with maven-phase execution
body: <p>I specified a plugin (in the pom.xml) with an execution that should be execute in the process-resources phase. So once I start the project, it executes the goal(a change in the database with liquibase) before it compiles and runs the project.</p>
  
  <pre><code>&lt;plugin&gt;
    [...] 
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;phase&gt;process-resources&lt;/phase&gt;
        &lt;goals&gt;
          &lt;goal&gt;update&lt;/goal&gt;
        &lt;/goals&gt;
      &lt;/execution&gt;
    &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>When I deploy the project in the production, I have an war-package that gets deployed by tomcat. </p>
  
  <p>But I'm not sure when and if the goal is executed. I want the goal to be executed just one time, once it gets deployed and before the application can be used by user.</p>
  
  <p>How is the workflow in this case? Does the goal get automatically executed just once, or do I miss something here.</p>