title: Maven - skip parent project build
body: <p>I know it's <em><a href="http://www.infoplease.com/dictionary/brewers/mauvais-ton.html" rel="noreferrer">mauvais ton</a></em> to ask twice in a single day but here's another Maven puzzler:</p>
  
  <p>I have a parent POM which defines 5 modules (5 subprojects). Since each module is executed in exactly the same way I pull <code>&lt;profile&gt;&lt;build&gt;</code> section into the parent POM to get rid of the duplicate code. Now - if I execute build individually from each module it works, however if I want to build all modules at once and move to the parent directory I got error since the very first thing Maven tries to execute is the parent project itself:</p>
  
  <pre><code>mvn package -P release
  [INFO] Scanning for projects...
  [INFO] Reactor build order:
  [INFO]   DWD Parent project
  [INFO]   Projects
  </code></pre>
  
  <p>After that build fails because exec plugin tries to execute something that is not there. Looking at the output it is pretty obvious that reactor plugin is driving the build but how can I configure reactor to skip the parent?</p>
  
  <p>P.S. To prevent confusion - I'm trying to suppress profile execution on parent and enable it on child during the <code>same</code> build</p>