I was wondering if there is a standard way (i.e. a plugin) for applying the fix pack during Maven build. Securing the code base at a special stage before the building becomes tedious as soon as you have different builds or generated sources.
To give an example, this script should deploy 3 different versions from a new SVN check:
#!/bin/bash
svn checkout http://example-project.googlecode.com/svn/tag/v1_0 example-project-read-only
cd example-project-read-only
mvn deploy
mvn -Dmaven.patch.dir=/path/to/patchesA -Dmaven.patch.buildSuffix=a3 clean patch:patch deploy
mvn -Dmaven.patch.dir=/path/to/patchesB -Dmaven.patch.buildSuffix=b0 clean patch:patch deploy
I am currently doing similar things with another script assembly that I want to get rid of. Therefore, I plan to write such a plugin if it is not already available. (Maybe with highlighted patch artifacts for easy distribution as an added bonus?)