pom.xml

146 lines | 5.248 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>2.3.0.CR1</version>
    </parent>

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

    <packaging>pom</packaging>

    <name>Adapter Tests - Karaf</name>
        
    <properties>
        <common.resources>${project.parent.basedir}/common</common.resources>

        <!--fuse examples expect auth server on 8080-->
        <auth.server.port.offset>0</auth.server.port.offset>
        <auth.server.http.port>8080</auth.server.http.port>
        <auth.server.management.port>9990</auth.server.management.port>
        <!--fuse examples expect default karaf http port 8181-->
        <app.server.http.port>8181</app.server.http.port>
                
    </properties>
    
    <profiles>
        <profile>
            <id>adapter-test-karaf-submodules</id>
            <activation>
                <file>
                    <exists>src</exists>
                </file>
            </activation>
            <dependencies>

                <dependency>
                    <groupId>org.jboss.arquillian.container</groupId>
                    <artifactId>arquillian-container-karaf-managed</artifactId>
                    <version>2.1.0.CR18</version>
                </dependency>
        
                <dependency>
                    <groupId>org.apache.aries.jmx</groupId>
                    <artifactId>org.apache.aries.jmx</artifactId>
                    <version>1.1.1</version>
                </dependency>
        
                <dependency>
                    <groupId>jline</groupId>
                    <artifactId>jline</artifactId>
                    <version>2.12</version>
                </dependency>
                <dependency>
                    <groupId>org.apache.sshd</groupId>
                    <artifactId>sshd-core</artifactId>
                    <version>0.12.0</version>
                </dependency>
                <dependency>
                    <groupId>org.apache.karaf.shell</groupId>
                    <artifactId>org.apache.karaf.shell.console</artifactId>
                    <version>3.0.3</version>
                </dependency>
                <dependency>
                    <groupId>org.apache.karaf</groupId>
                    <artifactId>org.apache.karaf.client</artifactId>
                    <version>3.0.3</version>
                </dependency>  
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-enforcer-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>enforce</goal>
                                </goals>
                                <configuration>
                                    <rules>
                                        <requireProperty>
                                            <property>auth.server</property>
                                            <regex>(wildfly)|(eap)</regex>
                                            <regexMessage>Karaf/Fuse adapter tests require activation of profile "auth-server-wildfly" or "auth-server-eap".</regexMessage>
                                        </requireProperty>
                                    </rules>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        
        
        <profile>
            <id>app-server-karaf3</id>
            <modules>
                <module>karaf3</module>
            </modules>
        </profile>        
        <profile>
            <id>app-server-fuse61</id>
            <modules>
                <module>fuse61</module>
            </modules>
        </profile>        
        <profile>
            <id>app-server-fuse62</id>
            <modules>
                <module>fuse62</module>
            </modules>
        </profile>                
        <profile>
            <id>app-server-fuse63</id>
            <modules>
                <module>fuse63</module>
            </modules>
        </profile>                
        
    </profiles>


</project>