2

桟橋に 2 つの戦争を展開しようとしています。最初の戦争は展開されていますが、2 番目の戦争は展開されていません。これはプラグインの私の構成です:

<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.maven.plugin.version}</version>
<configuration>
    <stopKey>stop</stopKey>
    <stopPort>9999</stopPort>
    <war>${project.build.directory}/integration-test/webapp-fast.war</war>
    <webApp>
        <contextPath>/webapp-fast</contextPath>
    </webApp>
    <contextHandlers>  
        <contextHandler implementation="org.eclipse.jetty.webapp.WebAppContext">
          <war>${project.build.directory}/integration-test/stubs.war</war>
          <contextPath>/stubs</contextPath>
        </contextHandler>
            </contextHandlers>  
</configuration>
<executions>
    <execution>
        <id>start-jetty</id>
        <phase>pre-integration-test</phase>
        <goals>
            <goal>deploy-war</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>

私は何を間違っていますか?

4

1 に答える 1

0

contextHandlers を使用して両方の war を展開してみてください。

<contextHandlers>  
    <contextHandler implementation="org.eclipse.jetty.webapp.WebAppContext">
      <war>${project.build.directory}/integration-test/stubs.war</war>
      <contextPath>/stubs</contextPath>
    </contextHandler>
    <contextHandler implementation="org.eclipse.jetty.webapp.WebAppContext">
      <war>${project.build.directory}/integration-test/webapp-fast.war</war>
      <contextPath>/webapp-fast</contextPath>
    </contextHandler>
</contextHandlers>
于 2012-12-20T14:24:55.337 に答える