2015-12-15 12:14:30 +00:00
|
|
|
<?xml version="1.0"?>
|
2016-02-03 10:20:22 +00:00
|
|
|
<!--
|
2016-02-19 16:31:11 +00:00
|
|
|
~ 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.
|
|
|
|
-->
|
2016-02-03 10:20:22 +00:00
|
|
|
|
2015-12-15 12:14:30 +00:00
|
|
|
<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</artifactId>
|
2016-02-23 07:48:05 +00:00
|
|
|
<version>1.9.1.Final-SNAPSHOT</version>
|
2015-12-15 12:14:30 +00:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>integration-arquillian-server-eap7</artifactId>
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
<name>Server on EAP 7</name>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skip>true</skip>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>auth-server-eap7</id>
|
|
|
|
<properties>
|
2016-01-19 13:18:39 +00:00
|
|
|
<keycloak.server.home>${project.build.directory}/unpacked/${unpacked.container.folder.name}</keycloak.server.home>
|
2015-12-15 12:14:30 +00:00
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2016-01-08 10:13:59 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>enforce-properties</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireProperty>
|
2016-01-13 14:37:30 +00:00
|
|
|
<property>version.server.dist</property>
|
2016-01-08 10:13:59 +00:00
|
|
|
</requireProperty>
|
2016-01-19 13:18:39 +00:00
|
|
|
<requireProperty>
|
|
|
|
<property>unpacked.container.folder.name</property>
|
|
|
|
</requireProperty>
|
2016-01-08 10:13:59 +00:00
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2015-12-15 12:14:30 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>unpack-server</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.keycloak</groupId>
|
2016-02-02 10:05:35 +00:00
|
|
|
<artifactId>keycloak-server-dist</artifactId>
|
2016-01-13 14:37:30 +00:00
|
|
|
<version>${version.server.dist}</version>
|
2015-12-15 12:14:30 +00:00
|
|
|
<type>zip</type>
|
|
|
|
<outputDirectory>${project.build.directory}/unpacked</outputDirectory>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2016-01-19 10:09:08 +00:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>create-zip</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<descriptors>
|
|
|
|
<descriptor>assembly.xml</descriptor>
|
|
|
|
</descriptors>
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2015-12-15 12:14:30 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
2016-02-19 16:31:11 +00:00
|
|
|
<profile>
|
|
|
|
<id>ssl</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>auth.server.ssl.required</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>xml-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>configure-adapter-subsystem-security</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${keycloak.server.home}/standalone/configuration</dir>
|
|
|
|
<includes>
|
|
|
|
<include>standalone.xml</include>
|
|
|
|
</includes>
|
|
|
|
<stylesheet>src/main/xslt/security.xsl</stylesheet>
|
|
|
|
<outputDir>${keycloak.server.home}/standalone/configuration</outputDir>
|
|
|
|
</transformationSet>
|
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<version>2.7</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>copy-keystore</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${keycloak.server.home}/standalone/configuration</outputDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/keystore</directory>
|
|
|
|
<includes>
|
|
|
|
<include>keycloak.jks</include>
|
|
|
|
<include>keycloak.truststore</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2015-12-15 12:14:30 +00:00
|
|
|
<profile>
|
|
|
|
<id>jpa</id>
|
|
|
|
<properties>
|
|
|
|
<jdbc.mvn.driver.deployment.dir>${keycloak.server.home}/modules/system/layers/base/com/${jdbc.mvn.artifactId}/main</jdbc.mvn.driver.deployment.dir>
|
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>enforce-properties</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireProperty>
|
|
|
|
<property>jdbc.mvn.groupId</property>
|
|
|
|
</requireProperty>
|
|
|
|
<requireProperty>
|
|
|
|
<property>jdbc.mvn.artifactId</property>
|
|
|
|
</requireProperty>
|
|
|
|
<requireProperty>
|
|
|
|
<property>jdbc.mvn.version</property>
|
|
|
|
</requireProperty>
|
|
|
|
<requireProperty>
|
|
|
|
<property>keycloak.connectionsJpa.url</property>
|
|
|
|
</requireProperty>
|
|
|
|
<requireProperty>
|
|
|
|
<property>keycloak.connectionsJpa.user</property>
|
|
|
|
</requireProperty>
|
|
|
|
<requireProperty>
|
|
|
|
<property>keycloak.connectionsJpa.password</property>
|
|
|
|
</requireProperty>
|
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>jdbc-driver</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>${jdbc.mvn.groupId}</groupId>
|
|
|
|
<artifactId>${jdbc.mvn.artifactId}</artifactId>
|
|
|
|
<version>${jdbc.mvn.version}</version>
|
|
|
|
<type>jar</type>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
<outputDirectory>${jdbc.mvn.driver.deployment.dir}</outputDirectory>
|
|
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>xml-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2015-12-16 11:22:44 +00:00
|
|
|
<id>configure-datasource</id>
|
2015-12-15 12:14:30 +00:00
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${keycloak.server.home}/modules/system/layers/base/com/h2database/h2/main</dir>
|
|
|
|
<stylesheet>src/main/xslt/module.xsl</stylesheet>
|
|
|
|
<includes>
|
|
|
|
<include>module.xml</include>
|
|
|
|
</includes>
|
|
|
|
<outputDir>${jdbc.mvn.driver.deployment.dir}</outputDir>
|
|
|
|
<parameters>
|
|
|
|
<parameter>
|
|
|
|
<name>database</name>
|
|
|
|
<value>${jdbc.mvn.artifactId}</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>version</name>
|
|
|
|
<value>${jdbc.mvn.version}</value>
|
|
|
|
</parameter>
|
|
|
|
</parameters>
|
|
|
|
</transformationSet>
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${keycloak.server.home}/standalone/configuration</dir>
|
|
|
|
<stylesheet>src/main/xslt/datasource.xsl</stylesheet>
|
|
|
|
<includes>
|
|
|
|
<include>standalone.xml</include>
|
|
|
|
</includes>
|
|
|
|
<outputDir>${keycloak.server.home}/standalone/configuration</outputDir>
|
|
|
|
<parameters>
|
|
|
|
<parameter>
|
|
|
|
<name>jdbc.url</name>
|
|
|
|
<value>${keycloak.connectionsJpa.url}</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>driver</name>
|
|
|
|
<value>${jdbc.mvn.artifactId}</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>username</name>
|
|
|
|
<value>${keycloak.connectionsJpa.user}</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>password</name>
|
|
|
|
<value>${keycloak.connectionsJpa.password}</value>
|
|
|
|
</parameter>
|
|
|
|
</parameters>
|
|
|
|
</transformationSet>
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${keycloak.server.home}/standalone/configuration</dir>
|
|
|
|
<stylesheet>src/main/xslt/add-dialect-logger.xsl</stylesheet>
|
|
|
|
<includes>
|
|
|
|
<include>standalone.xml</include>
|
|
|
|
</includes>
|
|
|
|
<outputDir>${keycloak.server.home}/standalone/configuration</outputDir>
|
|
|
|
</transformationSet>
|
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2015-12-16 11:22:44 +00:00
|
|
|
</profile>
|
2016-02-19 16:31:11 +00:00
|
|
|
|
2016-01-27 09:01:35 +00:00
|
|
|
<profile>
|
2016-02-19 16:31:11 +00:00
|
|
|
<id>auth-server-eap7-cluster</id>
|
|
|
|
<properties>
|
|
|
|
<session.cache.owners>1</session.cache.owners>
|
|
|
|
<offline.session.cache.owners>1</offline.session.cache.owners>
|
|
|
|
<login.failure.cache.owners>1</login.failure.cache.owners>
|
|
|
|
</properties>
|
2016-01-27 09:01:35 +00:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>xml-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2016-02-19 16:31:11 +00:00
|
|
|
<id>configure-wildfly-datasource</id>
|
2016-01-27 09:01:35 +00:00
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
2016-02-19 16:31:11 +00:00
|
|
|
<!-- point KeycloakDS datasource to H2 running on TCP port -->
|
2016-01-27 09:01:35 +00:00
|
|
|
<transformationSet>
|
|
|
|
<dir>${keycloak.server.home}/standalone/configuration</dir>
|
|
|
|
<includes>
|
2016-02-19 16:31:11 +00:00
|
|
|
<include>standalone-ha.xml</include>
|
2016-01-27 09:01:35 +00:00
|
|
|
</includes>
|
2016-02-19 16:31:11 +00:00
|
|
|
<stylesheet>src/main/xslt/datasource-jdbc-url.xsl</stylesheet>
|
2016-01-27 09:01:35 +00:00
|
|
|
<outputDir>${keycloak.server.home}/standalone/configuration</outputDir>
|
2016-02-19 16:31:11 +00:00
|
|
|
<parameters>
|
|
|
|
<parameter>
|
|
|
|
<name>pool.name</name>
|
|
|
|
<value>KeycloakDS</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>jdbc.url</name>
|
|
|
|
<value>jdbc:h2:tcp://${jboss.bind.address:localhost}:9092/mem:keycloak;DB_CLOSE_DELAY=-1</value>
|
|
|
|
</parameter>
|
|
|
|
</parameters>
|
|
|
|
</transformationSet>
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${keycloak.server.home}/standalone/configuration</dir>
|
|
|
|
<includes>
|
|
|
|
<include>standalone-ha.xml</include>
|
|
|
|
</includes>
|
|
|
|
<stylesheet>src/main/xslt/ispn-cache-owners.xsl</stylesheet>
|
|
|
|
<outputDir>${keycloak.server.home}/standalone/configuration</outputDir>
|
|
|
|
<parameters>
|
|
|
|
<parameter>
|
|
|
|
<name>sessionCacheOwners</name>
|
|
|
|
<value>${session.cache.owners}</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>offlineSessionCacheOwners</name>
|
|
|
|
<value>${offline.session.cache.owners}</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>loginFailureCacheOwners</name>
|
|
|
|
<value>${login.failure.cache.owners}</value>
|
|
|
|
</parameter>
|
|
|
|
</parameters>
|
2016-01-27 09:01:35 +00:00
|
|
|
</transformationSet>
|
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2016-02-19 16:31:11 +00:00
|
|
|
|
2015-12-15 12:14:30 +00:00
|
|
|
</profiles>
|
|
|
|
</project>
|