title: Howto pass Java system properties to maven-cargo container
body: <p>I'm preparing a maven2 web project for continuous integration. I use the <a href="http://cargo.codehaus.org/Maven2+plugin" rel="nofollow noreferrer">maven cargo plugin</a> to automatically deploy the WAR to Tomcat6x before running integration tests.</p>
  
  <p>My code depends on some system properties which are set with <code>MAVEN_OPTS=-Dfoo=bar</code>. Unfortunately these properties are missing when the application is deployed to Tomcat:</p>
  
  <pre><code>System.getProperty("foo"); // null, when deployed to container by maven-cargo
  </code></pre>
  
  <p>How can I pass these properties to Tomcat?</p>