<?xml version="1.0" encoding="UTF-8"?>
<!--
  JBoss, Home of Professional Open Source
  Copyright 2013, Red Hat, Inc. and individual contributors
  by the @authors tag. See the copyright.txt in the distribution for a
  full listing of individual contributors.

  This is free software; you can redistribute it and/or modify it
  under the terms of the GNU Lesser General Public License as
  published by the Free Software Foundation; either version 2.1 of
  the License, or (at your option) any later version.

  This software is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this software; if not, write to the Free
  Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.richfaces.examples</groupId>
    <artifactId>richfaces-showcase</artifactId>
    <version>4.5.9.Final</version>
    <packaging>war</packaging>
    <name>RichFaces Showcase</name>

    <description>
        RichFaces showcase is an application created to show RichFaces components in action. It contains a set of small use-cases implemented using RichFaces components.
    </description>

    <url>http://richfaces.org</url>

    <licenses>
        <license>
            <name>GNU Lesser General Public License, Version 2.1</name>
            <distribution>repo</distribution>
            <url>http://www.gnu.org/licenses/lgpl-2.1.txt</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <name>RichFaces committers</name>
        </developer>
    </developers>

    <properties>
        <version.richfaces>4.5.9.Final</version.richfaces>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

        <!-- Container Versions -->
        <version.wildfly100>10.0.0.Beta2</version.wildfly100>
        <version.wildfly90>9.0.1.Final</version.wildfly90>
        <version.wildfly81>8.1.0.Final</version.wildfly81>
        <version.wildfly82>8.2.1.Final</version.wildfly82>
        <version.tomee17>1.7.0</version.tomee17>
        <version.glassfish40>4.0</version.glassfish40>
        <version.tomcat6>6.0.36</version.tomcat6>
        <version.tomcat7>7.0.57</version.tomcat7>
        <version.tomcat8>8.0.21</version.tomcat8>

        <dependency.scope>compile</dependency.scope>
        <container.resources>${project.basedir}/src/main/resources-tomcat</container.resources>
        <container.resources.exclude />
        <container.webapp>${project.basedir}/src/main/webapp-tomcat</container.webapp>
        <war.outputFileNameMapping>@{artifactId}@@{dashClassifier?}@-@{version}@.@{extension}@</war.outputFileNameMapping>
        <javax.faces.PROJECT_STAGE>Development</javax.faces.PROJECT_STAGE>
        <mojarra.excluded.libraries>WEB-INF/lib/myfaces-*</mojarra.excluded.libraries>
        <myfaces.excluded.libraries>WEB-INF/lib/javax.faces*</myfaces.excluded.libraries>
        <jee6.excluded.libraries>
            ${mojarra.excluded.libraries},
            ${myfaces.excluded.libraries},
            WEB-INF/lib/jboss-jsf-api_2.1_spec*,
            WEB-INF/lib/jsf-impl*,
            WEB-INF/lib/jta*,
            WEB-INF/lib/jstl*,
            WEB-INF/lib/validation-api*,
            WEB-INF/lib/hibernate*,
            WEB-INF/lib/classmate*,
            WEB-INF/lib/jandex*,
            WEB-INF/lib/jboss-logging*,
            WEB-INF/lib/jboss-transaction-api*,
            WEB-INF/lib/antlr*,
            WEB-INF/lib/asm*,
            WEB-INF/lib/cglib*,
            WEB-INF/lib/commons-collections*,
            WEB-INF/lib/dom4j*,
            WEB-INF/lib/hsqldb*,
            WEB-INF/lib/javassist*,
            WEB-INF/lib/cdi-api*,
            WEB-INF/lib/javax.inject*,
            WEB-INF/lib/jboss-interceptors*,
            WEB-INF/lib/jsr250-api*,
            WEB-INF/lib/weld-servlet*
        </jee6.excluded.libraries>
        <jbas7.excluded.libraries>${jee6.excluded.libraries}</jbas7.excluded.libraries>
        <jbas71.excluded.libraries>${jbas7.excluded.libraries},WEB-INF/lib/jsr305*</jbas71.excluded.libraries>

        <testCategory.included.default>NOT category.None</testCategory.included.default>
        <testCategory.excluded.default>category.Failing</testCategory.excluded.default>

        <!-- Release repositories -->
        <jboss.releases.repo.url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</jboss.releases.repo.url>
        <jboss.snapshots.repo.url>https://repository.jboss.org/nexus/content/repositories/snapshots/</jboss.snapshots.repo.url>
        
        <maven.compiler.target>1.6</maven.compiler.target>
        <maven.compiler.source>1.6</maven.compiler.source>
        
        <!-- JVM values for surefire plugin -->
        <!-- Has a default value for Travis; MUST be set to smaller for 32-bit environment -->
        <surefire.jvm.params>-Xms1024m -Xmx2048m</surefire.jvm.params>
    </properties>

    <prerequisites>
        <maven>3.0</maven>
    </prerequisites>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.richfaces</groupId>
                <artifactId>richfaces-cache-bom</artifactId>
                <version>${version.richfaces}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <dependency>
                <groupId>org.richfaces</groupId>
                <artifactId>richfaces-build</artifactId>
                <version>${version.richfaces}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>org.richfaces</groupId>
            <artifactId>richfaces</artifactId>
        </dependency>
        <dependency>
            <groupId>org.richfaces</groupId>
            <artifactId>richfaces-build-resources</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.richfaces</groupId>
            <artifactId>richfaces-page-fragments</artifactId>
            <scope>test</scope>
            <optional>true</optional>
            <version>${version.richfaces}</version>
            <exclusions>
                <exclusion>
                    <artifactId>xalan</artifactId>
                    <groupId>xalan</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.jboss.spec</groupId>
            <artifactId>jboss-javaee-6.0</artifactId>
            <scope>provided</scope>
            <type>pom</type>
            <exclusions>
                <exclusion>
                    <artifactId>xalan</artifactId>
                    <groupId>xalan</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <scope>${dependency.scope}</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>net.sf.ehcache</groupId>
            <artifactId>ehcache</artifactId>
        </dependency>
        <dependency>
            <groupId>org.hsqldb</groupId>
            <artifactId>hsqldb-j5</artifactId>
            <scope>${dependency.scope}</scope>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <scope>${dependency.scope}</scope>
        </dependency>

        <!-- Dependencies for Tomcat -->
        <dependency>
            <groupId>org.jboss</groupId>
            <artifactId>jandex</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.enterprise</groupId>
            <artifactId>cdi-api</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet.jsp.jstl</groupId>
            <artifactId>jstl-api</artifactId>
        </dependency>

        <!-- Dependencies for Push -->
        <dependency>
            <groupId>org.richfaces</groupId>
            <artifactId>richfaces-push-depchain</artifactId>
            <type>pom</type>
            <version>${version.richfaces}</version>
        </dependency>

        <!-- Dependencies for CDI -->
        <dependency>
            <groupId>org.jboss.weld.servlet</groupId>
            <artifactId>weld-servlet</artifactId>
            <scope>${dependency.scope}</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.jboss.weld</groupId>
                    <artifactId>weld-build-config</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- The rewrite library allows us to do url rewriting - used here for rewriting mobile devices to mobile specific views -->
        <dependency>
            <groupId>org.ocpsoft.rewrite</groupId>
            <artifactId>rewrite-servlet</artifactId>
        </dependency>

        <!-- Jsoup used for validation of safe html input -->
        <dependency>
            <groupId>org.jsoup</groupId>
            <artifactId>jsoup</artifactId>
        </dependency>

        <!-- Test dependencies -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jboss.arquillian.junit</groupId>
            <artifactId>arquillian-junit-container</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.eu.ingwar.tools</groupId>
            <artifactId>arquillian-suite-extension</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <finalName>richfaces-showcase</finalName>

        <resources>
            <resource>
                <directory>${project.basedir}/src/main/resources</directory>
            </resource>
            <resource>
                <directory>${container.resources}</directory>
                <excludes>
                    <exclude>${container.resources.exclude}</exclude>
                </excludes>
            </resource>
        </resources>

        <plugins>
            <plugin>
                <artifactId>maven-checkstyle-plugin</artifactId>
            </plugin>
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <classifier>${showcase.war.classifier}</classifier>
                    <outputFileNameMapping>${war.outputFileNameMapping}</outputFileNameMapping>
                    <webResources>
                        <resource>
                            <directory>${container.webapp}</directory>
                            <filtering>true</filtering>
                        </resource>
                        <resource>
                            <directory>${project.basedir}/src/main/java</directory>
                            <targetPath>WEB-INF/src</targetPath>
                        </resource>
                    </webResources>
                    <archive>
                        <manifest>
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <executions>
                    <execution>
                        <id>default-test</id>
                        <configuration>
                            <!-- Travis build workaround -->
                            <argLine>${surefire.jvm.params}</argLine>
                            <!--  there are no unit tests -->
                            <skipTests>true</skipTests>
                        </configuration>
                    </execution>
                </executions>
                <configuration>
                    <!-- Travis build workaround -->
                    <argLine>${surefire.jvm.params}</argLine>
                    <testFailureIgnore>true</testFailureIgnore>
                    <systemPropertyVariables>
                        <container.classifier>${showcase.war.classifier}</container.classifier>
                        <!-- never restart container, override '1' from build-resources -->
                        <arquillian.maxTestClassesBeforeRestart>0</arquillian.maxTestClassesBeforeRestart>
                    </systemPropertyVariables>
                </configuration>
            </plugin>
        </plugins>

        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.2</version>
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.18.1</version>
                    <configuration>
                        <!-- Travis build workaround -->
                        <argLine>${surefire.jvm.params}</argLine>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>2.6</version>
                </plugin>
                <plugin>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>2.9</version>
                </plugin>
                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>2.5</version>
                </plugin>
                <plugin>
                    <artifactId>maven-checkstyle-plugin</artifactId>
                    <version>2.13</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>1.9.1</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <profiles>
        <profile>
            <id>jsf_ri</id>
            <activation>
                <property>
                    <name>!jsf_profile</name>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>javax.faces</groupId>
                    <artifactId>javax.faces-api</artifactId>
                    <scope>provided</scope>
                </dependency>
                <dependency>
                    <groupId>org.glassfish</groupId>
                    <artifactId>javax.faces</artifactId>
                    <scope>${dependency.scope}</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>jsf_jboss</id>
            <activation>
                <property>
                    <name>jsf_profile</name>
                    <value>jboss</value>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.spec.javax.faces</groupId>
                    <artifactId>jboss-jsf-api_2.1_spec</artifactId>
                    <scope>${dependency.scope}</scope>
                </dependency>
                <dependency>
                    <groupId>com.sun.faces</groupId>
                    <artifactId>jsf-impl</artifactId>
                    <scope>${dependency.scope}</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>myfaces</id>
            <activation>
                <property>
                    <name>jsf_profile</name>
                    <value>myfaces</value>
                </property>
            </activation>
            <properties>
                <showcase.war.classifier>myfaces</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.apache.myfaces.core</groupId>
                    <artifactId>myfaces-api</artifactId>
                    <scope>${dependency.scope}</scope>
                </dependency>
                <dependency>
                    <groupId>org.apache.myfaces.core</groupId>
                    <artifactId>myfaces-impl</artifactId>
                    <scope>${dependency.scope}</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>jee6</id>
            <properties>
                <showcase.war.classifier>jee6</showcase.war.classifier>
                <container.resources>${project.basedir}/src/main/resources-jee6</container.resources>
                <container.webapp>${project.basedir}/src/main/webapp-jee6</container.webapp>
                <dependency.scope>provided</dependency.scope>
            </properties>
        </profile>
        <profile>
            <id>jbas7</id>
            <properties>
                <showcase.war.classifier>jbas7</showcase.war.classifier>
                <container.resources>${project.basedir}/src/main/resources-jbas7</container.resources>
                <container.webapp>${project.basedir}/src/main/webapp-jbas7</container.webapp>
                <dependency.scope>provided</dependency.scope>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <!-- any changes in this plugin configuration should be repeated in the "release" profile executions -->
                        <artifactId>maven-war-plugin</artifactId>
                        <configuration>
                            <classifier>jbas7</classifier>
                            <webappDirectory>${project.build.directory}/${project.build.finalName}-jbas7
                            </webappDirectory>

                            <packagingExcludes>${jbas7.excluded.libraries}</packagingExcludes>
                            <warSourceExcludes>${jbas7.excluded.libraries}</warSourceExcludes>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.jboss.as.plugins</groupId>
                        <artifactId>jboss-as-maven-plugin</artifactId>
                        <configuration>
                            <filename>richfaces-showcase-jbas7.war</filename>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>jbas71</id>
            <properties>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
                <container.resources>${project.basedir}/src/main/resources-jbas71</container.resources>
                <container.webapp>${project.basedir}/src/main/webapp-jbas71</container.webapp>
                <dependency.scope>provided</dependency.scope>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <!-- any changes in this plugin configuration should be repeated in the "release" profile executions -->
                        <artifactId>maven-war-plugin</artifactId>
                        <configuration>
                            <classifier>jbas71</classifier>
                            <webappDirectory>${project.build.directory}/${project.build.finalName}-jbas71
                            </webappDirectory>

                            <packagingExcludes>${jbas71.excluded.libraries}</packagingExcludes>
                            <warSourceExcludes>${jbas71.excluded.libraries}</warSourceExcludes>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.jboss.as.plugins</groupId>
                        <artifactId>jboss-as-maven-plugin</artifactId>
                        <version>7.1.1.Final</version>
                        <configuration>
                            <filename>richfaces-showcase-jbas71.war</filename>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>openshift</id>
            <properties>
                <showcase.war.classifier>openshift</showcase.war.classifier>
                <container.resources>${project.basedir}/src/main/resources-jbas7</container.resources>
                <container.webapp>${project.basedir}/src/main/webapp-openshift</container.webapp>
                <dependency.scope>provided</dependency.scope>
                <war.outputFileNameMapping>@{artifactId}@.@{extension}@</war.outputFileNameMapping>
            </properties>
        </profile>
        <profile>
            <id>smoke-tests</id>
            <activation>
                <property>
                    <name>smoke</name>
                </property>
            </activation>
            <properties>
                <testCategory.included.default>category.Smoke</testCategory.included.default>
            </properties>
        </profile>
        <profile>
            <id>release</id>
            <activation>
                <property>
                    <name>integration</name>
                </property>
            </activation>
            <properties>
                <container.resources.exclude>**</container.resources.exclude>
                <javax.faces.PROJECT_STAGE>Production</javax.faces.PROJECT_STAGE>

                <integration.test.source>src/test/integration</integration.test.source>
                <integration.test.pattern>**/**/IT*.java</integration.test.pattern>

                <!-- Arquillian Configuration -->
                <arquillian.debug>false</arquillian.debug>
                <arquillian.drone.browser>phantomjs</arquillian.drone.browser>
                <arquillian.drone.reusable>false</arquillian.drone.reusable>
                <arquillian.richfaces.version />
                <arquillian.richfaces.servletContainerSetup>false</arquillian.richfaces.servletContainerSetup>
                <arquillian.richfaces.jsfProvider>mojarra</arquillian.richfaces.jsfProvider>
                <arquillian.richfaces.jsfImplementation>org.glassfish:javax.faces</arquillian.richfaces.jsfImplementation>
                <arquillian.container.home />
                <arquillian.container.distribution />
                <arquillian.container.configuration />
                <arquillian.container.uninstall>true</arquillian.container.uninstall>
                <arquillian.container.vmargs>-Xmx768m -XX:MaxPermSize=256m</arquillian.container.vmargs>
                <arquillian.maven.settings />

                <!-- Container Selection -->
                <arquillian.launch.jbosseap6>false</arquillian.launch.jbosseap6>
                <arquillian.launch.tomcat6>false</arquillian.launch.tomcat6>
                <arquillian.launch.tomcat7>false</arquillian.launch.tomcat7>
                <arquillian.launch.tomcat8>false</arquillian.launch.tomcat8>
                <arquillian.launch.tomee17>false</arquillian.launch.tomee17>
                <arquillian.launch.glassfish40>false</arquillian.launch.glassfish40>

                <!-- HTTPS testing -->
                <firefoxProfileTemplate />
                <trustStore />

                <!-- JUnit Categories Selection -->
                <testCategory.excluded.container />
                <testCategory.excluded.browser>AND NOT category.FailingOnPhantomJS</testCategory.excluded.browser>
                <testCategory.excluded.jsf />
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.apache.myfaces.core</groupId>
                    <artifactId>myfaces-api</artifactId>
                    <scope>${dependency.scope}</scope>
                </dependency>
                <dependency>
                    <groupId>org.apache.myfaces.core</groupId>
                    <artifactId>myfaces-impl</artifactId>
                    <scope>${dependency.scope}</scope>
                </dependency>

                <dependency>
                    <groupId>org.richfaces</groupId>
                    <artifactId>richfaces-build-resources</artifactId>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>org.richfaces</groupId>
                    <artifactId>richfaces-build-resources</artifactId>
                    <type>zip</type>
                    <scope>test</scope>
                    <version>${version.richfaces}</version>
                    <classifier>configuration-wildfly82-https</classifier>
                </dependency>
                <dependency>
                    <groupId>org.richfaces</groupId>
                    <artifactId>richfaces-build-resources</artifactId>
                    <type>zip</type>
                    <scope>test</scope>
                    <version>${version.richfaces}</version>
                    <classifier>configuration-tomcat</classifier>
                </dependency>
                <dependency>
                    <groupId>org.jboss.arquillian.junit</groupId>
                    <artifactId>arquillian-junit-container</artifactId>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>org.jboss.arquillian.protocol</groupId>
                    <artifactId>arquillian-protocol-servlet</artifactId>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>org.jboss.shrinkwrap.resolver</groupId>
                    <artifactId>shrinkwrap-resolver-depchain</artifactId>
                    <type>pom</type>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>org.jboss.shrinkwrap.descriptors</groupId>
                    <artifactId>shrinkwrap-descriptors-depchain</artifactId>
                    <type>pom</type>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>org.jboss.arquillian.extension</groupId>
                    <artifactId>arquillian-drone-webdriver-depchain</artifactId>
                    <type>pom</type>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>org.jboss.arquillian.graphene</groupId>
                    <artifactId>graphene-webdriver</artifactId>
                    <type>pom</type>
                    <scope>test</scope>
                </dependency>
            </dependencies>
            <build>
                <testResources>
                    <testResource>
                        <directory>src/test/resources</directory>
                        <filtering>false</filtering>
                    </testResource>
                    <testResource>
                        <directory>${integration.test.source}</directory>
                        <filtering>false</filtering>
                        <excludes>
                            <exclude>**/*.java</exclude>
                        </excludes>
                    </testResource>
                    <testResource>
                        <directory>src/test/arquillian-settings/</directory>
                        <filtering>true</filtering>
                    </testResource>
                </testResources>
                <plugins>
                    <plugin>
                        <artifactId>maven-war-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>default-war</id>
                                <configuration>
                                    <classifier>tomcat6</classifier>
                                    <webappDirectory>${project.build.directory}/${project.build.finalName}-tomcat6
                                    </webappDirectory>
                                    <packagingExcludes>
                                        ${mojarra.excluded.libraries}
                                    </packagingExcludes>
                                    <warSourceExcludes>
                                        ${mojarra.excluded.libraries}
                                    </warSourceExcludes>
                                    <webResources>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp-tomcat</directory>
                                            <targetPath>/</targetPath>
                                            <filtering>true</filtering>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/resources-tomcat</directory>
                                            <targetPath>WEB-INF/classes</targetPath>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/java</directory>
                                            <targetPath>WEB-INF/src</targetPath>
                                        </resource>
                                    </webResources>
                                </configuration>
                            </execution>
                            <execution>
                                <id>myfaces</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>war</goal>
                                </goals>
                                <configuration>
                                    <classifier>myfaces</classifier>
                                    <webappDirectory>${project.build.directory}/${project.build.finalName}-myfaces
                                    </webappDirectory>
                                    <packagingExcludes>
                                        ${myfaces.excluded.libraries}
                                    </packagingExcludes>
                                    <warSourceExcludes>
                                        ${myfaces.excluded.libraries}
                                    </warSourceExcludes>
                                    <webResources>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp-tomcat</directory>
                                            <targetPath>/</targetPath>
                                            <filtering>true</filtering>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/resources-tomcat</directory>
                                            <targetPath>WEB-INF/classes</targetPath>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/java</directory>
                                            <targetPath>WEB-INF/src</targetPath>
                                        </resource>
                                    </webResources>
                                </configuration>
                            </execution>
                            <execution>
                                <id>jee6</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>war</goal>
                                </goals>
                                <configuration>
                                    <classifier>jee6</classifier>
                                    <webappDirectory>${project.build.directory}/${project.build.finalName}-jee6
                                    </webappDirectory>

                                    <packagingExcludes>
                                        ${jee6.excluded.libraries}
                                    </packagingExcludes>
                                    <warSourceExcludes>
                                        ${jee6.excluded.libraries}
                                    </warSourceExcludes>
                                    <webResources>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp</directory>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp-tomcat</directory>
                                            <excludes>
                                                <exclude>**</exclude>
                                            </excludes>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp-jee6</directory>
                                            <targetPath>/</targetPath>
                                            <filtering>true</filtering>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/resources-jee6</directory>
                                            <targetPath>WEB-INF/classes</targetPath>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/java</directory>
                                            <targetPath>WEB-INF/src</targetPath>
                                        </resource>
                                    </webResources>
                                </configuration>
                            </execution>
                            <execution>
                                <id>jbas7</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>war</goal>
                                </goals>
                                <configuration>
                                    <classifier>jbas7</classifier>
                                    <webappDirectory>${project.build.directory}/${project.build.finalName}-jbas7
                                    </webappDirectory>

                                    <packagingExcludes>${jbas7.excluded.libraries}</packagingExcludes>
                                    <warSourceExcludes>${jbas7.excluded.libraries}</warSourceExcludes>
                                    <webResources>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp</directory>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp-tomcat</directory>
                                            <excludes>
                                                <exclude>**</exclude>
                                            </excludes>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp-jbas7</directory>
                                            <targetPath>/</targetPath>
                                            <filtering>true</filtering>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/resources-jbas7</directory>
                                            <targetPath>WEB-INF/classes</targetPath>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/java</directory>
                                            <targetPath>WEB-INF/src</targetPath>
                                        </resource>
                                    </webResources>
                                </configuration>
                            </execution>
                            <execution>
                                <id>jbas71</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>war</goal>
                                </goals>
                                <configuration>
                                    <classifier>jbas71</classifier>
                                    <webappDirectory>${project.build.directory}/${project.build.finalName}-jbas71
                                    </webappDirectory>

                                    <packagingExcludes>${jbas71.excluded.libraries}</packagingExcludes>
                                    <warSourceExcludes>${jbas71.excluded.libraries}</warSourceExcludes>
                                    <webResources>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp</directory>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp-tomcat</directory>
                                            <excludes>
                                                <exclude>**</exclude>
                                            </excludes>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp-jbas71</directory>
                                            <targetPath>/</targetPath>
                                            <filtering>true</filtering>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/resources-jbas71</directory>
                                            <targetPath>WEB-INF/classes</targetPath>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/java</directory>
                                            <targetPath>WEB-INF/src</targetPath>
                                        </resource>
                                    </webResources>
                                </configuration>
                            </execution>
                            <execution>
                                <id>openshift</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>war</goal>
                                </goals>
                                <configuration>
                                    <classifier>openshift</classifier>
                                    <webappDirectory>${project.build.directory}/${project.build.finalName}-openshift
                                    </webappDirectory>
                                    <packagingExcludes>${jbas7.excluded.libraries}</packagingExcludes>
                                    <warSourceExcludes>${jbas7.excluded.libraries}</warSourceExcludes>
                                    <outputFileNameMapping>@{artifactId}@.@{extension}@</outputFileNameMapping>
                                    <webResources>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp</directory>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp-tomcat</directory>
                                            <excludes>
                                                <exclude>**</exclude>
                                            </excludes>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/webapp-openshift</directory>
                                            <targetPath>/</targetPath>
                                            <filtering>true</filtering>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/resources-jbas7</directory>
                                            <targetPath>WEB-INF/classes</targetPath>
                                        </resource>
                                        <resource>
                                            <directory>${project.basedir}/src/main/java</directory>
                                            <targetPath>WEB-INF/src</targetPath>
                                        </resource>
                                    </webResources>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>group-sources</id>
                                <goals>
                                    <goal>single</goal>
                                </goals>
                                <phase>package</phase>
                                <configuration>
                                    <finalName>sources</finalName>
                                    <appendAssemblyId>false</appendAssemblyId>
                                    <descriptor>assembler.xml
                                    </descriptor>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>maven-jar-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                                <phase>package</phase>
                                <configuration>
                                    <classesDirectory>${project.basedir}/target/sources/sources
                                    </classesDirectory>
                                    <classifier>sources</classifier>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>unpack-arquillian-settings</id>
                                <phase>initialize</phase>
                                <goals>
                                    <goal>unpack</goal>
                                </goals>
                                <configuration>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>org.richfaces</groupId>
                                            <artifactId>richfaces-build-resources</artifactId>
                                            <version>${version.richfaces}</version>
                                            <type>jar</type>
                                            <overWrite>true</overWrite>
                                        </artifactItem>
                                    </artifactItems>
                                    <includes>arquillian.xml</includes>
                                    <outputDirectory>src/test/arquillian-settings</outputDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>add-integration-test-sources</id>
                                <phase>process-test-sources</phase>
                                <goals>
                                    <goal>add-test-source</goal>
                                </goals>
                                <configuration>
                                    <sources>
                                        <source>${integration.test.source}</source>
                                    </sources>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>default-test</id>
                                <configuration>
                                    <!-- Travis build workaround -->
                                    <argLine>${surefire.jvm.params}</argLine>
                                    <!--  there are no unit tests -->
                                    <skipTests>true</skipTests>
                                    <test>${test}</test>
                                    <excludes>
                                        <exclude>${integration.test.pattern}</exclude>
                                    </excludes>
                                </configuration>
                            </execution>
                            <execution>
                                <id>integration-tests</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>test</goal>
                                </goals>
                                <configuration>
                                    <!-- Travis build workaround -->
                                    <argLine>${surefire.jvm.params}</argLine>
                                    <skipTests>${skipITs}</skipTests>
                                    <test>${test}</test>
                                    <includes>
                                        <include>${integration.test.pattern}</include>
                                    </includes>
                                    <groups>${testCategory.included.default} ${testCategory.excluded.browser}
                                        ${testCategory.excluded.container} ${testCategory.excluded.jsf}</groups>
                                    <excludedGroups>${testCategory.excluded.default}</excludedGroups>
                                    <systemPropertyVariables>
                                        <arquillian.debug>${arquillian.debug}</arquillian.debug>
                                    </systemPropertyVariables>
                                </configuration>
                            </execution>
                        </executions>
                        <dependencies>
                            <dependency>
                                <groupId>org.richfaces</groupId>
                                <artifactId>richfaces-build-resources</artifactId>
                                <version>${version.richfaces}</version>
                            </dependency>
                        </dependencies>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>jrebel</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.zeroturnaround</groupId>
                        <artifactId>jrebel-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>generate-rebel-xml</id>
                                <phase>process-resources</phase>
                                <goals>
                                    <goal>generate</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>browser-phantomjs</id>
            <activation>
                <property>
                    <name>browser</name>
                    <value>phantomjs</value>
                </property>
            </activation>
            <properties>
                <testCategory.excluded.browser>AND NOT category.FailingOnPhantomJS</testCategory.excluded.browser>
                <arquillian.drone.browser>phantomjs</arquillian.drone.browser>
            </properties>
        </profile>
        <profile>
            <id>browser-chrome</id>
            <activation>
                <property>
                    <name>browser</name>
                    <value>chrome</value>
                </property>
            </activation>
            <properties>
                <testCategory.excluded.browser />
                <arquillian.drone.browser>chrome</arquillian.drone.browser>
            </properties>
        </profile>
        <profile>
            <id>browser-firefox</id>
            <activation>
                <property>
                    <name>browser</name>
                    <value>firefox</value>
                </property>
            </activation>
            <properties>
                <testCategory.excluded.browser>AND NOT category.FailingOnFirefox</testCategory.excluded.browser>
                <arquillian.drone.browser>firefox</arquillian.drone.browser>
            </properties>
        </profile>
        <profile>
            <id>browser-remote-reusable</id>
            <activation>
                <property>
                    <name>reusable</name>
                </property>
            </activation>
            <properties>
                <arquillian.drone.reusable>true</arquillian.drone.reusable>
            </properties>
        </profile>

        <!-- Containers -->
        <profile>
            <id>wildfly-managed-10-0</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>wildfly100</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.wildfly10>true</arquillian.launch.wildfly10>
                <arquillian.container.home>${project.build.directory}/wildfly-${version.wildfly100}</arquillian.container.home>
                <arquillian.container.distribution>org.wildfly:wildfly-dist:zip:${version.wildfly100}</arquillian.container.distribution>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.wildfly</groupId>
                    <artifactId>wildfly-arquillian-container-managed</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>wildfly-remote-10-0</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>wildfly100-remote</value>
                </property>
            </activation>
            <properties>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.wildfly</groupId>
                    <artifactId>wildfly-arquillian-container-remote</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>wildfly-managed-9-0</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>wildfly90</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.wildfly9>true</arquillian.launch.wildfly9>
                <arquillian.container.home>${project.build.directory}/wildfly-${version.wildfly90}</arquillian.container.home>
                <arquillian.container.distribution>org.wildfly:wildfly-dist:zip:${version.wildfly90}</arquillian.container.distribution>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.wildfly</groupId>
                    <artifactId>wildfly-arquillian-container-managed</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>wildfly-remote-9-0</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>wildfly90-remote</value>
                </property>
            </activation>
            <properties>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.wildfly</groupId>
                    <artifactId>wildfly-arquillian-container-remote</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>wildfly-managed-8-1</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>wildfly81</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.wildfly8>true</arquillian.launch.wildfly8>
                <arquillian.container.home>${project.build.directory}/wildfly-${version.wildfly81}</arquillian.container.home>
                <arquillian.container.distribution>org.wildfly:wildfly-dist:zip:${version.wildfly81}</arquillian.container.distribution>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.wildfly</groupId>
                    <artifactId>wildfly-arquillian-container-managed</artifactId>
                    <version>${version.wildfly81}</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>wildfly-managed-8-2</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>wildfly82</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.wildfly8>true</arquillian.launch.wildfly8>
                <arquillian.container.home>${project.build.directory}/wildfly-${version.wildfly82}</arquillian.container.home>
                <arquillian.container.distribution>org.wildfly:wildfly-dist:zip:${version.wildfly82}</arquillian.container.distribution>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.wildfly</groupId>
                    <artifactId>wildfly-arquillian-container-managed</artifactId>
                    <version>${version.wildfly82}</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>wildfly-managed-8-2-https</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>wildfly82-https</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.wildfly8>true</arquillian.launch.wildfly8>
                <arquillian.container.home>${project.build.directory}/wildfly-${version.wildfly82}</arquillian.container.home>
                <arquillian.container.distribution>org.wildfly:wildfly-dist:zip:${version.wildfly82}</arquillian.container.distribution>
                <arquillian.container.configuration>org.richfaces:richfaces-build-resources:zip:configuration-wildfly82-https:${version.richfaces}</arquillian.container.configuration>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.wildfly</groupId>
                    <artifactId>wildfly-arquillian-container-managed</artifactId>
                    <version>${version.wildfly82}</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <!-- Travis build workaround -->
                            <argLine>${surefire.jvm.params}</argLine>
                            <environmentVariables>
                                <HTTPS_TESTING>true</HTTPS_TESTING>
                            </environmentVariables>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>wildfly-remote-8-1</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>wildfly81-remote</value>
                </property>
            </activation>
            <properties>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.wildfly</groupId>
                    <artifactId>wildfly-arquillian-container-remote</artifactId>
                    <version>${version.wildfly81}</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>wildfly-remote-8-2</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>wildfly82-remote</value>
                </property>
            </activation>
            <properties>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.wildfly</groupId>
                    <artifactId>wildfly-arquillian-container-remote</artifactId>
                    <version>${version.wildfly82}</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>jbosseap-managed-6-2</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>jbosseap62</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.jbosseap6>true</arquillian.launch.jbosseap6>
                <arquillian.container.home>${project.build.directory}/jboss-eap-6.2</arquillian.container.home>
                <arquillian.container.distribution>file:///path/to/jboss-eap-6.2.4.zip</arquillian.container.distribution>
                <testCategory.excluded.jsf>AND NOT category.JSF22Only</testCategory.excluded.jsf>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.as</groupId>
                    <artifactId>jboss-as-arquillian-container-managed</artifactId>
                    <version>7.2.0.Final</version>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>org.jboss.as</groupId>
                    <artifactId>jboss-as-controller-client</artifactId>
                    <version>7.2.0.Final</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>jbosseap-remote-6-2</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>jbosseap62-remote</value>
                </property>
            </activation>
            <properties>
                <testCategory.excluded.jsf>AND NOT category.JSF22Only</testCategory.excluded.jsf>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.as</groupId>
                    <artifactId>jboss-as-arquillian-container-remote</artifactId>
                    <version>7.2.0.Final</version>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>org.jboss.as</groupId>
                    <artifactId>jboss-as-controller-client</artifactId>
                    <version>7.2.0.Final</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>jbosseap-managed-6-3</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>jbosseap63</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.jbosseap6>true</arquillian.launch.jbosseap6>
                <arquillian.container.home>${project.build.directory}/jboss-eap-6.3</arquillian.container.home>
                <arquillian.container.distribution>file:///path/to/jboss-eap-6.3.0.zip</arquillian.container.distribution>
                <testCategory.excluded.jsf>AND NOT category.JSF22Only</testCategory.excluded.jsf>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.as</groupId>
                    <artifactId>jboss-as-arquillian-container-managed</artifactId>
                    <version>7.2.0.Final</version>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>org.jboss.as</groupId>
                    <artifactId>jboss-as-controller-client</artifactId>
                    <version>7.2.0.Final</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>jbosseap-remote-6-3</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>jbosseap63-remote</value>
                </property>
            </activation>
            <properties>
                <testCategory.excluded.jsf>AND NOT category.JSF22Only</testCategory.excluded.jsf>
                <showcase.war.classifier>jbas71</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.as</groupId>
                    <artifactId>jboss-as-arquillian-container-remote</artifactId>
                    <version>7.2.0.Final</version>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>org.jboss.as</groupId>
                    <artifactId>jboss-as-controller-client</artifactId>
                    <version>7.2.0.Final</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>tomee-managed-1-7</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>tomee17</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.tomee17>true</arquillian.launch.tomee17>
                <arquillian.richfaces.jsfProvider>myfaces</arquillian.richfaces.jsfProvider>
                <arquillian.container.home>${project.build.directory}/apache-tomee-webprofile-${version.tomee17}</arquillian.container.home>
                <arquillian.container.distribution>org.apache.openejb:apache-tomee:zip:webprofile:${version.tomee17}</arquillian.container.distribution>
                <testCategory.excluded.jsf>AND NOT category.JSF22Only</testCategory.excluded.jsf>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.apache.openejb</groupId>
                    <artifactId>arquillian-tomee-remote</artifactId>
                    <version>${version.tomee17}</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>tomee-remote-1-7</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>tomee17-remote</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.tomee17>true</arquillian.launch.tomee17>
                <arquillian.richfaces.jsfProvider>myfaces</arquillian.richfaces.jsfProvider>
                <testCategory.excluded.jsf>AND NOT category.JSF22Only</testCategory.excluded.jsf>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.apache.openejb</groupId>
                    <artifactId>arquillian-tomee-remote</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>glassfish-managed-4-0</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>glassfish40</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.glassfish40>true</arquillian.launch.glassfish40>
                <arquillian.container.home>${project.build.directory}/glassfish4</arquillian.container.home>
                <arquillian.container.distribution>org.glassfish.main.distributions:glassfish:zip:${version.glassfish40}</arquillian.container.distribution>
                <testCategory.excluded.jsf>AND NOT category.JSF22Only</testCategory.excluded.jsf>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.arquillian.container</groupId>
                    <artifactId>arquillian-glassfish-managed-3.1</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>glassfish-remote-4-0</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>glassfish40-remote</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.glassfish40>true</arquillian.launch.glassfish40>
                <testCategory.excluded.jsf>AND NOT category.JSF22Only</testCategory.excluded.jsf>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.arquillian.container</groupId>
                    <artifactId>arquillian-glassfish-remote-3.1</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>tomcat-remote-6</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>tomcat6-remote</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.tomcat6>true</arquillian.launch.tomcat6>
                <arquillian.richfaces.servletContainerSetup>true</arquillian.richfaces.servletContainerSetup>
                <showcase.war.classifier>tomcat6</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.arquillian.container</groupId>
                    <artifactId>arquillian-tomcat-remote-6</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>tomcat-managed-6</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>tomcat6</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.tomcat6>true</arquillian.launch.tomcat6>
                <arquillian.richfaces.servletContainerSetup>true</arquillian.richfaces.servletContainerSetup>
                <arquillian.container.home>${project.build.directory}/apache-tomcat-${version.tomcat6}</arquillian.container.home>
                <arquillian.container.distribution>com.googlecode.t7mp:tomcat:zip:${version.tomcat6}</arquillian.container.distribution>
                <arquillian.container.configuration>org.richfaces:richfaces-build-resources:zip:configuration-tomcat:${version.richfaces}</arquillian.container.configuration>
                <showcase.war.classifier>tomcat6</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.arquillian.container</groupId>
                    <artifactId>arquillian-tomcat-managed-6</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>tomcat-remote-7</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>tomcat7-remote</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.tomcat7>true</arquillian.launch.tomcat7>
                <arquillian.richfaces.servletContainerSetup>true</arquillian.richfaces.servletContainerSetup>
                <showcase.war.classifier>tomcat6</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.arquillian.container</groupId>
                    <artifactId>arquillian-tomcat-remote-7</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>tomcat-managed-7</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>tomcat7</value>
                </property>
            </activation>
            <properties>
                <catalinaHome>${project.build.directory}/apache-tomcat-${version.tomcat7}</catalinaHome>
                <arquillian.launch.tomcat7>true</arquillian.launch.tomcat7>
                <arquillian.richfaces.servletContainerSetup>true</arquillian.richfaces.servletContainerSetup>
                <arquillian.container.home>${project.build.directory}/apache-tomcat-${version.tomcat7}</arquillian.container.home>
                <arquillian.container.distribution>org.apache.tomcat:tomcat:zip:${version.tomcat7}</arquillian.container.distribution>
                <arquillian.container.configuration>org.richfaces:richfaces-build-resources:zip:configuration-tomcat:${version.richfaces}</arquillian.container.configuration>
                <showcase.war.classifier>tomcat6</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.arquillian.container</groupId>
                    <artifactId>arquillian-tomcat-managed-7</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>tomcat-managed-8</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>tomcat8</value>
                </property>
            </activation>
            <properties>
                <catalinaHome>${project.build.directory}/apache-tomcat-${version.tomcat8}</catalinaHome>
                <arquillian.launch.tomcat8>true</arquillian.launch.tomcat8>
                <arquillian.richfaces.servletContainerSetup>true</arquillian.richfaces.servletContainerSetup>
                <arquillian.container.home>${project.build.directory}/apache-tomcat-${version.tomcat8}</arquillian.container.home>
                <arquillian.container.distribution>org.apache.tomcat:tomcat:zip:${version.tomcat8}</arquillian.container.distribution>
                <arquillian.container.configuration>org.richfaces:richfaces-build-resources:zip:configuration-tomcat:${version.richfaces}</arquillian.container.configuration>
                <showcase.war.classifier>tomcat6</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.arquillian.container</groupId>
                    <artifactId>arquillian-tomcat-managed-7</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>tomcat-remote-8</id>
            <activation>
                <property>
                    <name>integration</name>
                    <value>tomcat8-remote</value>
                </property>
            </activation>
            <properties>
                <arquillian.launch.tomcat8>true</arquillian.launch.tomcat8>
                <arquillian.richfaces.servletContainerSetup>true</arquillian.richfaces.servletContainerSetup>
                <showcase.war.classifier>tomcat6</showcase.war.classifier>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.jboss.arquillian.container</groupId>
                    <artifactId>arquillian-tomcat-remote-7</artifactId>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
    </profiles>

    <scm>
        <connection>scm:git:git://github.com/richfaces/richfaces.git</connection>
        <developerConnection>scm:git:git@github.com:richfaces/richfaces.git</developerConnection>
        <url>https://github.com/richfaces/richfaces</url>
        <tag>HEAD</tag>
    </scm>

    <distributionManagement>
        <repository>
            <id>jboss-releases-repository</id>
            <name>JBoss Releases Repository</name>
            <url>${jboss.releases.repo.url}</url>
        </repository>
        <snapshotRepository>
            <id>jboss-snapshots-repository</id>
            <name>JBoss Snapshots Repository</name>
            <url>${jboss.snapshots.repo.url}</url>
        </snapshotRepository>
    </distributionManagement>
</project>
