build_jar.sh 995 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. ###############################################################################
  3. # 构建 jar 包
  4. ###############################################################################
  5. set -e
  6. base_dir = '/home/reghao/Downloads'
  7. ###############################################################################
  8. # 构建依赖
  9. ###############################################################################
  10. cd ${base_dir}
  11. git clone https://git.reghao.cn/reghao/jutil
  12. cd jutil
  13. mvn clean install package -Dmaven.test.skip=true
  14. cd ${base_dir}
  15. git clone https://git.reghao.cn/reghao/oss
  16. cd oss
  17. mvn install package -Dmaven.test.skip=true -pl oss/oss-api
  18. mvn install package -Dmaven.test.skip=true -pl oss/oss-sdk
  19. ###############################################################################
  20. # 构建 tnb 应用
  21. ###############################################################################
  22. cd ${base_dir}
  23. git clone https://git.reghao.cn/reghao/tnb
  24. mvn clean package -Dmaven.test.skip -Ptest