title: Maven pom to generate classfiles for another pom
body: <p>I have a Maven project that depends on generated sources.  These sources need to be generated by a java program built by another maven pom.  (In this case the sources are generated by the greendao source generator, but they could be generated by any generic java executable.)</p>
  
  <p>I haven't dealt with this sort of interdependency between maven projects before.  Assuming I want to use a reactor to build these two submodules, how can I ensure that the first module is built AND executed and generates its source files to be included in the second module?</p>