• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven Servlet Application example

 
sai rama krishna
Ranch Hand
Posts: 432
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

http://viralpatel.net/blogs/generate-dynamic-web-project-maven-eclipse-wtp/

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.
MaveEx.JPG
[Thumbnail for MaveEx.JPG]
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?)
 
Neha Kore
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am following the link "http://www.fouzi.com/blog/?p=188" 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
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic