mvn eclipse:eclipse |
This will generate all the files necessary to import Jetty into Eclipse.
modules directory 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:

M2_REPO in 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.