title: Insert custom build code / invoke java programm with Maven during build
body: <p>I am having a project where there is code being generated by a third-party tool (typically invoked from the command line). I would like to align this tool with our maven build setup, i.e. I would like to have it invoked, for example before <code>maven compile</code>.</p>
  
  <p>Is there a way to execute an arbitrary Java program using one of the numerous maven plugins? Where would I insert it in the POM?</p>