mvn clean does not do a complete clean

Retains the systevm.iso from the previous run causing systemvm.iso to
never update itself. Do a complete clean install for all profiles
specified in mvn.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-06-03 14:05:15 +05:30
parent 5c9828db7d
commit 55db2fe6d1
1 changed files with 4 additions and 6 deletions

View File

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