aspose file tools
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
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply 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: 160
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: 5543

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: 160
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: 5543

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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Importing Maven project in Eclipse?
 
Similar Threads
Needs to Import Other JAR Files to My Spring Web Services Project
Generate Dynamic Web Project Maven
Adding maven projects to Servers added to Eclipse 3.4
Need Help On A Maven WAR Build Issue
How to run UT in Eclipse/Maven