File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven web project: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven web project: "Run on server" option?" Watch "Maven web project: "Run on server" option?" New topic

Maven web project: "Run on server" option?

Swerrgy Smith
Ranch Hand

Joined: Mar 26, 2010
Posts: 93
Hi all,

I am a Maven beginner. I have just created a Web project with m2eclipse.
However, when I right click on the project and choose "Run As", I did not see the option "Run on server" option as I always see with other Web projects.
(However, I can build the war file and deploy on Tomcat). What can I do to see this option so that I don't have to build war file and then deploy it?

Thank you very much.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Your project needs the "Dynamic Web Module" facet (under Project Facets in the project's properties dialog) to show that menu entry. You probably need to install the "Maven Integration for WTP" extensions from the Eclipse marketplace. Once you do that I'm not sure if simply adding the correct facet will be sufficient or if you will have to recreate the project to get that facet.

JBoss In Action
I agree. Here's the link:
subject: Maven web project: "Run on server" option?
jQuery in Action, 3rd edition