Blankman
Blankman

Reputation: 267230

How can I import jetty source code into eclipse?

I'm trying to import the jetty source code into eclipse.

I went to:

Import -> General | Existing projects into workspace

then browsed to the folder that has all the jetty related projects:

enter image description here

Then it doesn't seem to pick up any of the individual projects, the projects pane is empty.

What am I doing wrong here?

Upvotes: 0

Views: 1448

Answers (1)

Joakim Erdfelt
Joakim Erdfelt

Reputation: 49525

Jetty is a Maven project.

You'll want to do the following ...

  1. Install the m2e plugin.
    • [menu] Help > Eclipse Marketplace
    • Search for "m2e"
    • Install "Maven Integration for Eclipse"
  2. Checkout the source code for jetty somewhere onto your disk (or just unpack the source zip file)
  3. Import the maven projects
    • [menu] File > Import
    • [tree] Maven > Existing Maven Projects
    • [Next button]
    • Browse to the top folder of the jetty source tree.
    • Hit Next / Finish to then import all of jetty into eclipse.
  4. Wait for Eclipse + M2E to settle down with its compilation and project setup.

Upvotes: 4

Related Questions