aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes  How to open projects (with .project pom.xml) in eclipse ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark " How to open projects (with .project pom.xml) in eclipse ?" Watch " How to open projects (with .project pom.xml) in eclipse ?" New topic
Author

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

majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 164
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

Joined: Mar 24, 2008
Posts: 3855

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)


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Sunny Bhandari
Ranch Hand

Joined: Dec 06, 2010
Posts: 448

.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.


Java Experience
majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 164
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

Joined: May 14, 2008
Posts: 5842
    
    7

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).


JBoss In Action
Hauke Ingmar Schmidt
Rancher

Joined: Nov 18, 2008
Posts: 433
    
    2
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

Joined: May 26, 2003
Posts: 30925
    
158

Pradeep Nitchenametla,
Your post was moved to a new topic.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
Consider Paul's rocket mass heater.
 
subject: How to open projects (with .project pom.xml) in eclipse ?