Skip to content

Configuration Overview

marcobuss edited this page Jun 29, 2011 · 6 revisions

Overview

Configuration

<configuration>
        <tomcatHttpPort>8080</tomcatHttpPort>
        <tomcatShutdownPort>8005</tomcatShutdownPort>
        <tomcatShutdownCommand>SHUTDOWN</tomcatShutdownCommand>
        <tomcatVersion>7.0.6</tomcatVersion>
        <tomcatSetAwait>true</tomcatSetAwait>
        <tomcatConfigDirectory>${basedir}/src/main/tomcat/conf</tomcatConfigDirectory>
        <lookInside>false</lookInside>
        <scanners>
          <scannerConfiguration />
        </scanners>
        <systemProperties>
          <systemProperty>
            <key>XXXXX</key>
            <value>${basedir}</value>
          </systemProperty>
        </systemProperties>
        <libs>
                <jarArtifact>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.1.13</version>
                </jarArtifact>
                <jarArtifact>
                        <groupId>commons-logging</groupId>
                        <artifactId>commons-logging</artifactId>
                        <version>1.1.1</version>
                </jarArtifact>
                <jarArtifact>
                        <groupId>org.apache.geronimo.specs</groupId>
                        <artifactId>geronimo-jms_1.1_spec</artifactId>
                        <version>1.1.1</version>
                </jarArtifact>
                <jarArtifact>
                        <groupId>org.apache.geronimo.specs</groupId>
                        <artifactId>geronimo-j2ee-management_1.1_spec</artifactId>
                        <version>1.0.1</version>
                </jarArtifact>
                <jarArtifact>
                        <groupId>org.apache.geronimo.specs</groupId>
                        <artifactId>geronimo-jta_1.1_spec</artifactId>
                        <version>1.1.1</version>
                </jarArtifact>
                <jarArtifact>
                        <groupId>org.apache.activemq</groupId>
                        <artifactId>activemq-core</artifactId>
                        <version>5.4.0</version>
                </jarArtifact>
        </libs>
        <webapps>
                <webappArtifact>
                        <groupId>org.jasig.cas</groupId>
                        <artifactId>cas-server-webapp</artifactId>
                        <version>3.4.2</version>
                        <contextPath>cas</contextPath>
                </webappArtifact>
                <webappArtifact>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts2-mailreader</artifactId>
                        <version>2.1.8</version>
                        <contextPath>mailreader</contextPath>
                </webappArtifact>
        </webapps>
</configuration>

In Detail

tomcatHttpPort

  • default: 8080 (Tomcat-Default)

This configures the port tomcat is listening for http connections. 8080 is the default http-connector-port on tomcat.

tomcatShutdownPort

  • default: 8005 (Tomcat-Default)

Tomcat is listening on this port for a connection to shutdown the server. 8005 is the default on tomcat.

tomcatShutdownCommand

  • default: SHUTDOWN (Tomcat-Default)

The messagethat is send to tomcat to shutdown the server.

tomcatVersion

  • default: 7.0.6

With this parameter you can decide which version of tomcat to run with the plugin. If you want to run a version of Tomcat 6 configure a valid version.

tomcatSetAwait

  • default: true

When this parameter is set to true the maven-build halts when tomcat is up and running. With Ctrl+C the process will be killed. You can also stop the server with the stop-server-mojo (mvn t7:stop server) from a .

tomcatConfigDirectory

  • default: ${basedir}/src/main/tomcat/conf

This parameter specify a directory where you can provide your tomcat configuration files (server.xml, context.xml, logging.properties etc. ) that should be used by the tomcat when running. When this parameter is not configured or does not exist the tomcat runs with default configuration files that comes with the official tomcat release from apache.

systemProperties

  • default: none

Use this section to set systemproperties. You can use placeholder that maven is able to resolve (${basedir}, ${build.finalname}).

libs

  • default: empty

Lists artifacts (jars) that will be resolved and copied to the 'tomcat/lib'-directory. We use that mostly for jdbc-driver or other shared libraries.

webapps

  • default: empty

List artifacts (wars) that will be resolved and placed to the 'tomcat/webapps'-directory. It is possible to configure an 'contextPath' with the 'contextPath'-element at the 'webappArtifact'-element.

scanners (experimental feature)

  • default: none

Configure one or more scanner for modification detection of your resources. This feature is currently only available in 0.9.7-scanner-SNAPSHOT.

Home