Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
titleexcerpt from pom.xml
...
    <parent>
        <groupId>org.apache.geronimo.plugins</groupId>
        <artifactId>tomcat</artifactId>
        <version>2.2-SNAPSHOT</version>
    </parent>

    <groupId>org.apache.geronimo.configs</groupId>
    <artifactId>tomcat6</artifactId>
    <name>Geronimo Plugins, Tomcat :: Tomcat</name>
    <packaging>car</packaging>

    <description>Geronimo Tomcat web server integration.</description>
            <plugin>
                <groupId>org.apache.geronimo.buildsupport</groupId>
                <artifactId>car-maven-plugin</artifactId>
                <configuration>
                    <useMavenDependencies>
                        <value>true</value>
                        <includeVersion>true</includeVersion>
                    </useMavenDependencies>
                    <category>Tomcat</category>
                    <instance>
                        <plugin-artifact>
                            <copy-file relative-to="server" dest-dir="var/catalina">tomcat-base/</copy-file>
                            <config-xml-content>
                                <!-- To disable accesslogging uncomment the following lines
                                <gbean name="TomcatEngine">
                                    <reference name="TomcatValveChain" />
                                </gbean>
                                <gbean name="AccessLogValve" load="false"></gbean><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" 
                                -->
                                <gbean name="TomcatWebConnector">
                                    <attribute name="host">${ServerHostname}</attribute>
                                    <attribute name="port">${HTTPPort + PortOffset}</attribute>
                                    <attribute name="redirectPort">${HTTPSPort + PortOffset}</attribute>
                                    <attribute name="maxHttpHeaderSize">8192</attribute>
                                    <attribute name="maxThreads">150</attribute>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                                    <attribute name="minSpareThreads">25</attribute>
                                    <attribute name="maxSpareThreads">75</attribute>
                                    <attribute name="enableLookups">false</attribute>
                                    <attribute name="acceptCount">100</attribute>
                                    <attribute name="connectionTimeout">${WebConnectorConTimeout}</attribute>
                                    <attribute name="disableUploadTimeout">true</attribute>
                                </gbean>
                                <gbean name="TomcatAJPConnector">
                                    <attribute name="host">${ServerHostname}</attribute>
                                    <attribute name="port">${AJPPort + PortOffset}</attribute>
                                    <attribute name="redirectPort">${HTTPSPort + PortOffset}</attribute>
                                    <attribute name="minSpareThreads">25</attribute>
                                    <attribute name="maxSpareThreads">75</attribute>xsi:schemaLofcation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <parent>
                                    <attribute name="enableLookups">false</attribute><groupId>org.apache.geronimo.plugins</groupId>
                                </gbean><artifactId>plugins</artifactId>
                                <gbean name="TomcatWebSSLConnector">
                                    <attribute name="host">${ServerHostname}</attribute>
                                    <attribute name="port">${HTTPSPort + PortOffset}</attribute>
                                    <attribute name="maxHttpHeaderSize">8192</attribute>
                                    <attribute name="maxThreads">150</attribute>
                                    <attribute name="minSpareThreads">25</attribute>
                                    <attribute name="maxSpareThreads">75</attribute>
                                    <attribute name="enableLookups">false</attribute>
                                    <attribute name="acceptCount">100</attribute>
                                    <attribute name="disableUploadTimeout">false</attribute>
                                    <attribute name="clientAuth">false</attribute><version>2.2-SNAPSHOT</version>
    </parent>

    <groupId>org.apache.geronimo.configs</groupId>
    <artifactId>sharedlib</artifactId>
    <name>Geronimo Plugins, Shared Library</name>
    <description>Shared Library GBean</description>
    <packaging>car</packaging>

    <build>
                                    <attribute name="algorithm">Default</attribute><plugins>
                                    <attribute name="sslProtocol">TLS</attribute><plugin>
                                    <attribute name="keystoreFile">var/security/keystores/geronimo-default</attribute><groupId>org.apache.geronimo.buildsupport</groupId>
                                    <attribute name="keystorePass">secret</attribute><artifactId>car-maven-plugin</artifactId>
                                    <attribute name="keystoreType">JKS</attribute><configuration>
                                </gbean><category>Shared</category>
                                <gbean name="TomcatHost"><useMavenDependencies>
                                    <attribute name="initParams"><value>true</value>
                                        name=${ServerHostname}
                                        appBase=
                                        workDir=work
                                    </attribute>
            <includeVersion>true</includeVersion>
                    </gbean>useMavenDependencies>
                            </config-xml-content><instance>
                            <config-substitution key="HTTPPort">8080</config-substitution><plugin-artifact>
                            <config<copy-substitution key="AJPPort">8009</config-substitution>
                            <config-substitution key="HTTPSPort">8443</config-substitution>
                            <config-substitution key="ServerHostname">0.0.0.0</config-substitution>file relative-to="server" dest-dir="var">shared</copy-file>
                            <config-substitution key="WebConnectorConTimeout">20000</config-substitution></plugin-artifact>
                            <config-substitution key="webcontainer">TomcatWebContainer</config-substitution></instance>
                            <config-substitution key="webcontainerName">tomcat6</config-substitution>
          </configuration>
              </plugin-artifact>
           plugin>
         </instance>plugins>
                </configuration>
            </plugin>
...build>

</project>

As you use maven to build plugins, a geronimo-plugins.xml plugin catalog is automatically maintained in your local maven repository. You can force this to be rebuilt by running

...