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
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven Servlet Application example" Watch "Maven Servlet Application example" New topic
Author

Maven Servlet Application example

sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 250
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.


[Thumbnail for MaveEx.JPG]

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

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
Greenhorn

Joined: Feb 13, 2012
Posts: 9
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

Joined: May 14, 2008
Posts: 5827
    
    7

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.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven Servlet Application example