title: Eclipse Maven: How to build the added dependency first from the project itself?
body: <p>I am using Eclipse with m2e plugin.</p>
  
  <p>The steps I followed are as follows:<br>
  1. Created a sample Maven project<br>
  2. Imported an another Maven project in same workspace<br>
  3. Used imported project as dependency in my sample project  </p>
  
  <p>Now the problem is that since the imported project is not built and does not have target jar file, the sample project is showing error(jar not found).  </p>
  
  <p>So the question is it possible to run the build from sample project, which will build the dependency first, which in turn will be used in sample project build?  </p>
  
  <p>Run sample project build -> Build dependency -> Create dependency jar -> Dependency jar used in sample project build further  </p>
  
  <p>If this is possible, then how to do the same?<br>
  Thank you for any suggestion/feedback. :-)</p>