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.
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?
<profiles>
<id>release</id>
<build>
<pluginManagement>
<plugins>
<plugin>
..
</plugin>
</plugins>
</pluginManagement>
</build>
</profiles>