• 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

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

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Ranch Hand
Posts: 448
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
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
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).
 
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pradeep Nitchenametla,
Your post was moved to a new topic.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic