功能: 将maven项目打包复制到tomcat/webapps

set git=C:\Users\zhengwenqiang\git
set tomcat=e:\tomcat7.0.64

c:
cd %git%\cas
call mvn clean compile
call mvn package -Pdeploy
rem call mvn package -Ptenant
e:
if exist %tomcat%\webapps\cas.war del %tomcat%\webapps\cas.war
copy %git%\cas\target\cas.war %tomcat%\webapps

c:
cd %git%\portal
:: mvn is batch. so call is needed
call mvn clean compile
call mvn package -Pdeploy
rem call mvn package -Ptenant
e:
if exist %tomcat%\webapps\portal.war ( del %tomcat%\webapps\portal.war )
copy %git%\portal\target\portal.war %tomcat%\webapps

c:
cd %git%\platform\security
call mvn clean compile
call mvn package -Pdeploy
rem call mvn package -Ptenant
e:
if exist %tomcat%\webapps\security.war ( del %tomcat%\webapps\security.war )
copy %git%\platform\security\target\security.war %tomcat%\webapps

 

 posted on 2017-07-17 16:08  ChaseForFuture  阅读(198)  评论(0编辑  收藏  举报