pom.xml

143 lines | 6.62 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">
    <parent>
        <groupId>org.keycloak.testsuite</groupId>
        <artifactId>integration-arquillian-servers-app-server-jboss</artifactId>
        <version>4.1.0.Final</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>integration-arquillian-servers-app-server-eap6</artifactId>
    <packaging>jar</packaging>
    <name>App Server - EAP 6</name>
    
    <properties>
        <app.server.jboss>eap6</app.server.jboss>
        
        <app.server.jboss.groupId>org.jboss.as</app.server.jboss.groupId>
        <app.server.jboss.artifactId>jboss-as-dist</app.server.jboss.artifactId>
        <app.server.jboss.version>${eap6.version}</app.server.jboss.version>
        <app.server.jboss.unpacked.folder.name>jboss-eap-6.4</app.server.jboss.unpacked.folder.name>
        
        <app.server.oidc.adapter.artifactId>keycloak-eap6-adapter-dist</app.server.oidc.adapter.artifactId>
        <app.server.saml.adapter.artifactId>keycloak-saml-eap6-adapter-dist</app.server.saml.adapter.artifactId>
        
        <skip.apply.offline.cli>true</skip.apply.offline.cli>
        <skip.configure.clustered.scenario>true</skip.configure.clustered.scenario>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.keycloak.testsuite</groupId>
            <artifactId>integration-arquillian-servers-app-server-spi</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.wildfly.arquillian</groupId>
            <artifactId>wildfly-arquillian-container-managed</artifactId>
        </dependency>
        <dependency>
            <groupId>org.keycloak.testsuite</groupId>
            <artifactId>integration-arquillian-util</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>enforce-auth-server-jboss-profile</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireProperty>
                                    <property>eap6.version</property>
                                </requireProperty>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>install-adapters-online-standalone</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                        <configuration>
                            <executable>${basedir}/src/main/resources/config/install-adapters-online.${script.suffix}</executable>
                            <workingDirectory>${app.server.jboss.home}/bin</workingDirectory>
                            <environmentVariables>
                                <JAVA_HOME>${app.server.java.home}</JAVA_HOME>
                                <JBOSS_HOME>${app.server.jboss.home}</JBOSS_HOME>
                                <SAML_SUPPORTED>${app.server.saml.adapter.supported}</SAML_SUPPORTED>
                                <CLI_PATH>${basedir}/src/main/resources/config/cli/</CLI_PATH>
                            </environmentVariables>
                        </configuration>
                    </execution>
                    <execution>
                        <id>install-adapters-online-standalone-ha</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                        <configuration>
                            <executable>${basedir}/src/main/resources/config/install-adapters-online-ha.${script.suffix}</executable>
                            <workingDirectory>${app.server.jboss.home}/bin</workingDirectory>
                            <environmentVariables>
                                <JAVA_HOME>${app.server.java.home}</JAVA_HOME>
                                <JBOSS_HOME>${app.server.jboss.home}</JBOSS_HOME>
                                <CLI_PATH>${basedir}/src/main/resources/config/cli/</CLI_PATH>
                            </environmentVariables>
                        </configuration>
                    </execution>
                    <execution>
                        <id>add-secured-deployments-eap6</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                        <configuration>
                            <executable>${basedir}/src/main/resources/config/add-secured-deployments.${script.suffix}</executable>
                            <workingDirectory>${app.server.jboss.home}/bin</workingDirectory>
                            <environmentVariables>
                                <JAVA_HOME>${app.server.java.home}</JAVA_HOME>
                                <JBOSS_HOME>${app.server.jboss.home}</JBOSS_HOME>
                                <CLI_PATH>${basedir}/src/main/resources/config/cli/</CLI_PATH>
                            </environmentVariables>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>