123456789101112131415161718 |
- #!/bin/bash
- # 待编译的项目
- projects=("wutong-okr")
- mvn clean install
- rootDir=$(pwd)
- for((i=0;i< ${#projects[*]};i++));
- do
- cd ${projects[${i}]}
- mvn clean package -DskipTests
- echo "${projects[${i}]} 构建完成"
- mv target/*.jar ${rootDir}/target/
- cd ${rootDir}
- done
- echo "构建完成,文件路径:${rootDir}/target/"
- cp -avx service.sh ${rootDir}/target/
- cd ${rootDir}/target/
- echo $(ls)
|