title: Maven WebApp tomcat7 system properties
body: <p>We are using a maven dependency to add embedded tomcat on our webapplication. It works fine, but I need to add systemProperties to embedded tomcat, so that our webapp can use this systemProperties.</p>
  
  
  
  <pre class="lang-xml prettyprint-override"><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
              &lt;artifactId&gt;tomcat7-maven-plugin&lt;/artifactId&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;tomcat-run&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;exec-war-only&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;configuration&gt;
                          &lt;path&gt;/html5&lt;/path&gt;
                          &lt;enableNaming&gt;true&lt;/enableNaming&gt;
                          &lt;finalName&gt;html5.jar&lt;/finalName&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>I tried to add system properties like this, but it didn't work. I added it</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;configuration&gt;
                  &lt;systemProperties&gt;
                      &lt;dashboard.oracle.host&gt;1.1.1.1&lt;/dashboard.oracle.host&gt;
                      &lt;dashboard.oracle.port&gt;1521&lt;/dashboard.oracle.port&gt;
                      &lt;dashboard.oracle.sid&gt;orcl&lt;/dashboard.oracle.sid&gt;
                      &lt;dashboard.oracle.url&gt;
                          jdbc:oracle:thin:@${dashboard.oracle.host}:${dashboard.oracle.port}:${dashboard.oracle.sid}
                      &lt;/dashboard.oracle.url&gt;
                      &lt;dashboard.oracle.username&gt;username&lt;/dashboard.oracle.username&gt;
                      &lt;dashboard.oracle.password&gt;password&lt;/dashboard.oracle.password&gt;
                  &lt;/systemProperties&gt;
              &lt;/configuration&gt;
              ...
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>