• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Importing Maven project 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 checked out a maven project, the directoruy looks like this :
.settings
[bin]

[src] inside this folder there is [java],[resources] and [webapp] folders.
inside [webapp] there is index.jsp and [WEB-INF].
inside [WEB-INF] there is web.xml and [jsp] folder.

[target]
.classpath
.project
pom.xml

I did :
File --> Import --> Existing Maven projects

The project now appear in Pject Explorer of Eclipse with this contents :
src/main/java
src/main/resources
src/test/java
JRE System Library[JavaSE-1.6]
Maven Dependencies
bin
src
target
pom.xm


My question, where are :
WEB-INF and jsps ?

Thanks, your help is appreciated.
John
 
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
It looks like your project is not a web app project. Such a project would have the folder src/main/webapp/WEB-INF, and the JSPs would be in src/main/webapp
 
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
This is where I got the project :
To download the Eclipse project for this application, please click :

http://www.box.net/shared/9n91enxho1

Please show me the steps to run this project in eclipse.

Thanks.
 
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
The zip file already contains an Eclipse .project file, why not import it via File | Import | General | Existing Projects into Workspace?

Also, the JSPs are exactly where I said they would be.
 
Did you miss me? Did you miss this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic