title: How to configure maven hbm2hbmxml and hbm2java to run one after the other in mvn clean install
body: <p>I need to be able to call mvn clean install and have maven call hibernate3:hbm2hbmxml to generate the mapping files from a database and after than call hbm2java to get the Java files and then have maven compile those newly created Java files. 
  Has anyone done this before? </p>
  
  <p>Thanks</p>