您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

29 行
467B

  1. #!/bin/sh
  2. is_reposilite_up ()
  3. {
  4. curl -s -o /dev/null repo:80
  5. return $?
  6. }
  7. i=0
  8. until is_reposilite_up; do
  9. i=$((i+1))
  10. if [ $i -gt 30 ]; then
  11. echo "Could not connect to reposilite. Aborting."
  12. exit 1
  13. fi
  14. sleep 1
  15. done
  16. if [ $? -lt 30 ]; then
  17. for pom in /poms/*; do
  18. mvn -P central -Dos.detected.classifier=linux-x86_64 -f $pom dependency:go-offline;
  19. done
  20. else
  21. echo "Can't connect to repository"
  22. exit 255
  23. fi