Difference between revisions of "Jetty/Howto/Jars"

From Eclipsepedia

< Jetty‎ | Howto
Jump to: navigation, search
m
m
Line 6: Line 6:
  
 
|steps=
 
|steps=
=== Use Start.jar ===
+
=== Using Start.jar ===
  
 
You can use the he individual Jetty Jars directly by constructing your own classpath, or you can use the [[Jetty/Feature/Start.jar|start.jar]] utility to build a classpath.
 
You can use the he individual Jetty Jars directly by constructing your own classpath, or you can use the [[Jetty/Feature/Start.jar|start.jar]] utility to build a classpath.
  
=== Use Maven ===
+
=== Using Maven ===
 
During development, the [[Jetty/Howto/Use_Jetty_with_Maven|maven]] build tool is ideal for accessing Jetty Jars and their dependencies.   
 
During development, the [[Jetty/Howto/Use_Jetty_with_Maven|maven]] build tool is ideal for accessing Jetty Jars and their dependencies.   
  
=== Aggregate Jars ===
+
=== Using Aggregate Jars ===
 
You can also use the aggregate Jars to reduce the number of Jars required.  
 
You can also use the aggregate Jars to reduce the number of Jars required.  
 +
 +
When embedding Jetty in other applications, it might be inconvenient and/or verbose to include the many small Jars that comprise Jetty.  The several aggregate Jars  combine many smaller Jars into a single Jar.
 +
 +
Aggregate Jars are available as a Maven artifact under the org.eclipse.jetty.aggregate group ID.
 +
 +
The aggregate Jars available are:
 +
* jetty-all
 +
* jetty-all-server
 +
* jetty-client
 +
* jetty-plus
 +
* jetty-server
 +
* jetty-servlet
 +
* jetty-webapp
  
 
}}
 
}}

Revision as of 17:42, 6 February 2012



Contents

Introduction

Jetty is decomposed into many Jars providing utilities, HTTP, server, client, servlets and many optional features. It can be difficult to track which Jars are required and their dependencies.

The Jetty Dependencies reference explains the Jetty Jar structure.


Steps

Using Start.jar

You can use the he individual Jetty Jars directly by constructing your own classpath, or you can use the start.jar utility to build a classpath.

Using Maven

During development, the maven build tool is ideal for accessing Jetty Jars and their dependencies.

Using Aggregate Jars

You can also use the aggregate Jars to reduce the number of Jars required.

When embedding Jetty in other applications, it might be inconvenient and/or verbose to include the many small Jars that comprise Jetty. The several aggregate Jars combine many smaller Jars into a single Jar.

Aggregate Jars are available as a Maven artifact under the org.eclipse.jetty.aggregate group ID.

The aggregate Jars available are:

  • jetty-all
  • jetty-all-server
  • jetty-client
  • jetty-plus
  • jetty-server
  • jetty-servlet
  • jetty-webapp