It seems the network failures last for a bit.. allow some sleeping time Add some verbosity for status checking

Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
Rafael da Fonseca 2015-06-18 23:08:54 +02:00 committed by Daan Hoogland
parent f0dcd403e7
commit b55ef551ca
1 changed files with 6 additions and 0 deletions

View File

@ -94,8 +94,11 @@ for ((i=0;i<$RETRY_COUNT;i++))
do
mvn org.apache.maven.plugins:maven-dependency-plugin:resolve-plugins > /dev/null
if [[ $? -eq 0 ]]; then
echo -e "\nPlugin dependencies downloaded successfully"
break;
fi
echo -e "\nRetrying in 10 seconds..."
sleep 10
done
#Resolve remaining deps
@ -108,7 +111,10 @@ for ((i=0;i<$RETRY_COUNT;i++))
do
mvn org.apache.maven.plugins:maven-dependency-plugin:resolve > /dev/null
if [[ $? -eq 0 ]]; then
echo -e "\nProject dependencies downloaded successfully"
break;
fi
echo -e "\nRetrying in 10 seconds..."
sleep 10
done
cd ../..