I've recently had to tackle the same issue, getting Jetty 7 to run inside Maven 3 and initialize with rewrite rules in place. There's just two components: the pom.xml, jetty.xml
Here's a snippet of pom.xml:
<profile>
<id>jetty</id>
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.2.2.v20101205</version>
<configuration>
<jettyConfig>${project.basedir}/config/jetty7/jetty.xml</jettyConfig>
<webAppConfig>
<contextPath>/${project.artifactId}</contextPath>
</webAppConfig>
<scanIntervalSeconds>10</scanIntervalSeconds>
</configuration>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-http</artifactId>
<version>7.2.2.v20101205</version>
<type>jar</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-rewrite</artifactId>
<version>7.2.2.v20101205</version>
<type>jar</type>
<scope>runtime</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
You'll notice that we've explicitly set the Jetty configuration file. This file must match the version of Jetty you're using. We had trouble with other stable releases, and thus chose 7.2.2.v20101205 as you can see above. Once you've obtained that jetty.xml, you'll need to add the following code to the bottom of it.
<Get id="oldhandler" name="handler"/>
<Set name="handler">
<New id="Rewrite" class="org.eclipse.jetty.rewrite.handler.RewriteHandler">
<Set name="handler">
<Ref id="oldhandler" />
</Set>
<Set name="rewriteRequestURI">true</Set>
<Set name="rewritePathInfo">false</Set>
<Set name="originalPathAttribute">requestedPath</Set>
<!-- Added for mainsite js tagging files -->
<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.RedirectPatternRule">
<Set name="pattern">/redirect/*</Set>
<Set name="location">/redirected</Set>
</New>
</Arg>
</Call>
</New>
</Set>
The syntax for the Jetty rewrites can be easily found on the internet as well in the etc/jetty-rewrite.xml file that will be packaged in a Jetty 7.x tar.