maven批量打包,并且显示打包结果 博客分类: Javamaven ant maven批量打包
程序员文章站
2024-02-23 18:40:04
...
maven批量打包,并且显示打包结果
#!/bin/bash cd /Users/whuanghkl/work/mygit/io0007_new mvn install result2=$? echo $result2 if [ $result2 -ne 0 ];then echo "error." exit 4 fi cd /Users/whuanghkl/work/mygit/oa_framework mvn install unset result2 result2=$? echo $result2 if [ $result2 -ne 0 ];then echo "error." exit 5 fi cd /Users/whuanghkl/work/mysvn/http_request_tool mvn install cp /Users/whuanghkl/work/mysvn/http_request_tool/target/http_request_tool-0.0.1-SNAPSHOT.jar /Users/whuanghkl/work/mysvn/java_bin/bin cd /Users/whuanghkl/work/mygit/tookit_whuang mvn install unset result2 result2=$? echo $result2 if [ $result2 -ne 0 ];then echo "error." exit 6 fi cd /Users/whuanghkl/work/project/workspace/share mvn install cp /Users/whuanghkl/work/project/workspace/share/target/share-0.0.3.1-SNAPSHOT.jar /Users/whuanghkl/work/mysvn/java_bin/bin/ unset result2 result2=$? echo $result2 if [ $result2 -ne 0 ];then echo "error." exit 7 fi cp /Users/whuanghkl/work/mygit/tookit_whuang/target/tookit_whuang-0.0.2-SNAPSHOT.jar /Users/whuanghkl/work/mysvn/java_bin/bin cp /Users/whuanghkl/work/mygit/io0007_new/target/io0007-0.0.1-SNAPSHOT.jar /Users/whuanghkl/work/mysvn/project/convention2/convention/WEB-INF/lib/ cp /Users/whuanghkl/work/mygit/oa_framework/target/oa_framework-0.0.3.2-SNAPSHOT.jar /Users/whuanghkl/work/mysvn/project/convention2/convention/WEB-INF/lib/
#!/bin/sh cd /Users/whuanghkl/code/mygit/io0007 mvn install result2=$? echo $result2 if [ $result2 -ne 0 ];then echo "error." exit 4 fi cp /Users/whuanghkl/code/mygit/io0007/target/io0007-0.0.1-SNAPSHOT.jar /Users/whuanghkl/code/mysvn/java_bin/bin/proxy-client-0.0.1/lib/ cd /Users/whuanghkl/code/mysvn/java_bin/bin/proxy-client-0.0.1/lib/ svn commit -m "update io0007-0.0.1-SNAPSHOT.jar" io0007-0.0.1-SNAPSHOT.jar cp /Users/whuanghkl/code/mygit/io0007/target/io0007-0.0.1-SNAPSHOT.jar /Users/whuanghkl/code/mysvn/java_bin/bin cd /Users/whuanghkl/code/mysvn/java_bin/bin echo "cd /Users/whuanghkl/code/mysvn/java_bin/bin" svn commit -m "update io0007-0.0.1-SNAPSHOT.jar" io0007-0.0.1-SNAPSHOT.jar cd /Users/whuanghkl/code/IdeaProjects/lanproxy ./deploy.sh result2=$? echo $result2 if [ $result2 -ne 0 ];then echo "error." exit 4 fi cd /Users/whuanghkl/code/workspace/http_request_tool echo "http_request_tool mvn install ......" mvn install >>/Users/whuanghkl/log/mvn.log result2=$? echo $result2 if [ $result2 -ne 0 ];then echo "error." exit 4 fi