2017-07-13 18:25:26 +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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
<parent>
|
|
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
|
|
<artifactId>performance</artifactId>
|
2021-07-30 12:55:12 +00:00
|
|
|
<version>16.0.0-SNAPSHOT</version>
|
2017-07-13 18:25:26 +00:00
|
|
|
<relativePath>../pom.xml</relativePath>
|
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>performance-keycloak-server</artifactId>
|
|
|
|
<name>Keycloak Performance TestSuite - Keycloak Server</name>
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
|
|
|
|
<description>
|
|
|
|
Uses maven-dependency-plugin to unpack keycloak-server-dist artifact into `target/keycloak` which is then added to Docker image.
|
|
|
|
</description>
|
|
|
|
|
2017-10-17 15:36:11 +00:00
|
|
|
<properties>
|
|
|
|
<server.groupId>org.keycloak</server.groupId>
|
|
|
|
<server.artifactId>keycloak-server-dist</server.artifactId>
|
2018-02-19 10:13:30 +00:00
|
|
|
<!-- `server.version` is defined one level up -->
|
2018-01-04 20:21:31 +00:00
|
|
|
<server.unpacked.folder.name>keycloak-${server.version}</server.unpacked.folder.name>
|
|
|
|
<server.unpacked.home>${project.build.directory}/${server.unpacked.folder.name}</server.unpacked.home>
|
2017-11-14 18:58:55 +00:00
|
|
|
|
|
|
|
<jdbc.driver.groupId>org.mariadb.jdbc</jdbc.driver.groupId>
|
|
|
|
<jdbc.driver.artifactId>mariadb-java-client</jdbc.driver.artifactId>
|
2018-10-23 12:55:38 +00:00
|
|
|
<jdbc.driver.version>2.2.4</jdbc.driver.version>
|
2017-11-14 18:58:55 +00:00
|
|
|
<jdbc.driver.module.path>org/mariadb/jdbc</jdbc.driver.module.path>
|
|
|
|
|
|
|
|
<script.extension>sh</script.extension>
|
|
|
|
<jboss.cli.script>jboss-cli.${script.extension}</jboss.cli.script>
|
|
|
|
<add.user.script>add-user.${script.extension}</add.user.script>
|
|
|
|
|
|
|
|
<skip.crossdc.configuration>true</skip.crossdc.configuration>
|
|
|
|
|
|
|
|
<skip.configuration>false</skip.configuration>
|
2017-12-04 14:52:21 +00:00
|
|
|
<skip.add.management.user>true</skip.add.management.user>
|
2017-11-14 18:58:55 +00:00
|
|
|
<skip.keycloak.docker>false</skip.keycloak.docker>
|
|
|
|
|
|
|
|
<scripts.dir>${project.build.scriptSourceDirectory}</scripts.dir>
|
|
|
|
<resources.dir>${project.basedir}/src/main/resources</resources.dir>
|
2017-10-17 15:36:11 +00:00
|
|
|
</properties>
|
|
|
|
|
2017-07-13 18:25:26 +00:00
|
|
|
<build>
|
2017-11-14 18:58:55 +00:00
|
|
|
|
2017-07-13 18:25:26 +00:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>unpack-keycloak-server-dist</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-11-14 18:58:55 +00:00
|
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
2017-07-13 18:25:26 +00:00
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
2017-10-17 15:36:11 +00:00
|
|
|
<groupId>${server.groupId}</groupId>
|
|
|
|
<artifactId>${server.artifactId}</artifactId>
|
2018-01-04 20:21:31 +00:00
|
|
|
<version>${server.version}</version>
|
2017-07-13 18:25:26 +00:00
|
|
|
<type>zip</type>
|
|
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
<execution>
|
|
|
|
<id>copy-jdbc-driver</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>${jdbc.driver.groupId}</groupId>
|
|
|
|
<artifactId>${jdbc.driver.artifactId}</artifactId>
|
|
|
|
<version>${jdbc.driver.version}</version>
|
|
|
|
<type>jar</type>
|
|
|
|
<outputDirectory>${server.unpacked.home}/modules/system/layers/base/${jdbc.driver.module.path}/main</outputDirectory>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-07-13 18:25:26 +00:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
<id>keycloak-performance-configuration</id>
|
2017-07-13 18:25:26 +00:00
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
2017-11-14 18:58:55 +00:00
|
|
|
<ant antfile="configure.xml" target="keycloak-performance-configuration" />
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>keycloak-crossdc-configuration</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<skip>${skip.crossdc.configuration}</skip>
|
|
|
|
<target>
|
|
|
|
<ant antfile="configure.xml" target="keycloak-crossdc-configuration" />
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-12-04 14:52:21 +00:00
|
|
|
<execution>
|
|
|
|
<id>add-management-user</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<skip>${skip.add.management.user}</skip>
|
|
|
|
<target>
|
|
|
|
<ant antfile="configure.xml" target="add-management-user" />
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
<execution>
|
|
|
|
<id>keycloak-docker</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<skip>${skip.keycloak.docker}</skip>
|
|
|
|
<target>
|
|
|
|
<ant antfile="configure.xml" target="keycloak-docker" />
|
2017-07-13 18:25:26 +00:00
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
2017-10-17 15:36:11 +00:00
|
|
|
<profiles>
|
|
|
|
|
2017-11-14 18:58:55 +00:00
|
|
|
<profile>
|
|
|
|
<id>windows</id>
|
|
|
|
<activation>
|
|
|
|
<os>
|
|
|
|
<family>windows</family>
|
|
|
|
</os>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<script.extension>ps1</script.extension>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
2017-12-04 14:52:21 +00:00
|
|
|
<profile>
|
|
|
|
<id>add-management-user</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>management.user</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<skip.add.management.user>false</skip.add.management.user>
|
|
|
|
<!--it seems to be necessary to explicitly re-set these properties here
|
|
|
|
otherwise the antrun plugin won't pick them up-->
|
|
|
|
<management.user>${management.user}</management.user>
|
|
|
|
<management.user.password>${management.user.password}</management.user.password>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
2017-11-14 18:58:55 +00:00
|
|
|
<profile>
|
|
|
|
<id>crossdc</id>
|
|
|
|
<properties>
|
|
|
|
<skip.crossdc.configuration>false</skip.crossdc.configuration>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
2017-10-17 15:36:11 +00:00
|
|
|
<profile>
|
|
|
|
<id>integration-testsuite-server</id>
|
|
|
|
<properties>
|
|
|
|
<server.groupId>org.keycloak.testsuite</server.groupId>
|
|
|
|
<server.artifactId>integration-arquillian-servers-auth-server-wildfly</server.artifactId>
|
2017-11-14 18:58:55 +00:00
|
|
|
<server.unpacked.home>auth-server-wildfly</server.unpacked.home>
|
2017-10-17 15:36:11 +00:00
|
|
|
</properties>
|
|
|
|
</profile>
|
2017-11-14 18:58:55 +00:00
|
|
|
|
2017-10-17 15:36:11 +00:00
|
|
|
</profiles>
|
|
|
|
|
2017-12-04 14:52:21 +00:00
|
|
|
</project>
|