File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to open projects (with .project pom.xml) in eclipse ?

 
majid nakit
Ranch Hand
Posts: 167
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new here.

How to open projects (with .project pom.xml) in eclipse ?

I was reading a tutorial about springMVC, I downloaded and extracted the project :

.settings folder
src folder
target folder
.classpath
.project
.springBeans
pom.xml

Thanks, your help is appreciated.
 
Vijitha Kumara
Bartender
Posts: 3909
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to import Maven projects you should have m2eclipse plug-in (how to install) which works with Eclipse 3.6 onwards.

Edit: Looks like it works with Gallileo too, but I haven't tried it myself (link)
 
Sunny Bhandari
Ranch Hand
Posts: 448
Eclipse IDE Firefox Browser Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.project is a meta data file of Eclipse only.

pom.xml is the configuration file of Maven and Vijitha has pointed to the correct plugin.
 
majid nakit
Ranch Hand
Posts: 167
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I just installed m2eclipse plug-in in eclipse.

I did now :
File --> Import -->Maven2--> Maven 2 project

I got this:

http://www.freeimagehosting.net/uploads/345d7d3c9b.png



It's does not look like a web application, there is no lib, I appreciate your help.
thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see nothing wrong with the image you posted, looks like a typical Maven directory structure. If you expand src you should see src/main/webapp. And there is never a lib directory in a Maven project (not even at src/main/webapp/WEB-INF/lib, and don't try to put one there either!)

Your question leads me to suspect that you have not worked with Maven before. If that is true, you should spent some time reading about Maven or else you will just get frustrated (and make lots of mistakes because you will make lots of invalid assumptions).
 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have Eclipse IAM installed, deinstall it. The POM icon in your screenshot looks like the one used by IAM. Nothing personal against it, but having two Maven integrations installed parallel will certainly confuse.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33716
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pradeep Nitchenametla,
Your post was moved to a new topic.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic