Tomcat Maven plugin has built-in support for reactors, so run it at root
rather than within the web submodule (possibly with "-pl web -am"). It will
automatically compile all (needed) submodules and launch Tomcat, and with
auto-deploy will automatically reload the webapp to pickup changes in any
submodule.

Le sam. 13 janv. 2018 03:33, Sigmond Hola <[email protected]> a écrit :

> I have a multi-module project like this:
>
> ROOT:pom
>     --- web:war
>     --- domain:jar
>     --- service:jar
>     --- dao:jar
>
> And i configure tomcat7-maven-plugin in pom.xml of module *web *so that I
> can using tomcat:run to run this web application.
>
> But if I change something in other module, for example, add a new entity
> class in module domain, I have to install the ROOT to local repo first
> before I run tomcat:run within module web, otherwise a error: cannot find
> symbol will be reported if I run tomcat:run directly.
>
> So how can I install other modules first before I run tomcat:run within
> module web if I change something in other modules?
>
> Thanks in advance.
>
> Best regards.
>

Reply via email to