By choosing the right download method for your workflow, you can leverage Jetty's performance whether you are building a simple website or a massive distributed microservice architecture.
This command tells Maven to download the necessary Jetty libraries into your local repository and boot the server instantly. 3. Alternative Download Methods
: For containerized environments, you can pull the official image from Docker Hub: docker pull jetty Use code with caution. Summary Checklist Standalone Server Download .zip or .tar.gz from Eclipse.dev Embedded Java App Add jetty-server to Maven pom.xml Rapid Testing Use mvn jetty:run plugin Containers Pull the official Jetty Docker image download jetty
Once downloaded, extract the archive to your preferred directory (often referred to as $JETTY_HOME ). To verify the installation, open your terminal and run: java -jar start.jar Use code with caution. By default, this starts the server on port 8080. 2. Using Maven to "Download" Jetty
The primary source for all Jetty versions is the Eclipse Jetty Download Page. Here, you will find several active versions: By choosing the right download method for your
To use Jetty in an embedded fashion, add the following to your pom.xml :
If you want to run Jetty as a traditional server where you drop WAR files into a webapps folder, the standalone distribution is your best bet. Step 1: Visit the Official Eclipse Jetty Site By default, this starts the server on port 8080
: It handles thousands of simultaneous connections with a very small memory overhead.
: Jetty has long been a pioneer in WebSocket implementations , making it ideal for real-time applications. 1. Download the Standalone Jetty Distribution
: Run brew install jetty to get the latest stable version added to your system path.