|Re: maven multimodule hot deployment in tomcat [message #709092 is a reply to message #707697]
||Wed, 03 August 2011 13:34
| Larry Isaacs
Registered: July 2009
On 8/1/2011 8:50 PM, Rakesh Sinha wrote:|
> I am trying to deploy a maven multi module project in embedded tomcat
> inside eclipse. My poject contains a parent pom and several jar projects
> and 1 war project. The war project depends on jar projects. I am able to
> package/deploy and perform everything i want.
> Now for the dev envisroment i want to use eclispe tomcat hot deployment.
> I used eclispe wtp and converted my web project to a wtp project for
> tomcat to identify it as a web project. With this i can deploy my
> project and immediately see changes made to the war project. However
> when i make changes to any of the jar projects, i am unable to hot
> deploy. So i have to install it in maven repo and then repackage my war
> project in order to see the changes. This is tiring and i want to get it
> How can i achieve this....whenever i make change to one of the dependent
> project it is identified by tomcat.
> Thanks in advance.!
For Dynamic Web Projects, the expected way to add "jar" project
dependencies is to use the Deployment Assembly page in the project's
Properties dialog. During publishing, the Java output of the "jar"
projects will be archived into a jar and added to the Dynamic Web
project's WEB-INF/lib. I don't use Maven, so I don't know how well what
it does integrates with this WTP approach. Worst case, I believe you
could create separate "proxy" projects that link into the main Maven
project and create a WTP style set of projects that would use the same
content, but work with the Tomcat server in a normal fashion.
Powered by FUDForum
. Page generated in 0.02136 seconds