title: How do I add a project as a dependency of another project?
body: <p>There are two independent projects (<code>myWarProject</code> and <code>MyEjbProject</code>). So when I build the <code>myWarProject</code> I need to install the <code>MyEjbProject</code> in to the local repository, so then I can define in the myWarProject as dependency and package the myWarProject successfully.</p>
  
  <p>Is there a way to handle this without install the <code>MyEjbProject</code> separately and also without defining as parent modules.</p>
  
  <p>I know this can be achieved through ant build, but wonder whether there is a way to handle through maven?</p>
  
  <p>We can create the parent project with "pom" and move the other two under the parent project. However, unfortunately I cannot do this as currently we already have those two as separate projects in the CVS which I cannot change the structure. If I can handle this through pom file, this is what Im looking for.</p>