2016-03-24 10:24:21 +00:00
<?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-auth-server</artifactId>
2020-04-29 10:43:07 +00:00
<version > 11.0.0-SNAPSHOT</version>
2016-03-24 10:24:21 +00:00
</parent>
<modelVersion > 4.0.0</modelVersion>
<packaging > pom</packaging>
2016-04-13 07:45:28 +00:00
2016-03-24 10:24:21 +00:00
<artifactId > integration-arquillian-servers-auth-server-jboss</artifactId>
2016-04-13 07:45:28 +00:00
2016-03-24 10:24:21 +00:00
<name > Auth Server - JBoss</name>
2016-04-13 07:45:28 +00:00
2016-03-24 10:24:21 +00:00
<properties >
2018-06-06 02:53:44 +00:00
<common.resources > ${basedir}/../common</common.resources>
2016-03-24 10:24:21 +00:00
<assembly.xml > ${project.parent.basedir}/assembly.xml</assembly.xml>
2016-04-13 07:45:28 +00:00
2016-03-24 10:24:21 +00:00
<!-- server - dist -->
<auth.server.dist.groupId > org.keycloak</auth.server.dist.groupId>
<auth.server.dist.artifactId > keycloak-server-dist</auth.server.dist.artifactId>
<auth.server.dist.version > ${project.version}</auth.server.dist.version>
<auth.server.dist.unpacked.folder.name > keycloak-${auth.server.dist.version}</auth.server.dist.unpacked.folder.name>
2016-04-13 07:45:28 +00:00
2016-03-24 10:24:21 +00:00
<!-- server - overlay -->
<auth.server.overlay.groupId > org.keycloak</auth.server.overlay.groupId>
<auth.server.overlay.artifactId > keycloak-server-overlay</auth.server.overlay.artifactId>
<auth.server.overlay.version > ${project.version}</auth.server.overlay.version>
<overlaid.container.groupId > org.wildfly</overlaid.container.groupId>
<overlaid.container.artifactId > wildfly-dist</overlaid.container.artifactId>
<overlaid.container.version > ${wildfly.version}</overlaid.container.version>
<overlaid.container.unpacked.folder.name > wildfly-${overlaid.container.version}</overlaid.container.unpacked.folder.name>
2016-04-13 07:45:28 +00:00
2016-03-24 10:24:21 +00:00
<!-- actual unpacked artifact: server - dist by default, overriden in server - overlay profile -->
<unpacked.artifact.groupId > ${auth.server.dist.groupId}</unpacked.artifact.groupId>
<unpacked.artifact.artifactId > ${auth.server.dist.artifactId}</unpacked.artifact.artifactId>
<unpacked.artifact.version > ${auth.server.dist.version}</unpacked.artifact.version>
2016-04-13 07:45:28 +00:00
2016-03-24 10:24:21 +00:00
<auth.server.home > ${project.build.directory}/unpacked/${auth.server.dist.unpacked.folder.name}</auth.server.home>
2016-04-13 07:45:28 +00:00
2016-03-30 12:48:19 +00:00
<!-- used in profile auth - server - cluster. profile jpa sets this to true -->
<skip.h2.tcp > false</skip.h2.tcp>
2016-05-20 12:13:39 +00:00
2019-03-08 12:27:29 +00:00
<!-- default ant scenario -->
<ant.scenario > scenario-standalone</ant.scenario>
2019-03-19 10:41:42 +00:00
<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>
2019-11-04 10:27:03 +00:00
<!-- Path to testsuite/test resources : Themes -->
<keycloak.base.test.resource > ${project.parent.basedir}/../../../tests/base/src/test/resources</keycloak.base.test.resource>
2016-03-24 10:24:21 +00:00
</properties>
2016-04-13 07:45:28 +00:00
2016-03-24 10:24:21 +00:00
<profiles >
<profile >
<id > auth-server-jboss-submodules</id>
<activation >
<file >
<exists > src</exists>
</file>
</activation>
<build >
<plugins >
<plugin >
<artifactId > maven-deploy-plugin</artifactId>
<configuration >
<skip > true</skip>
</configuration>
</plugin>
<plugin >
<artifactId > maven-dependency-plugin</artifactId>
<executions >
<execution >
<id > unpack-server-or-overlay</id>
<phase > generate-resources</phase>
<goals >
<goal > unpack</goal>
</goals>
<configuration >
<artifactItems >
<artifactItem >
<groupId > ${unpacked.artifact.groupId}</groupId>
<artifactId > ${unpacked.artifact.artifactId}</artifactId>
<version > ${unpacked.artifact.version}</version>
<type > zip</type>
<outputDirectory > ${project.build.directory}/unpacked</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
2016-03-24 15:08:36 +00:00
<execution >
2016-04-20 03:10:40 +00:00
<id > copy-testsuite-providers</id>
2016-03-24 15:08:36 +00:00
<phase > generate-resources</phase>
<goals >
<goal > copy</goal>
</goals>
<configuration >
<artifactItems >
<artifactItem >
<groupId > org.keycloak.testsuite</groupId>
2016-04-20 03:10:40 +00:00
<artifactId > integration-arquillian-testsuite-providers</artifactId>
2016-03-24 15:08:36 +00:00
<version > ${project.version}</version>
<type > jar</type>
<overWrite > false</overWrite>
2016-04-20 03:10:40 +00:00
<outputDirectory > ${auth.server.home}/modules/org/keycloak/testsuite/integration-arquillian-testsuite-providers/main</outputDirectory>
2016-03-24 15:08:36 +00:00
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution >
2016-04-20 03:10:40 +00:00
<id > install-testsuite-providers-module</id>
2016-03-24 15:08:36 +00:00
<phase > generate-resources</phase>
<goals >
<goal > unpack</goal>
</goals>
<configuration >
<artifactItems >
<artifactItem >
<groupId > org.keycloak.testsuite</groupId>
2016-04-20 03:10:40 +00:00
<artifactId > integration-arquillian-testsuite-providers</artifactId>
2016-03-24 15:08:36 +00:00
<version > ${project.version}</version>
<type > jar</type>
<outputDirectory > ${auth.server.home}/modules</outputDirectory>
<includes > **/module.xml</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
2016-03-24 10:24:21 +00:00
</executions>
</plugin>
<plugin >
2016-03-24 15:08:36 +00:00
<artifactId > maven-enforcer-plugin</artifactId>
2016-03-24 10:24:21 +00:00
</plugin>
<plugin >
<artifactId > maven-resources-plugin</artifactId>
2016-04-06 07:11:06 +00:00
<executions >
2019-11-04 10:27:03 +00:00
<execution >
<id > add-extending-theme</id>
<phase > process-resources</phase>
<goals >
<goal > copy-resources</goal>
</goals>
<configuration >
<outputDirectory > ${auth.server.home}/themes</outputDirectory>
<resources >
<resource >
<directory > ${keycloak.base.test.resource}/theme</directory>
</resource>
</resources>
</configuration>
</execution>
2016-04-06 07:11:06 +00:00
<execution >
<id > enable-jboss-mgmt-admin</id>
<phase > process-resources</phase>
<goals >
<goal > copy-resources</goal>
</goals>
<configuration >
<outputDirectory > ${auth.server.home}/standalone/configuration</outputDirectory>
<resources >
<resource >
<directory > ${common.resources}</directory>
<includes >
<include > mgmt-users.properties</include>
</includes>
</resource>
</resources>
<overwrite > true</overwrite>
</configuration>
</execution>
2016-05-16 20:31:23 +00:00
<execution >
<id > copy-keystore</id>
<phase > process-resources</phase>
<goals >
<goal > copy-resources</goal>
</goals>
<configuration >
<outputDirectory > ${auth.server.home}/standalone/configuration</outputDirectory>
<resources >
<resource >
<directory > ${common.resources}/keystore</directory>
<includes >
<include > keycloak.jks</include>
<include > keycloak.truststore</include>
2016-07-26 15:47:28 +00:00
<include > client.jks</include>
2019-07-09 15:48:32 +00:00
<include > client-ca.jks</include>
2016-07-26 15:47:28 +00:00
<include > ca.crt</include>
<include > client.crt</include>
<include > client.key</include>
2019-03-21 10:55:49 +00:00
<include > *.crl</include>
2018-06-05 00:30:09 +00:00
<!-- KEYCLOAK - 6771 Certificate Bound Token -->
<include > other_client.jks</include>
2016-05-16 20:31:23 +00:00
</includes>
</resource>
2018-02-20 20:50:10 +00:00
<resource >
<directory > ${common.resources}/pki/root/ca</directory>
<includes >
2019-03-07 07:22:53 +00:00
<include > certs/clients/test-user-san@localhost.cert.pem</include>
2018-02-20 20:50:10 +00:00
<include > certs/clients/test-user@localhost.key.pem</include>
</includes>
</resource>
2016-05-16 20:31:23 +00:00
</resources>
</configuration>
</execution>
2019-08-21 15:46:57 +00:00
<execution >
<id > copy-vault</id>
<phase > process-resources</phase>
<goals >
<goal > copy-resources</goal>
</goals>
<configuration >
<outputDirectory > ${auth.server.home}/standalone/configuration/vault</outputDirectory>
<resources >
<resource >
<directory > ${common.resources}/vault</directory>
<includes >
<include > master_smtp__key</include>
<include > test_smtp__key</include>
2019-09-05 12:43:30 +00:00
<include > consumer_oidc__idp</include>
2019-09-06 12:16:14 +00:00
<include > master_smtp__password</include>
2019-09-04 11:30:44 +00:00
<include > master_ldap__bindCredential</include>
<include > test_ldap__bindCredential</include>
2019-09-10 17:28:13 +00:00
<include > admin-client-test_ldap__bindCredential</include>
2019-08-21 15:46:57 +00:00
</includes>
</resource>
</resources>
</configuration>
</execution>
2016-05-16 20:31:23 +00:00
</executions>
</plugin>
2018-06-06 02:53:44 +00:00
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-antrun-plugin</artifactId>
2019-03-08 12:27:29 +00:00
<executions >
<execution >
<id > ant-generate-default</id>
<phase > generate-resources</phase>
<goals >
<goal > run</goal>
</goals>
<configuration >
<target >
2019-03-19 10:41:42 +00:00
<ant antfile= "${common.resources}/ant/configure.xml" target= "${ant.scenario}-generate" >
<!-- In most of the cases, Ant Plugin picks up properties automatically.
However, in some rare cases, it will not detect if a property has been overriden
in the command line using "-D" switch (see why here: https://technotes.khitrenovich.com/properties-resolution-maven-implications-antrun-plugin/
There's also another case, when we have a dynamic property (like "keycloak.connectionsJpa.url")
that can change in the runtime. In such cases, we CAN NOT put is as a property (or
Ant will see outdated values, not the dynamic ones). -->
<property name= "session.cache.owners" value= "${session.cache.owners}" />
<property name= "offline.session.cache.owners" value= "${offline.session.cache.owners}" />
<property name= "login.failure.cache.owners" value= "${login.failure.cache.owners}" />
2019-03-08 12:27:29 +00:00
</ant>
</target>
</configuration>
</execution>
<execution >
<id > ant-apply-prepared-clis</id>
<phase > process-resources</phase>
<goals >
<goal > run</goal>
</goals>
<configuration >
<target >
2019-05-21 11:28:42 +00:00
<ant antfile= "${common.resources}/ant/configure.xml" target= "apply-cli-scripts" >
<!-- See the comment above. In this case "auth.server.home" can contain
"product.unpacked.folder.name" which is set at runtime and therefore
not resolved. -->
<property name= "auth.server.home" > ${auth.server.home}</property>
</ant>
2019-03-08 12:27:29 +00:00
</target>
</configuration>
</execution>
</executions>
2018-06-06 02:53:44 +00:00
</plugin>
2016-05-16 20:31:23 +00:00
<plugin >
2016-06-21 08:53:24 +00:00
<artifactId > maven-assembly-plugin</artifactId>
2016-05-16 20:31:23 +00:00
<executions >
<execution >
2016-06-21 08:53:24 +00:00
<id > create-zip</id>
<phase > package</phase>
2016-05-16 20:31:23 +00:00
<goals >
2016-06-21 08:53:24 +00:00
<goal > single</goal>
2016-05-16 20:31:23 +00:00
</goals>
<configuration >
2016-06-21 08:53:24 +00:00
<descriptors >
<descriptor > ${assembly.xml}</descriptor>
</descriptors>
<appendAssemblyId > false</appendAssemblyId>
2016-05-16 20:31:23 +00:00
</configuration>
</execution>
</executions>
</plugin>
2016-03-24 10:24:21 +00:00
</plugins>
</build>
</profile>
<!-- OPT - IN -->
<profile >
<id > server-overlay</id>
<activation >
<property >
<name > server-overlay</name>
</property>
</activation>
<properties >
<!-- override default unpacked artifact with server - overlay -->
2016-09-20 11:00:54 +00:00
<unpacked.artifact.groupId > ${overlaid.container.groupId}</unpacked.artifact.groupId>
<unpacked.artifact.artifactId > ${overlaid.container.artifactId}</unpacked.artifact.artifactId>
<unpacked.artifact.version > ${overlaid.container.version}</unpacked.artifact.version>
2016-03-24 10:24:21 +00:00
<auth.server.home > ${project.build.directory}/unpacked/${overlaid.container.unpacked.folder.name}</auth.server.home>
</properties>
<build >
<pluginManagement >
<plugins >
<plugin >
<artifactId > maven-dependency-plugin</artifactId>
<executions >
<execution >
<id > unpack-overlaid-container</id>
<phase > generate-resources</phase>
<goals >
<goal > unpack</goal>
</goals>
<configuration >
<artifactItems >
<artifactItem >
2016-09-20 11:00:54 +00:00
<groupId > ${auth.server.overlay.groupId}</groupId>
<artifactId > ${auth.server.overlay.artifactId}</artifactId>
<version > ${auth.server.overlay.version}</version>
2016-03-24 10:24:21 +00:00
<type > zip</type>
2017-05-18 21:35:04 +00:00
<overWrite > true</overWrite>
2016-09-20 11:00:54 +00:00
<outputDirectory > ${project.build.directory}/unpacked/${overlaid.container.unpacked.folder.name}</outputDirectory>
2016-03-24 10:24:21 +00:00
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin >
2016-09-20 11:00:54 +00:00
<groupId > org.codehaus.mojo</groupId>
<artifactId > exec-maven-plugin</artifactId>
2016-03-24 10:24:21 +00:00
<executions >
<execution >
2016-09-20 11:00:54 +00:00
<id > install-server-overlay</id>
<phase > generate-resources</phase>
2016-03-24 10:24:21 +00:00
<goals >
2016-09-20 11:00:54 +00:00
<goal > exec</goal>
2016-03-24 10:24:21 +00:00
</goals>
</execution>
</executions>
2016-09-20 11:00:54 +00:00
<configuration >
<executable > ${common.resources}/install-keycloak.${script.suffix}</executable>
<workingDirectory > ${auth.server.home}/bin</workingDirectory>
<environmentVariables >
<JAVA_HOME > ${auth.server.java.home}</JAVA_HOME>
<JBOSS_HOME > ${auth.server.home}</JBOSS_HOME>
</environmentVariables>
</configuration>
2016-03-24 10:24:21 +00:00
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
2019-03-08 12:27:29 +00:00
2016-03-24 10:24:21 +00:00
<profile >
<id > jpa</id>
<properties >
2019-03-08 12:27:29 +00:00
<jdbc.driver.tmp.dir > ${project.build.directory}/jdbc-driver</jdbc.driver.tmp.dir>
2016-03-30 12:48:19 +00:00
<skip.h2.tcp > true</skip.h2.tcp>
2016-03-24 10:24:21 +00:00
</properties>
<build >
<pluginManagement >
<plugins >
<plugin >
<artifactId > maven-enforcer-plugin</artifactId>
<executions >
<execution >
<id > enforce-properties</id>
<goals >
<goal > enforce</goal>
</goals>
<configuration >
<rules >
<requireProperty >
<property > jdbc.mvn.groupId</property>
2019-03-08 12:27:29 +00:00
<regex > ((?!com.h2database).)*</regex>
<regexMessage > jdbc.mvn.groupId property is not set correctly: ${jdbc.mvn.groupId}. Profile jpa is not supported for default h2 values!</regexMessage>
2016-03-24 10:24:21 +00:00
</requireProperty>
<requireProperty >
<property > jdbc.mvn.artifactId</property>
2019-03-08 12:27:29 +00:00
<regex > ((?!h2).)*</regex>
<regexMessage > jdbc.mvn.artifactId property is not set correctly: ${jdbc.mvn.artifactId}. Profile jpa is not supported for default h2 values!</regexMessage>
2016-03-24 10:24:21 +00:00
</requireProperty>
<requireProperty >
<property > jdbc.mvn.version</property>
2019-03-08 12:27:29 +00:00
<regex > ((?!${h2.version}).)*</regex>
<regexMessage > jdbc.mvn.version property is not set correctly: ${jdbc.mvn.version}. Profile jpa is not supported for default h2 values!</regexMessage>
2016-03-24 10:24:21 +00:00
</requireProperty>
<requireProperty >
<property > keycloak.connectionsJpa.password</property>
2019-03-08 12:27:29 +00:00
<regex > ^(?!\s*$).+</regex>
<regexMessage > keycloak.connectionsJpa.password property cannot be empty string!</regexMessage>
2016-10-12 10:26:00 +00:00
</requireProperty>
2016-03-24 10:24:21 +00:00
</rules>
2019-03-08 12:27:29 +00:00
<fail > true</fail>
2016-03-24 10:24:21 +00:00
</configuration>
</execution>
</executions>
</plugin>
<plugin >
<artifactId > maven-dependency-plugin</artifactId>
<executions >
<execution >
<id > jdbc-driver</id>
2019-03-08 12:27:29 +00:00
<phase > generate-resources</phase>
2016-03-24 10:24:21 +00:00
<goals >
<goal > copy</goal>
</goals>
<configuration >
<artifactItems >
<artifactItem >
<groupId > ${jdbc.mvn.groupId}</groupId>
2016-04-13 07:45:28 +00:00
<artifactId > ${jdbc.mvn.artifactId}</artifactId>
2016-03-24 10:24:21 +00:00
<version > ${jdbc.mvn.version}</version>
<type > jar</type>
</artifactItem>
</artifactItems>
2019-03-08 12:27:29 +00:00
<outputDirectory > ${jdbc.driver.tmp.dir}</outputDirectory>
2016-03-24 10:24:21 +00:00
<overWriteIfNewer > true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin >
2019-03-08 12:27:29 +00:00
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-antrun-plugin</artifactId>
2016-03-24 10:24:21 +00:00
<executions >
<execution >
2019-03-08 12:27:29 +00:00
<id > configure-server-jpa</id>
<phase > generate-resources</phase>
2016-03-24 10:24:21 +00:00
<goals >
2019-03-08 12:27:29 +00:00
<goal > run</goal>
2016-03-24 10:24:21 +00:00
</goals>
<configuration >
2019-03-08 12:27:29 +00:00
<target >
2019-05-15 18:49:54 +00:00
<ant antfile= "${common.resources}/ant/configure.xml" target= "configure-server-jpa" >
<!-- These properties become equivalent to properties defined on the command line. -->
<!-- Without specifying those the default values would be used regardless what is -->
<!-- defined via - Dproperty=value when executing maven command -->
<property name= "jdbc.mvn.groupId" > ${jdbc.mvn.groupId}</property>
<property name= "jdbc.mvn.artifactId" > ${jdbc.mvn.artifactId}</property>
<property name= "jdbc.mvn.version" > ${jdbc.mvn.version}</property>
2019-09-27 09:37:31 +00:00
<property name= "keycloak.connectionsJpa.url" > ${keycloak.connectionsJpa.url}</property>
<property name= "keycloak.connectionsJpa.user" > ${keycloak.connectionsJpa.user}</property>
<property name= "keycloak.connectionsJpa.password" > ${keycloak.connectionsJpa.password}</property>
2019-05-15 18:49:54 +00:00
</ant>
2019-03-08 12:27:29 +00:00
</target>
2016-03-24 10:24:21 +00:00
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
2016-04-13 07:45:28 +00:00
</profile>
2019-03-08 12:27:29 +00:00
2016-10-13 12:01:29 +00:00
<profile >
<id > migration-manual</id>
<activation >
<property >
<name > migration.mode</name>
<value > manual</value>
</property>
</activation>
<build >
<pluginManagement >
<plugins >
<plugin >
2019-03-08 12:27:29 +00:00
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-antrun-plugin</artifactId>
2016-10-13 12:01:29 +00:00
<executions >
<execution >
<id > set-manual-migration-strategy</id>
2019-03-08 12:27:29 +00:00
<phase > generate-resources</phase>
2016-10-13 12:01:29 +00:00
<goals >
2019-03-08 12:27:29 +00:00
<goal > run</goal>
2016-10-13 12:01:29 +00:00
</goals>
<configuration >
2019-03-08 12:27:29 +00:00
<target >
<ant antfile= "${common.resources}/ant/configure.xml" target= "set-manual-migration-strategy" />
</target>
2016-10-13 12:01:29 +00:00
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
2019-03-08 12:27:29 +00:00
2017-09-21 13:01:01 +00:00
<profile >
<id > auth-servers-crossdc-jboss</id>
<properties >
2019-03-08 12:27:29 +00:00
<ant.scenario > scenario-crossdc</ant.scenario>
<h2.jdbc.url > jdbc:h2:tcp://localhost:9092/mem:keycloak-dc-shared;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</h2.jdbc.url>
2017-09-21 13:01:01 +00:00
</properties>
<build >
<plugins >
<plugin >
<artifactId > maven-enforcer-plugin</artifactId>
<configuration >
<skip > true</skip>
</configuration>
</plugin>
</plugins>
<pluginManagement >
<plugins >
<plugin >
<artifactId > maven-enforcer-plugin</artifactId>
<executions >
<execution >
<id > enforce-profile-activation</id>
<goals >
<goal > enforce</goal>
</goals>
<configuration >
<rules >
<requireProperty >
<property > auth.server.jboss</property>
<message > Profile "auth-servers-crossdc-jboss" requires activation of another profile: either "auth-server-wildfly" or "auth-server-eap".</message>
<regex > (wildfly|eap)</regex>
</requireProperty>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin >
2018-06-06 02:53:44 +00:00
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-antrun-plugin</artifactId>
2017-09-21 13:01:01 +00:00
<executions >
<execution >
2019-03-08 12:27:29 +00:00
<id > jpa-h2-tcp</id>
<phase > generate-resources</phase>
2017-09-21 13:01:01 +00:00
<goals >
2018-06-06 02:53:44 +00:00
<goal > run</goal>
2017-09-21 13:01:01 +00:00
</goals>
<configuration >
2019-03-08 12:27:29 +00:00
<skip > ${skip.h2.tcp}</skip>
2018-06-06 02:53:44 +00:00
<target >
2019-03-08 12:27:29 +00:00
<ant antfile= "${common.resources}/ant/configure.xml" target= "replace-jdbc-url" />
2018-06-06 02:53:44 +00:00
</target>
2017-09-21 13:01:01 +00:00
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
2019-03-08 12:27:29 +00:00
2016-03-24 10:24:21 +00:00
<profile >
<id > auth-server-cluster</id>
<properties >
2019-03-08 12:27:29 +00:00
<ant.scenario > scenario-cluster</ant.scenario>
2016-05-04 00:48:36 +00:00
<load.metric > simple</load.metric>
<!-- The default value 'simple' configures mod - cluster with simple - load - provider.
Any other value configures it with dynamic-load-provider using the particular `load.metric`.
Supported metrics: https://docs.jboss.org/mod_cluster/1.2.0/html/java.AS7config.html#LoadMetric -->
2016-05-16 20:31:23 +00:00
2019-03-08 12:27:29 +00:00
<h2.jdbc.url > jdbc:h2:tcp://${jboss.bind.address:localhost}:9092/mem:keycloak;DB_CLOSE_DELAY=-1</h2.jdbc.url>
2016-03-24 10:24:21 +00:00
</properties>
<build >
<pluginManagement >
<plugins >
2019-02-18 08:19:39 +00:00
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-antrun-plugin</artifactId>
<executions >
<execution >
2019-03-08 12:27:29 +00:00
<id > jpa-h2-tcp</id>
<phase > generate-resources</phase>
2019-02-18 08:19:39 +00:00
<goals >
<goal > run</goal>
</goals>
<configuration >
2019-03-08 12:27:29 +00:00
<skip > ${skip.h2.tcp}</skip>
2019-02-18 08:19:39 +00:00
<target >
2019-03-08 12:27:29 +00:00
<ant antfile= "${common.resources}/ant/configure.xml" target= "replace-jdbc-url" />
2019-02-18 08:19:39 +00:00
</target>
</configuration>
</execution>
</executions>
</plugin>
2016-03-24 10:24:21 +00:00
</plugins>
</pluginManagement>
</build>
</profile>
2016-05-16 20:31:23 +00:00
2016-05-04 00:48:36 +00:00
<profile >
<id > admin</id>
<build >
<pluginManagement >
<plugins >
<plugin >
<artifactId > maven-resources-plugin</artifactId>
<executions >
<execution >
<id > copy-keycloak-add-user-json</id>
<phase > process-resources</phase>
<goals >
<goal > copy-resources</goal>
</goals>
<configuration >
<outputDirectory > ${auth.server.home}/standalone/configuration</outputDirectory>
<resources >
<resource >
<directory > ${common.resources}</directory>
<includes >
<include > keycloak-add-user.json</include>
</includes>
</resource>
</resources>
<overwrite > true</overwrite>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
2016-04-13 07:45:28 +00:00
2016-03-24 10:24:21 +00:00
<profile >
<id > auth-server-wildfly</id>
<modules >
<module > wildfly</module>
</modules>
</profile>
<profile >
<id > auth-server-eap</id>
<modules >
<module > eap</module>
</modules>
</profile>
2016-04-13 07:45:28 +00:00
2017-10-17 15:36:11 +00:00
<profile >
<id > db-failover-mariadb</id>
<properties >
<jdbc.mvn.groupId > org.mariadb.jdbc</jdbc.mvn.groupId>
<jdbc.mvn.artifactId > mariadb-java-client</jdbc.mvn.artifactId>
<jdbc.mvn.version > 2.0.3</jdbc.mvn.version>
<keycloak.connectionsJpa.user > keycloak</keycloak.connectionsJpa.user>
<keycloak.connectionsJpa.password > keycloak</keycloak.connectionsJpa.password>
<mariadb.ha.mode > replication</mariadb.ha.mode>
<mariadb.hosts > localhost:3316,localhost:3326</mariadb.hosts>
<mariadb.database > keycloak</mariadb.database>
<mariadb.options > </mariadb.options>
<keycloak.connectionsJpa.url > jdbc:mariadb:${mariadb.ha.mode}://${mariadb.hosts}/${mariadb.database}${mariadb.options}</keycloak.connectionsJpa.url>
</properties>
</profile>
2016-03-24 10:24:21 +00:00
</profiles>
</project>