Jetty Introduction
After Jetty7, it has been owned by Eclipse's products and its homepage is: http://wiki.eclipse.org/Jetty/
Jetty is a lighter and more flexible web container than tomcat, and we can use jetty to debug WebApp with Eclipse
Jetty Document Reading
Http://wiki.eclipse.org/Jetty this describes in detail all aspects of Jetty, such as several important aspects:
1. Embedded Sample Embedding Jetty
Jetty except that it can run independently like Tomcat, and can be embedded inside the program as an SDK invocation, Jetty has a famous saying: "T deploy your application in Jetty, deploy Jetty in your Application
2. Jetty can also be embedded in eclipse by run-jetty-run this eclipse plugin to run
Using MAVEN to introduce Jietty
Wiki article: Using Jetty with Eclipse in Build/ide integration details how to introduce Jetty Dependy, as follows:
<!--TODO 1 Pick The version of jetty you want. -
<properties>
<jetty.version>7.1.6.v20100715</jetty.version>
</ Properties>
<!--TODO 2 Configure repo2.maven.org as a repository.-
<repositories>
< repository>
<id>repo2_maven_org</id>
<url>http://repo2.maven.org/maven2</url >
</repository>
</repositories>
<!--TODO 3 Set up dependency to get the Jetty-server Artifact. -
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>${jetty.version}</version>
</dependency>
</dependencies>