Perhaps due to changes in the "jetty:run-war" goal of the
maven-jetty-plugin, the usage in shindig/pom.xml is no longer correct.

We have:

  <plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>maven-jetty-plugin</artifactId>
    <configuration>
      <tempDirectory>${basedir}/java/server/target/work</tempDirectory>
 
<webApp>${basedir}/java/server/target/shindig-server-${pom.version}.war<
/webApp>
      <contextPath>/</contextPath>
 
<webXml>${basedir}/java/server/target/shindig-server-${pom.version}/WEB-
INF/web.${runType}.xml</webXml>
    </configuration>
  </plugin>

However, in the current version of "jetty:run-war" as documented here --
http://jetty.mortbay.org/jetty/maven-plugin/run-war-mojo.html -- and
verified by my testing,

1) <tempDirectory> should be replaced with <tmpDirectory>
2) <webXml> is not a valid parameter and is ignored

(Number 2 caused us quite a bit of debugging time).

For number 1, it's pretty clear how to fix the problem :-)

For number 2, however, the solution could be trickier. The closest thing
that the plugin seems to support is <overrideWebXml>, the use of which
would require a bit of refactoring of our various web*.xml files into a
base web.xml and various add-ons. For now, the plugin is always simply
using web.xml.

Anyone else encounter this?

Thanks,
Dave

Reply via email to