title: How can I disable Maven install and deploy phases using profiles?
body: <p>My Maven project contains 3 different profiles, dev, stage, and prod, that contain different configuration settings.  I would like to make it so that the install and deploy phases cannot be executed (or execute but do nothing) if the active profile is not prod, to keep dev and stage builds out of the repo.  Is there a way to do this?</p>
  
  <p>I'm guessing it involves adding the &lt;plugin&gt; to the dev and stage profiles and manually binding it to a "none" phase or something like that.</p>