title: how to disable a maven profile?
body: <p>I am using maven release plugin. And one profile is just supposed to run on prod build farm. When run on local, it will fail duo to unable to access some web resources.</p>
  
  <p>Maven release plugin will run build on local before tagging, push to remote stuff... But it will fail when run maven release plugin, just because of the profile that only suppose to run on prod build farm.</p>
  
  <p>So I need to disable this profile on local. But the profile is activated by </p>
  
  <pre><code>&lt;os&gt;
      &lt;name&gt;linux&lt;/name&gt;
  &lt;/os&gt;
  </code></pre>
  
  <p>I tried to use -P !profilename. It works for mvn install but doesn't work for maven release:prepare.</p>
  
  <p>So any way I can specify the os name by command line parameter or disable the profile?</p>