web.xml を使用せずに Java クラスで構成した Spring-Maven プロジェクトがあります。「mvn jetty:run」でデプロイすると、「web.xml が場所 ../src/main/webapp/WEB-INF/web.xml に存在しません」というエラーが表示されます。
これは、pom.xml で定義した私のプラグインです。
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.10</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<stopKey>foo</stopKey>
<stopPort>9999</stopPort>
</configuration>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
<execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
Jetty Documentation から読んだように、jetty:run
ゴールの構成で web.xml の場所を定義できます。Jetty が私の WebConfig クラスを web.xml として使用するように、これを構成することもできますか?