Skip to content

Commit 55db2fe

Browse files
author
Prasanna Santhanam
committed
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>
1 parent 5c9828d commit 55db2fe

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

packaging/centos63/cloud.spec

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,11 @@ echo VERSION=%{_maventag} >> build/replace.properties
165165
echo PACKAGE=%{name} >> build/replace.properties
166166

167167
if [ "%{_ossnoss}" == "NONOSS" -o "%{_ossnoss}" == "nonoss" ] ; then
168-
echo "Executing mvn packaging for NONOSS ..."
169-
mvn clean
170-
mvn -Pawsapi,systemvm -Dnonoss package
168+
echo "Executing mvn packaging for NONOSS ..."
169+
mvn -Pawsapi,systemvm -Dnonoss package clean install
171170
else
172-
echo "Executing mvn packaging for OSS ..."
173-
mvn clean
174-
mvn -Pawsapi package -Dsystemvm
171+
echo "Executing mvn packaging for OSS ..."
172+
mvn -Pawsapi package -Dsystemvm clean install
175173
fi
176174

177175
%install

0 commit comments

Comments
 (0)