【Tomcat】shell获得war包

功能: 将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
上一篇:Elasticsearch 整合spring(不是sprig boot)


下一篇:Mybatis学习笔记一