Maven tomcat plugin

is it possible to run spring mvc application on tomcat (with this plugin http://mojo.codehaus.org/tomcat-maven-plugin/ ), if so, where is the application log and expand the web application directory?

Let me rephrase the question. I ask somehow to launch my web application (spring mvc application) from the command line either using maven or with something inside the application that the web server creates.

What would you recommend? I found this tomcat maven plugin while searching googling, no special reason to use it.

I am currently using jboss server for this application, but I want to run both the server and the application from the application, any suggestions?

0
source share
3

tomcat:run - tomcat... .
. http://mojo.codehaus.org/tomcat-maven-plugin/run-mojo.html , warSourceDirectory, , , ${basedir}/src/main/webapp

+1

, , mvn-: , maven. Spring, , . Tomcat :

C:\SVN\MyProject \\tomcat6x\ >

webapps, , .

, , , tomcat-maven.

0

, tomcat spring MVC.

If so, you do not need maven or the maven plugin for this. You can use the Tomcat Catalina API to achieve this. Although given, this article explains how.

As pointed out in other answers, maven tomcat and download plugins let you start and stop tomcat from maven - usually to run some integration tests.

0
source

Source: https://habr.com/ru/post/1791075/