RPM build - run mvn clean before building packages, to get a build from fresh

source

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1369936033 -0600
This commit is contained in:
Marcus Sorensen 2013-05-30 11:47:13 -06:00
parent 7296cca9ac
commit 800cd391d5
1 changed files with 2 additions and 0 deletions

View File

@ -166,9 +166,11 @@ echo PACKAGE=%{name} >> build/replace.properties
if [ "%{_ossnoss}" == "NONOSS" -o "%{_ossnoss}" == "nonoss" ] ; then
echo "Executing mvn packaging for NONOSS ..."
mvn clean
mvn -Pawsapi,systemvm -Dnonoss package
else
echo "Executing mvn packaging for OSS ..."
mvn clean
mvn -Pawsapi package -Dsystemvm
fi