Jetty embedded bootstrap library. Make it easy to embed Jetty into your maven project and package a standalone app.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
jetty-bootstrap-annotations
jetty-bootstrap-jsp
jetty-bootstrap-logs
jetty-bootstrap-servlets
jetty-bootstrap-standalone
jetty-bootstrap-websocket
jetty-bootstrap
.gitignore
LICENSE
README.md
pom.xml

README.md

Starter Kit for building standalone application embedding Jetty Application Server

http://jetty-bootstrap.io

Description

Jetty-Bootstrap library make it easy to embed Jetty into your maven project and package a standalone app. Provides a fluent API to expose web application(s) and service(s), configure the server settings and package the whole application with a low footprint.

  • Read the documentation for usage details.
  • Browse sample projects source using this lib here.

Requirements

  • Java 7
  • Maven

Sample

In case you have your war file on the file system (e.g. /tmp/webapp.war), it is as simple as this:

JettyBootstrap bootstrap = new JettyBootstrap();
bootstrap.addWarApp("/tmp/webapp.war", "/contextName");
bootstrap.startServer();

Maven dependency to include on your project

<dependency>
	<groupId>org.teknux</groupId>
	<artifactId>jetty-bootstrap</artifactId>
	<version>x.x.x</version>
</dependency>

Sponsor

  • Supported by JetBrains
  • Developed with IntelliJ IDEA