wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Importing Maven project in Eclipse? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Importing Maven project in Eclipse?" Watch "Importing Maven project in Eclipse?" New topic
Author

Importing Maven project in Eclipse?

majid nakit
Ranch Hand

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

Joined: May 14, 2008
Posts: 5812
    
    7

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


JBoss In Action
majid nakit
Ranch Hand

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

Joined: May 14, 2008
Posts: 5812
    
    7

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Importing Maven project in Eclipse?
 
Similar Threads
Needs to Import Other JAR Files to My Spring Web Services Project
How to run UT in Eclipse/Maven
Need Help On A Maven WAR Build Issue
Adding maven projects to Servers added to Eclipse 3.4
Generate Dynamic Web Project Maven