title: Maven plugin for calling an external JAR during project build phase
body: <p>I would like to ask for some help related to the following scenario: namely, I have a main Java project (a Java web application deployable via Tomcat server) whose compiled classes I analyze and validate against the application database via a second standalone Java program (callable from the command line) - both projects were created using Maven. Both of these projects are working without any problem when invoked separately, however, I would now need to join them together.<br>
  Concretely, I am now looking for a possibility to join the 2 projects together as follows: when I am deploying the first application via Maven on the Tomcat server, I would like to invoke also the second application for checking the well-formed feature (i.e. validation against the application DB) of this application.<br>
  As I understand, this might be possible from Maven in a similar manner like for the other known plugins (<em>please see an example below</em>), but unfortunately I have not found yet any solution to the problem. Therefore, I would be interested in some recommendations related to the current topic. Thank you in advance for your help,
               Frantisek</p>
  
  <p><a href="http://i.stack.imgur.com/vt9iQ.png" rel="nofollow">Link to sample plugin - Maven Javadoc plugin example</a></p>