#!/bin/sh

echo "*** Start Preflight ***"
echo "Removing $HOME/.m2/repository/org/torquebox/"
rm -rf $HOME/.m2/repository/org/torquebox

echo "Removing $HOME/.m2/repository/rubygems"
rm -rf $HOME/.m2/repository/rubygems

echo "Peforming cleaning"
mvn clean -Pinteg -Pdist

echo "*** Start Build ***"

echo "Peforming build"
$MAVEN_HOME/bin/mvn -U -s settings.xml install -Pinteg -Pdist

echo "*** Start Postflight ***"

echo "Removing $HOME/.m2/repository/org/torquebox/"
rm -rf $HOME/.m2/repository/org/torquebox

#!/bin/sh

echo "*** Start Preflight ***"
echo "Removing $HOME/.m2/repository/org/torquebox/"
rm -rf $HOME/.m2/repository/org/torquebox

echo "Removing $HOME/.m2/repository/rubygems"
rm -rf $HOME/.m2/repository/rubygems

echo "Peforming cleaning"
$MAVEN_HOME/bin/mvn clean -Pinteg -Pdist

echo "*** Start Build ***"

echo "Peforming build"
$MAVEN_HOME/bin/mvn -U -s settings.xml install -Pinteg -Pdist

echo "*** Start Postflight ***"

echo "Removing $HOME/.m2/repository/org/torquebox/"
rm -rf $HOME/.m2/repository/org/torquebox

Add MAVEN_HOME to other invocation of mvn.
Add MAVEN_HOME to other invocation of mvn.
