Tag Archives: Jetty

Jetty 8 Maven Plugin

I love how easy it is to integrate Jetty into a Maven build but for some reason, all the examples use a 3 year old version of Jetty. Trying to find the latest version of an artefact can be a bit of a pain so here it is 🙂

    <build>
        <plugins>
            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>8.0.4.v20111024</version>
                <configuration>
                    <webApp>
                        <contextPath>/</contextPath>
                    </webApp>
                    <stopPort>9966</stopPort>
                    <stopKey>foo</stopKey>
                </configuration>
            </plugin>
        </plugins>
    </build>