title: Multi-module Maven project and jetty:run
body: <p>I'm trying to split a Maven WAR project into two modules, so that I can build a separate JAR file with command line tools. The result has the following structure:</p>
  
  <ul>
  <li><code>pom.xml</code> (packaging <code>pom</code>, has two modules)</li>
  <li><code>project-jar/</code>
  
  <ul>
  <li><code>pom.xml</code> (packaging <code>jar</code>)</li>
  </ul></li>
  <li><code>project-war/</code>
  
  <ul>
  <li><code>pom.xml</code> (packaging <code>war</code>, depends on <code>project-jar</code>)</li>
  </ul></li>
  </ul>
  
  <p>If I run <code>mvn</code> commands from the root, everything works fine. I'd like to keep using <code>mvn jetty:run</code>, but for that I need to execute the command in the WAR subproject. If I do that, fails to find the <code>project-jar</code> subproject, so it won't run. Even <code>mvn jetty:run-war</code> with a completely assembled WAR file in the <code>target</code> directory fails, because it first tries to "build" the project. I've only managed to make it work by installing <code>project-jar</code> into the local Maven repository, which isn't very nice.</p>
  
  <p>Is there a way to use the Jetty plugin in a multi-module Maven configuration?</p>