I am using Maven, Eclipse and Tomcat to develop a web application which consists of different modules. When I build the project using Maven I am getting a war file for each module. My question is how to deploy that generated modules into Tomcat server from Eclipse.
Asked
Active
Viewed 237 times
1
-
1I think similar questions have been already asked, see: http://stackoverflow.com/questions/6805880/how-to-install-tomcat-plugin-in-eclipse – Peter Butkovic Nov 27 '12 at 07:22
3 Answers
1
As your are saying that you have different modules there, those will be named like XXXDAO, XXXcommon etc,
Option-1: simply try right click on each module and you will see the option
right click on prject --> Run As --> Run on Server
Among all the module only one module will show this option that is your actual war that will use all other war files
Option-2: if you know about that module then just put that war and put it in web apps folder in tom cat and start tomcat.
if not help you then please show the project and directory structure of your projects.
Note: Your application's Pom.xml will help/guid you a lot. try using that

NoNaMe
- 6,020
- 30
- 82
- 110
0
A good way to do it with just Maven is to use the cargo-maven-plugin. This also makes deployment container-agnostic, and provides several other benefits.

Björn Pollex
- 75,346
- 28
- 201
- 283