• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maven Servlet Application example

 
Ranch Hand
Posts: 930
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?)
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic