title: maven custom build sequence
body: <p>I want to be able to execute the build of one module, in the middle of the building of an other module, but can't find how to deal with this.</p>
  
  <p>I have a project with 3 modules : dao, dbGenerator and appli.
  project : 
  |- dao : hibernate dao. Needs an instance of the db to execute unit tests.
  |- dbGenerator : depends on dao. Its build generates the db of the appli.
  |- appli depends on dao : uses the db generated during build of dbGenerator.</p>
  
  <p>Todays build sequence :</p>
  
  <ol>
  <li>dao (-> install), but my problem is that is uses an instance of the db to execute unit tests. So a added an instance of the db in the resources</li>
  <li>dbGenerator (-> install) : compile, then generates the db instance</li>
  <li>appli (-> install) : get the db that was generated, then build, test, package</li>
  </ol>
  
  <p>Expected build sequence would be something like this :</p>
  
  <ol>
  <li>dao (->compile)</li>
  <li>dbGenerator (-> install)</li>
  <li>dao (test->install)</li>
  <li>appli (->install)</li>
  </ol>
  
  <p>Thanks for your help</p>
  
  <p>[Edit] 
  to be more precise, my expectations are that dao unit tests can be executed, using the db generated by dbGenerator.</p>