开发者

maven tomcat deploy plugin so that no rebuild is done

开发者 https://www.devze.com 2023-04-10 07:11 出处:网络
I use jenkins to build my gwt app, now I want to run a tomcat:deploy on that built project so that it can deploy the built war to tomcat.

I use jenkins to build my gwt app, now I want to run a tomcat:deploy on that built project so that it can deploy the built war to tomcat.

Problem is 开发者_如何学Cit insists on doing a package beforehand even though the package was just done.

This causes a gwt recompile - this takes a Very long time.

Is there a way I can invoke a deploy to tomcat with maven that will simply deploy an already existing war?


You can use deploy-only goal, which won't invoke the package build lifecycle.


Mre generally, check out the list of Maven Tomcat Plugin Goals

Doing a sequence of

mvn tomcat:undeploy
mvn tomcat:deploy-only 

is essentially a "redeploy without building" which you sometimes want to do to see what happens at startup. Although if you really just want to see the webapp start up, there's

mvn tomcat:reload
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号