title: How can a maven project depend on another local maven project?
body: <p>I'm having two maven project <code>project/foo/pom.xml</code> and <code>project/bar/pom.xml</code>. I have <code>foo</code> depend on <code>bar, and I want that every time</code>foo/pom.xml<code>compiles, it'll automatically compile</code>bar`.</p>
  
  <p>How can I do that with maven?</p>
  
  <p><strong>Update:</strong> I can tuck them both into a parent project, but then, what will I do if I want to run <code>mvn jetty:run</code> on a child project?</p>