title: Can I tailor a maven build based on platform?
body: <p>Specifically, I run the <code>launch4j-maven-plugin</code> plugin to generate me an <code>.exe</code> file. This only works on Windows, so I was wondering if I could 'opt-out' of this step on other platforms?</p>
  
  <p>The plugin is tied to the execution phase like this</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
  ...
  &lt;execution&gt;
       &lt;id&gt;l4j-clui&lt;/id&gt;
       &lt;phase&gt;package&lt;/phase&gt;
       &lt;goals&gt;
            &lt;goal&gt;launch4j&lt;/goal&gt;
       &lt;/goals&gt;
  &lt;/execution&gt;
  ...
  </code></pre>