Jetty has moved!
Jetty is a project at the Eclipse Foundation.
Jetty is a project at the Eclipse Foundation.
| Homepage: | http://www.eclipse.org/jetty |
| Downloads: | http://download.eclipse.org/jetty/ |
| Documentation: | http://www.eclipse.org/jetty/documentation/current/ |
| About: | http://www.eclipse.org/jetty/about.php |
| Jetty Powered: | http://www.eclipse.org/jetty/powered/ |
Contact the core Jetty developers at
www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
Skip to end of metadata
Go to start of metadata
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
Importing Jetty Source into Eclipse
- Step 1: You need to have a recent maven2 installed in your environment. Then run:
mvn eclipse:eclipse
This will generate all the files necessary to import Jetty into Eclipse.
- Step 2: Run Eclipse. Select the File->Import... menu item. Select the Existing Projects into Workspace option and click Next. Type in or use the Browse button to enter the location of the
modulesdirectory in Jetty. For example, if Jetty is installed at/home/janb/src/jetty-6, then you would enter/home/janb/src/jetty-6/modules. Your dialog box should look like this:

- Step 3: You should now have all of the Jetty submodules imported into your workspace, although with compilation errors. Your Eclipse should look like:

- Step 4: The maven generated Eclipse files will reference a variable called M2_REPO. You need to define that in your workspace. To do that, select the Preferences ... menu item. Select the Java->Build Path->Classpath Variables item from the dialog. Click New and enter
M2_REPOin the Name: field. Enter or browse to the location of your local maven repository. Usually, this will be in your home directory as~/.m2/repository. Click OK. A dialog box will appear warning you that you are changing the classpath. Click on the OK button to do a full build using the new variable you have just added.
You're finished, Jetty is imported into Eclipse.
You might also want to check out how to Debugging Jetty with Eclipse and Debugging with the Maven Jetty Plugin inside Eclipse.
Labels
1 Comment
Hide/Show CommentsNov 08, 2006
Rémy Roy
On windows:
You need to run the command in step 1 in Jetty root directory. You'll need a cvs command line client to get some files off the internet. I suggest you get the free cvs client, cvsnt, from http://www.march-hare.com/cvspro/ .
In step 4, the Preferences ... menu item can be found in the Window menu. The M2_REPO directory will probably be located in %HOMEDRIVE%%HOMEPATH%\.m2\repository . To find out what it is, type "echo %HOMEDRIVE%%HOMEPATH%\.m2\repository" in a command line window.