title: How to compile dependency in maven?
body: <p>Scenario: </p>
  
  <p>I have a main level project A and within A , two child projects B and C worked on by different developers , but they agree on the abstraction through common interfaces.</p>
  
  <p>B depends on C (dependency).
  In B's pom I added </p>
  
  <pre><code>&lt;dependency&gt; .. details of project C..&lt;/dependency&gt; .
  </code></pre>
  
  <p>Doing this, maven inserts the dependencies fine  except that project C is not recompiled.</p>
  
  <p>I want project C to automatically re-compile every time I compile B. </p>