pom.xml

185 lines | 7.14 kB Blame History Raw Download
<?xml version="1.0"?>
<!--
~ Copyright 2016 Red Hat, Inc. and/or its affiliates
~ and other contributors as indicated by the @author tags.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.keycloak.testsuite</groupId>
        <artifactId>integration-arquillian-tests-adapters</artifactId>
        <version>1.9.7.Final</version>
    </parent>

    <artifactId>integration-arquillian-tests-adapters-jboss</artifactId>

    <packaging>pom</packaging>

    <name>Adapter Tests - JBoss</name>
    
    <properties>
        <common.resources>${project.parent.basedir}/common</common.resources>
        <adapter.libs.home>${app.server.home}/modules/system/add-ons/keycloak</adapter.libs.home>
        <app.server.type>managed</app.server.type>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>xml-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>Configure keycloak subsystem</id>
                        <phase>process-test-resources</phase>
                        <goals>
                            <goal>transform</goal>
                        </goals>
                        <configuration>
                            <transformationSets>
                                <transformationSet>
                                    <dir>${app.server.home}/standalone/configuration</dir>
                                    <includes>
                                        <include>standalone.xml</include>
                                    </includes>
                                    <stylesheet>${common.resources}/xslt/keycloak-subsystem.xsl</stylesheet>
                                    <outputDir>${app.server.home}/standalone/configuration</outputDir>
                                    <parameters>
                                        <parameter>
                                            <name>auth-server-host</name>
                                            <value>http://localhost:${auth.server.http.port}</value>
                                        </parameter>
                                    </parameters>
                                </transformationSet>
                            </transformationSets>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    
    <profiles>
        <profile>
            <id>ssl</id>
            <activation>
                <property>
                    <name>app.server.ssl.required</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>xml-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>Configure keycloak subsystem</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>transform</goal>
                                </goals>
                                <configuration>
                                    <transformationSets>
                                        <transformationSet>
                                            <dir>${app.server.home}/standalone/configuration</dir>
                                            <includes>
                                                <include>standalone.xml</include>
                                            </includes>
                                            <stylesheet>${common.resources}/xslt/keycloak-subsystem.xsl</stylesheet>
                                            <outputDir>${app.server.home}/standalone/configuration</outputDir>
                                            <parameters>
                                                <parameter>
                                                    <name>auth-server-host</name>
                                                    <value>https://localhost:${auth.server.https.port}</value>
                                                </parameter>
                                            </parameters>
                                        </transformationSet>
                                    </transformationSets>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>adapter-test-jboss-submodules</id>
            <activation>
                <file>
                    <exists>src</exists>
                </file>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>org.wildfly.arquillian</groupId>
                    <artifactId>wildfly-arquillian-container-${app.server.type}</artifactId>
                    <version>${arquillian-wildfly-container.version}</version>
                </dependency>
            </dependencies>            
        </profile>

        <profile>
            <id>app-server-as7</id>
            <modules>
                <module>as7</module>
            </modules>
        </profile>
        <profile>
            <id>app-server-eap</id>
            <modules>
                <module>eap</module>
            </modules>
        </profile>
        <profile>
            <id>app-server-eap6</id>
            <modules>
                <module>eap6</module>
            </modules>
        </profile>
        <profile>
            <id>app-server-wildfly</id>
            <modules>
                <module>wildfly</module>
            </modules>
        </profile>
        <profile>
            <id>app-server-wildfly8</id>
            <modules>
                <module>wildfly8</module>
            </modules>
        </profile>
        <profile>
            <id>app-server-wildfly9</id>
            <modules>
                <module>wildfly9</module>
            </modules>
        </profile>
        <profile>
            <id>app-server-relative</id>
            <modules>
                <module>relative</module>
            </modules>
        </profile>                
        
    </profiles>
    
</project>