Jetty 在码头部署多个项目(war)

Jetty 在码头部署多个项目(war),jetty,solr4,Jetty,Solr4,我使用的是默认情况下Jetty附带的Solr。使用solr jetty context.xml文件中的以下配置部署solr.war <Configure class="org.eclipse.jetty.webapp.WebAppContext"> <Set name="contextPath"><SystemProperty name="hostContext" default="/solr"/></Set> <Set name="

我使用的是默认情况下Jetty附带的Solr。使用
solr jetty context.xml
文件中的以下配置部署
solr.war

<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <Set name="contextPath"><SystemProperty name="hostContext" default="/solr"/></Set>
  <Set name="war"><SystemProperty name="jetty.home"/>/webapps/solr.war</Set>
  <Set name="defaultsDescriptor"><SystemProperty name="jetty.home"/>/etc/webdefault.xml</Set>
  <Set name="tempDirectory"><Property name="jetty.home" default="."/>/solr-webapp</Set>
</Configure>

/webapps/solr.war
/etc/webdefault.xml
/solr网络应用程序

现在我想在同一jetty服务器上部署一个自定义html页面,比如“
home.html
”。如何确保“
home.html
”页面和
solr.war
都同时部署在jetty上。我尝试将
home.html
放在webapps文件夹中,但不起作用。

home.html
放在名为
root.war
的.war中并部署。您的
home.html
文件将在
http://.../home.html
而Solr仍将是
http://.../solr/

有关参考,请参阅