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
(cherry picked from commit 800cd391d5)

Conflicts:
	packaging/centos63/cloud.spec
This commit is contained in:
Marcus Sorensen 2013-05-30 11:47:13 -06:00 committed by Prasanna Santhanam
parent d3c181efa7
commit 9a960d88fc
1 changed files with 4 additions and 2 deletions

View File

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