To build against the MEAD repository create a settings file named ~/.m2/mead-settings.xml with the following contents:
<settings>
  <mirrors>
    <mirror>
      <id>MEAD repository</id>
      <mirrorOf>*</mirrorOf>
      <url>http://download.devel.redhat.com/brewroot/repos/soa-brms-5.2-build/latest/maven</url>
    </mirror>
  </mirrors>
</settings>
Then run:
maven -s ~/.m2/mead-settings.xml clean install

To check that all required dependencies are actually in the MEAD repository run:
mvn -s ~/.m2/mead-settings.xml -Dmaven.repo.local=/tmp/m2-mead -DaltDeploymentRepository=koji-repo::default::file:///tmp/repo-mead clean deploy


The build process is described below (split according to the maven lifecycle).
validate phase
The build uses the build-helper-plugin to initialise parse ${project.version} for use in our patches.

generate-resources phase
The maven-dependency-plugin extracts component jars.

process-resources phase
The exec-maven-plugin runs the jbpm installer.
The maven-antrun-plugin runs the riftsaw installer.

compile phase
The gmaven plugin runs the patches from src/main/patches and src/main/common/patches. Note: Common patches are filtered according to the components property.

package phase
The maven-assembly-plugin gathers the required artifact up into a zip.
