aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven Servlet Application example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven Servlet Application example" Watch "Maven Servlet Application example" New topic

Maven Servlet Application example

sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 160

I am trying to build following maven servlet application example as given in the following link.

I did all eclipse, maven set up and created Maven Project and did all steps until step 3.

At Step#4, I am struck.

Step 4 says: Setting Build Path
We need to specify the Maven jar dependencies in Java Build Path of our MavenWeb project. Open Properties.. dialog box (Alt+Enter) and select Java Build Path. Click “Add Library..” button and select “Maven Managed Dependencies” and click Finish.

I opened Properties.. dialog box (Alt+Enter) and select Java Build Path. Click “Add Library..” button. When I try to select 'Maven Managed Dependencies' I could not see that as shown in the attachment. Can you please advise on what I am missing. Thanks in advance.

[Thumbnail for MaveEx.JPG]

Peter Johnson

Joined: May 14, 2008
Posts: 5772

The problem with following old tutorials is that the technology changes so fast that the tutorial is no longer valid. With the latest Eclipse and m2e plugin, the project build path is handled automatically. So that step is no longer required. Try expanding your project in the Project Explorer view in Eclipse, you should see a Maven Dependencies entry.

(I tried searching for an updated tutorial but could not find one. How to people expect their tools to be used if they don't tell anyone how to use them?)

JBoss In Action
Neha Kore

Joined: Feb 13, 2012
Posts: 8

I am following the link "" for developing a simple web application and i am not able to follow step2 of this example.
I am using eclipse helios for this example, which is not showing the option for selecting maven atall. can any body help me?

Thanks in advance.
Peter Johnson

Joined: May 14, 2008
Posts: 5772

If there are no Maven options within Eclipse, then you probably did not install the m2e plugin. (Eclipse didn't automatically include m2e in the IDE for Java Developer's package until the Indigo release.)
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Maven Servlet Application example
Similar Threads
Setting runtime classpath in WSAD 5.0...
adding jar files
Eclipse - how to import classes?
eclipse 3.0 and java 5
Add JDK/JRE to Eclipse project