aspose file tools*
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
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
Author

Maven web project: "Run on server" option?

Swerrgy Smith
Ranch Hand

Joined: Mar 26, 2010
Posts: 91
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
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

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
 
 
subject: Maven web project: "Run on server" option?