- 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.Step 4: There is no step 4! You now have Jetty
You're finished, Jetty is imported into Eclipse.