tomcat7-maven-pluginを使用して組み込みの tomcat を実行すると、次のエラーでクラッシュします。
SEVERE: Missing context.xml
Mavenプラグインに次の構成があります:
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.0</version>
<configuration>
<path>/project_name_test</path>
</configuration>
<executions>
<execution>
<id>tomcat-run</id>
<goals>
<goal>run-war-only</goal>
</goals>
<phase>pre-integration-test</phase>
<configuration>
<fork>true</fork>
</configuration>
</execution>
<execution>
<id>tomcat-shutdown</id>
<goals>
<goal>shutdown</goal>
</goals>
<phase>post-integration-test</phase>
</execution>
</executions>
</plugin>
デフォルトコンテキストのオプションはありますか? コンテキストを作成したくありません - このアプリケーション サーバーにアップロードされる war ファイルがあります。
編集:
問題が見つかりました。context.xml を無視するには、必要なパラメーターを含む属性を追加する必要があります。例えば :
<configuration>
<url>http://localhost:8080/manager</url>
<server>localhost</server>
<path>/${project.build.finalName}</path>
</configuration>