title: Skip execution of a maven plugin if a file does not exist
body: <p>I want to put the hibernate3-maven-plugin in my parent pom and have execution skipped in child modules if a given file does not exist in that module.</p>
  
  <p>Is there any way to do this?</p>
  
  <p>Up to now, I have had to do this:</p>
  
  <pre><code>&lt;plugin&gt;
     ...
     &lt;configuration&gt;
        &lt;skip&gt;true&lt;/skip&gt;
        &lt;propertyfile&gt;target/test-classes/jdbc.properties&lt;/propertyfile&gt;
     &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>In the parent POM, and:</p>
  
  <pre><code>&lt;plugin&gt;
     ...
     &lt;configuration&gt;
        &lt;skip&gt;${maven.test.skip}&lt;/skip&gt;
     &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>In all child POMs where I want it to execute. I.E Those actually having a jdbc.properties file.</p>