Adding System Properties

You can add system properties when running tomcat (mvn tomcat:run). The syntax has the following format :

<project>
  ...
  <build>
    ...
    <plugins>
      ...
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>tomcat-maven-plugin</artifactId>
        <version>1.0-SNAPSHOT</version>
        <configuration>
          <systemProperties>
                    <example.value.1>alpha</example.value.1>
                    <example.value.2>beta</example.value.2>
                  </systemProperties>

        </configuration>
      </plugin>
      ...
    </plugins>
    ...
  </build>
  ...
</project>