title: Starting an H2 Database Server from Maven?
body: <p>Suppose I want to create and use an H2 database for my integration tests.</p>
  
  <p>Maven has a command to run tests: <code>mvn test</code>.</p>
  
  <p>Is there a way to tell maven to start an H2 database server for the tests and stop it when it's done?</p>
  
  <p>I imagine this working similar to how I can run tomcat via a Maven command (<code>mvn tomcat:run</code>).</p>
  
  <p><em>Sorry if this question is nonsensical, I'm still wrapping my head around new concepts.</em></p>