Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » maven multimodule hot deployment in tomcat
maven multimodule hot deployment in tomcat [message #707697] Tue, 02 August 2011 00:50 Go to next message
Rakesh Sinha is currently offline Rakesh SinhaFriend
Messages: 1
Registered: August 2011
Junior Member
Hi,
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 fixed.
How can i achieve this....whenever i make change to one of the dependent project it is identified by tomcat.
Thanks in advance.!
Rakesh
Re: maven multimodule hot deployment in tomcat [message #709092 is a reply to message #707697] Wed, 03 August 2011 13:34 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 8/1/2011 8:50 PM, Rakesh Sinha wrote:
> Hi,
> 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
> fixed.
> How can i achieve this....whenever i make change to one of the dependent
> project it is identified by tomcat.
> Thanks in advance.!
> Rakesh

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.

Cheers,
Larry
Previous Topic:Validation Builder runs on startup?
Next Topic:Xml editor
Goto Forum:
  


Current Time: Thu Apr 25 10:52:13 GMT 2024

Powered by FUDForum. Page generated in 0.03030 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top