Difference between revisions of "Jetty/Howto/Use Jetty with Maven"

From Eclipsepedia

< Jetty‎ | Howto
Jump to: navigation, search
(New page: TBA)
 
Line 1: Line 1:
TBA
+
Some very simple instructions that will let you execute the SimplestServer example from the [[Jetty/Tutorial/Embedding Jetty | Embedding Jetty]] tutorial.
 +
 
 +
In your pom enter the following.
 +
 +
    &lt;!-- TODO 1 Pick the version of jetty you want. --&gt;
 +
    <properties>
 +
        <jetty.version>7.1.6.v20100715</jetty.version>
 +
    </properties>
 +
 +
    &lt;!-- TODO 2 Configure repo2.maven.org as a repository. --&gt;
 +
    <repositories>
 +
        <repository>
 +
            <id>repo2_maven_org</id>
 +
            <url>http://repo2.maven.org/maven2</url>
 +
        </repository>
 +
    </repositories>
 +
   
 +
    &lt;!-- TODO 3 Set up dependencies --&gt;
 +
    <dependencies>
 +
        <dependency>
 +
            <groupId>org.eclipse.jetty</groupId>
 +
            <artifactId>jetty-server</artifactId>
 +
            <version>${jetty.version}</version>
 +
        </dependency>
 +
    </dependencies>

Revision as of 22:39, 15 September 2010

Some very simple instructions that will let you execute the SimplestServer example from the Embedding Jetty tutorial.

In your pom enter the following.

   <!-- 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 dependencies -->
   <dependencies>
       <dependency>
           <groupId>org.eclipse.jetty</groupId>
           <artifactId>jetty-server</artifactId>
           <version>${jetty.version}</version>
       </dependency>
   </dependencies>