Maven tomcat deploy the plugin so that there are no realignments

I use jenkins to create my gwt application, now I want to run tomcat: deploy on this built project so that it can deploy the built-in war with tomcat.

The problem is that he insists on making the package in advance, even if the package was just executed.

This leads to recompilation of gwt - it takes a very long time.

Is there a way with which I can call deploy to tomcat with maven that will just deploy an existing war?

+4
source share
2 answers

You can use the deploy-only target that will not invoke the package assembly life cycle.

+4
source

Generally check out the list of goals for the Maven Tomcat plugin.

Sequence execution

 mvn tomcat:undeploy mvn tomcat:deploy-only 

essentially a “redistribution without build”, which you sometimes want to do to find out what happens at startup. Although, if you really want to see how webapp starts, there

 mvn tomcat:reload 
+1
source

All Articles