pom.xml

86 lines | 3.498 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 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>
    
    <parent>
        <groupId>org.keycloak.testsuite</groupId>
        <artifactId>integration-arquillian-tests-other</artifactId>
        <version>2.5.9.Final-SNAPSHOT</version>
    </parent>
    
    <artifactId>integration-arquillian-tests-smoke-clean-start</artifactId>
    
    <name>Clean Start Tests</name>
    
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>enforce-auth-server</id>
                        <phase>generate-test-resources</phase>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireProperty>
                                    <property>auth.server</property>
                                    <regex>(wildfly)|(eap)</regex>
                                    <regexMessage>Tests require activation of profile "auth-server-wildfly" or "auth-server-eap".</regexMessage>
                                </requireProperty>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <profiles>
        <profile>
            <id>standalone</id>
        </profile>
        <profile>
            <id>standalone-ha</id>
            <properties>
                <auth.server.config.property.value>standalone-ha.xml</auth.server.config.property.value>
            </properties>
        </profile>
        <profile>
            <id>domain</id>
            <properties>
                <auth.server.config.property.name>domainConfig</auth.server.config.property.name>
                <auth.server.config.property.value>domain.xml</auth.server.config.property.value>
                <auth.server.config.dir>${auth.server.home}/domain/configuration</auth.server.config.dir>
                <auth.server.adapter.impl.class>org.jboss.as.arquillian.container.domain.managed.ManagedDomainDeployableContainer</auth.server.adapter.impl.class>
                <auth.server.management.port>9990</auth.server.management.port>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.wildfly.arquillian</groupId>
                    <artifactId>wildfly-arquillian-container-domain-managed</artifactId>
                </dependency>
            </dependencies>
        </profile>
    </profiles>
</project>