title: Maven: Using a Plugin Based On Profile
body: <p>I have a file which maintains a build-number for release build. Everytime a release build is made, this number is incremented and the file is saved into svn repository. </p>
  
  <p>Now say I have a plugin to do this job and i have created a build profile. But I need this plugin to be triggered only when build profile is activated and not otherwise. I guess adding pluginManagement to profile could be the way out like below. Any suggestions?</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;profiles&gt;
      &lt;id&gt;release&lt;/id&gt;      
      &lt;build&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      ..
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt;
  &lt;/profiles&gt;
  </code></pre>