2017-05-29 07:02:57 +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-cache-server</artifactId>
|
2018-07-04 20:14:15 +00:00
|
|
|
<version>4.2.0.Final-SNAPSHOT</version>
|
2017-05-29 07:02:57 +00:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>integration-arquillian-servers-cache-server-jboss</artifactId>
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
<name>Cache Server - JBoss Family</name>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<common.resources>${project.parent.basedir}/common</common.resources>
|
|
|
|
<assembly.xml>${project.parent.basedir}/assembly.xml</assembly.xml>
|
|
|
|
<cache.server.jboss.home>${containers.home}/${cache.server.jboss.unpacked.folder.name}</cache.server.jboss.home>
|
2018-03-08 10:19:30 +00:00
|
|
|
<cache.server.jboss.cache-authorization-disabled>true</cache.server.jboss.cache-authorization-disabled>
|
2017-05-29 07:02:57 +00:00
|
|
|
<security.xslt>security.xsl</security.xslt>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>cache-server-jboss-submodules</id>
|
|
|
|
<activation>
|
|
|
|
<file>
|
|
|
|
<exists>src</exists>
|
|
|
|
</file>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireProperty>
|
|
|
|
<property>cache.server</property>
|
2018-03-08 10:19:30 +00:00
|
|
|
<property>cache.server.jboss.cache-authorization-enabled</property>
|
2017-05-29 07:02:57 +00:00
|
|
|
<property>cache.server.jboss.groupId</property>
|
|
|
|
<property>cache.server.jboss.artifactId</property>
|
|
|
|
<property>cache.server.jboss.version</property>
|
|
|
|
<property>cache.server.jboss.unpacked.folder.name</property>
|
|
|
|
</requireProperty>
|
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>unpack-cache-server</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>${cache.server.jboss.groupId}</groupId>
|
|
|
|
<artifactId>${cache.server.jboss.artifactId}</artifactId>
|
|
|
|
<version>${cache.server.jboss.version}</version>
|
|
|
|
<type>zip</type>
|
|
|
|
<classifier>bin</classifier>
|
|
|
|
<outputDirectory>${containers.home}</outputDirectory>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>xml-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-06-19 22:29:19 +00:00
|
|
|
<id>configure-keycloak-caches</id>
|
2017-05-29 07:02:57 +00:00
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
2017-10-19 06:53:04 +00:00
|
|
|
|
|
|
|
<!-- Configure dc-0 site in file clustered-1.xml -->
|
2017-05-29 07:02:57 +00:00
|
|
|
<transformationSet>
|
|
|
|
<dir>${cache.server.jboss.home}/standalone/configuration</dir>
|
|
|
|
<includes>
|
2017-06-19 22:29:19 +00:00
|
|
|
<include>clustered.xml</include>
|
2017-05-29 07:02:57 +00:00
|
|
|
</includes>
|
2017-06-19 22:29:19 +00:00
|
|
|
<stylesheet>${common.resources}/add-keycloak-caches.xsl</stylesheet>
|
2017-10-19 06:53:04 +00:00
|
|
|
<parameters>
|
|
|
|
<parameter>
|
|
|
|
<name>local.site</name>
|
|
|
|
<value>dc-0</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>remote.site</name>
|
|
|
|
<value>dc-1</value>
|
|
|
|
</parameter>
|
|
|
|
</parameters>
|
2017-05-29 07:02:57 +00:00
|
|
|
<outputDir>${cache.server.jboss.home}/standalone/configuration</outputDir>
|
2017-10-19 06:53:04 +00:00
|
|
|
<fileMappers>
|
|
|
|
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
|
|
|
|
<pattern>^(.*)\.xml$</pattern>
|
|
|
|
<replacement>$1-1.xml</replacement>
|
|
|
|
</fileMapper>
|
|
|
|
</fileMappers>
|
2017-05-29 07:02:57 +00:00
|
|
|
</transformationSet>
|
2017-10-19 06:53:04 +00:00
|
|
|
|
|
|
|
<!-- Configure dc-1 site in file clustered-2.xml -->
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${cache.server.jboss.home}/standalone/configuration</dir>
|
|
|
|
<includes>
|
|
|
|
<include>clustered.xml</include>
|
|
|
|
</includes>
|
|
|
|
<stylesheet>${common.resources}/add-keycloak-caches.xsl</stylesheet>
|
|
|
|
<parameters>
|
|
|
|
<parameter>
|
|
|
|
<name>local.site</name>
|
|
|
|
<value>dc-1</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>remote.site</name>
|
|
|
|
<value>dc-0</value>
|
|
|
|
</parameter>
|
|
|
|
</parameters>
|
|
|
|
<outputDir>${cache.server.jboss.home}/standalone/configuration</outputDir>
|
|
|
|
<fileMappers>
|
|
|
|
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
|
|
|
|
<pattern>^(.*)\.xml$</pattern>
|
|
|
|
<replacement>$1-2.xml</replacement>
|
|
|
|
</fileMapper>
|
|
|
|
</fileMappers>
|
|
|
|
</transformationSet>
|
|
|
|
|
2017-05-29 07:02:57 +00:00
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-10-19 06:53:04 +00:00
|
|
|
|
2018-03-08 10:19:30 +00:00
|
|
|
<execution>
|
|
|
|
<id>configure-keycloak-authorization</id>
|
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<skip>${cache.server.jboss.cache-authorization-disabled}</skip>
|
|
|
|
<transformationSets>
|
|
|
|
<!-- Configure authorization in files clustered-__dc__.xml -->
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${cache.server.jboss.home}/standalone/configuration</dir>
|
|
|
|
<includes>
|
|
|
|
<include>clustered-1.xml</include>
|
|
|
|
<include>clustered-2.xml</include>
|
|
|
|
</includes>
|
|
|
|
<stylesheet>${common.resources}/cache-authorization.xsl</stylesheet>
|
|
|
|
<outputDir>${cache.server.jboss.home}/standalone/configuration</outputDir>
|
|
|
|
</transformationSet>
|
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
|
2017-05-29 07:02:57 +00:00
|
|
|
<execution>
|
|
|
|
<id>io-worker-threads</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${cache.server.jboss.home}/standalone/configuration</dir>
|
|
|
|
<includes>
|
|
|
|
<include>standalone.xml</include>
|
|
|
|
<include>standalone-ha.xml</include>
|
|
|
|
</includes>
|
|
|
|
<stylesheet>${common.resources}/io.xsl</stylesheet>
|
|
|
|
<outputDir>${cache.server.jboss.home}/standalone/configuration</outputDir>
|
|
|
|
<parameters>
|
|
|
|
<parameter>
|
|
|
|
<name>worker.io-threads</name>
|
|
|
|
<value>${cache.server.worker.io-threads}</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>worker.task-max-threads</name>
|
|
|
|
<value>${cache.server.worker.task-max-threads}</value>
|
|
|
|
</parameter>
|
|
|
|
</parameters>
|
|
|
|
</transformationSet>
|
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>enable-jboss-mgmt-admin</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${cache.server.jboss.home}/standalone/configuration</outputDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${common.resources}</directory>
|
|
|
|
<includes>
|
|
|
|
<include>mgmt-users.properties</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
<overwrite>true</overwrite>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-06-19 22:29:19 +00:00
|
|
|
<execution>
|
|
|
|
<id>copy-cache-server-configuration-for-dc-2</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${cache.server.jboss.home}/standalone-dc-2/deployments</outputDirectory>
|
|
|
|
<includeEmptyDirs>true</includeEmptyDirs>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${cache.server.jboss.home}/standalone/deployments</directory>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
<overwrite>true</overwrite>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-05-29 07:02:57 +00:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>cache-server-infinispan</id>
|
|
|
|
<modules>
|
|
|
|
<module>infinispan</module>
|
|
|
|
</modules>
|
|
|
|
</profile>
|
2017-06-15 09:39:38 +00:00
|
|
|
<profile>
|
|
|
|
<id>cache-server-jdg</id>
|
|
|
|
<modules>
|
|
|
|
<module>jdg</module>
|
|
|
|
</modules>
|
|
|
|
</profile>
|
2017-05-29 07:02:57 +00:00
|
|
|
</profiles>
|
|
|
|
|
|
|
|
</project>
|