title: How to make jenkins trigger a build on a dependent projects when a dependency is build
body: <p>I have what seems to be a simple question regarding how to setup Jenkins and maven 3.</p>
  
  <p>For the sake of simplicity lets say that we have four projects:  </p>
  
  <p><strong>Model</strong> which has no dependencies<br>
  <strong>Commons</strong> which depends on Model<br>
  <strong>Server</strong> which depends on Common and Model<br>
  <strong>Frontend</strong> which depends on Model  </p>
  
  <p>What I want to achieve is that a success build on Model triggers new build on all projects which in its pom has a dependency on Model (here Common, Server and Frontend)</p>
  
  <p>If Common fails then there is no need to build Server.</p>
  
  <p>In the above case it seems that I can fix this by manually setting up dependent projects on Model and Commons but this information can already be found in the pom files for each project (Server and Frontend) which makes me conclude/wish that Jenkins should be able to figure this out by it self.</p>
  
  <p>Can Jenkins deduce the dependency tree by parsing the pom on each project defined in Jenkins and do some kind of optimal build order / dependency handling automatically or do I have to setup "Block build when upstream project is building" and "Build after other projects are built [List of dependent projects]" as described above ?</p>
  
  <p>I am using Jenkins version 1.473 and Maven 3.<br>
  Our maven project pom's do not use the parent or module tag.</p>
  
  <p>/Benjamin</p>