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>
|
2016-06-30 21:17:53 +00:00
|
|
|
<version>2.1.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>
|
|
|
|
<common.resources>${project.parent.basedir}/common</common.resources>
|
|
|
|
<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
|
|
|
|
|
|
|
<security.xsl>security.xsl</security.xsl>
|
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
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<version>1.8</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>inject-into-keycloak-server-json</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
|
|
|
<ant antfile="../build.xml" inheritRefs="true">
|
|
|
|
<target name="inject-provider"/>
|
|
|
|
</ant>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2016-06-21 08:53:24 +00:00
|
|
|
<execution>
|
|
|
|
<id>inject-truststore-into-keycloak-server-json</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
|
|
|
<ant antfile="../build-truststore.xml" inheritRefs="true">
|
|
|
|
<target name="inject-truststore"/>
|
|
|
|
</ant>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2016-03-24 15:08:36 +00:00
|
|
|
</executions>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>ant-contrib</groupId>
|
|
|
|
<artifactId>ant-contrib</artifactId>
|
|
|
|
<version>1.0b3</version>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>ant</groupId>
|
|
|
|
<artifactId>ant</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.ant</groupId>
|
|
|
|
<artifactId>ant-apache-bsf</artifactId>
|
|
|
|
<version>1.9.3</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.bsf</groupId>
|
|
|
|
<artifactId>bsf-api</artifactId>
|
|
|
|
<version>3.1</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>rhino</groupId>
|
|
|
|
<artifactId>js</artifactId>
|
|
|
|
<version>1.7R2</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-core</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
2016-03-24 10:24:21 +00:00
|
|
|
</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>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>xml-maven-plugin</artifactId>
|
2016-04-06 07:11:06 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>io-worker-threads</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${auth.server.home}/standalone/configuration</dir>
|
|
|
|
<includes>
|
|
|
|
<include>standalone.xml</include>
|
|
|
|
<include>standalone-ha.xml</include>
|
|
|
|
</includes>
|
|
|
|
<stylesheet>${common.resources}/io.xsl</stylesheet>
|
|
|
|
<outputDir>${auth.server.home}/standalone/configuration</outputDir>
|
|
|
|
<parameters>
|
|
|
|
<parameter>
|
|
|
|
<name>worker.io-threads</name>
|
|
|
|
<value>${auth.server.worker.io-threads}</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>worker.task-max-threads</name>
|
|
|
|
<value>${auth.server.worker.task-max-threads}</value>
|
|
|
|
</parameter>
|
|
|
|
</parameters>
|
|
|
|
</transformationSet>
|
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2016-03-24 10:24:21 +00:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
2016-04-06 07:11:06 +00:00
|
|
|
<executions>
|
|
|
|
<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>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<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>
|
|
|
|
|
2016-04-13 07:45:28 +00:00
|
|
|
|
2016-03-24 10:24:21 +00:00
|
|
|
<!-- OPT-IN -->
|
|
|
|
<profile>
|
|
|
|
<id>server-overlay</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>server-overlay</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<!--override default unpacked artifact with server-overlay-->
|
|
|
|
<unpacked.artifact.groupId>${auth.server.overlay.groupId}</unpacked.artifact.groupId>
|
|
|
|
<unpacked.artifact.artifactId>${auth.server.overlay.artifactId}</unpacked.artifact.artifactId>
|
|
|
|
<unpacked.artifact.version>${auth.server.overlay.version}</unpacked.artifact.version>
|
|
|
|
<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>
|
|
|
|
<groupId>${overlaid.container.groupId}</groupId>
|
|
|
|
<artifactId>${overlaid.container.artifactId}</artifactId>
|
|
|
|
<version>${overlaid.container.version}</version>
|
|
|
|
<type>zip</type>
|
|
|
|
<outputDirectory>${auth.server.home}</outputDirectory>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<version>1.8</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>move-standalone-keycloak-xml</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
2016-04-13 07:45:28 +00:00
|
|
|
<move file="${auth.server.home}/standalone/configuration/standalone-keycloak.xml"
|
2016-03-24 10:24:21 +00:00
|
|
|
tofile="${auth.server.home}/standalone/configuration/standalone.xml"/>
|
|
|
|
</tasks>
|
|
|
|
</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>ssl</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>auth.server.ssl.required</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<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>${auth.server.home}/standalone/configuration</dir>
|
|
|
|
<includes>
|
|
|
|
<include>standalone.xml</include>
|
|
|
|
</includes>
|
2016-05-20 12:13:39 +00:00
|
|
|
<stylesheet>${common.resources}/${security.xsl}</stylesheet>
|
2016-03-24 10:24:21 +00:00
|
|
|
<outputDir>${auth.server.home}/standalone/configuration</outputDir>
|
|
|
|
</transformationSet>
|
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<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>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</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>jpa</id>
|
|
|
|
<properties>
|
|
|
|
<jdbc.mvn.driver.deployment.dir>${auth.server.home}/modules/system/layers/base/com/${jdbc.mvn.artifactId}/main</jdbc.mvn.driver.deployment.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>
|
|
|
|
</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>
|
|
|
|
<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>
|
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>
|
|
|
|
<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>
|
|
|
|
<id>configure-wildfly-datasource</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
|
|
|
<!-- create module.xml in modules -->
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${auth.server.home}/modules/system/layers/base/com/h2database/h2/main</dir>
|
2016-03-30 12:48:19 +00:00
|
|
|
<stylesheet>src/main/resources/xslt/module.xsl</stylesheet>
|
2016-03-24 10:24:21 +00:00
|
|
|
<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>
|
|
|
|
<!-- add datasource to standalone.xml -->
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${auth.server.home}/standalone/configuration</dir>
|
|
|
|
<stylesheet>${common.resources}/datasource.xsl</stylesheet>
|
|
|
|
<includes>
|
|
|
|
<include>standalone.xml</include>
|
2016-03-30 12:48:19 +00:00
|
|
|
<include>standalone-ha.xml</include>
|
2016-03-24 10:24:21 +00:00
|
|
|
</includes>
|
|
|
|
<outputDir>${auth.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>
|
|
|
|
<!-- add logger for org.hibernate.dialect.Dialect -->
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${auth.server.home}/standalone/configuration</dir>
|
|
|
|
<stylesheet>${common.resources}/add-dialect-logger.xsl</stylesheet>
|
|
|
|
<includes>
|
|
|
|
<include>standalone.xml</include>
|
|
|
|
</includes>
|
|
|
|
<outputDir>${auth.server.home}/standalone/configuration</outputDir>
|
|
|
|
</transformationSet>
|
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>
|
2016-04-13 07:45:28 +00:00
|
|
|
</profile>
|
|
|
|
|
2016-03-24 10:24:21 +00:00
|
|
|
<profile>
|
|
|
|
<id>auth-server-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>
|
2016-05-16 20:31:23 +00:00
|
|
|
|
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
|
|
|
|
2016-03-24 10:24:21 +00:00
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>xml-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2016-03-30 12:48:19 +00:00
|
|
|
<id>jpa-h2-tcp</id>
|
2016-03-24 10:24:21 +00:00
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${auth.server.home}/standalone/configuration</dir>
|
|
|
|
<includes>
|
|
|
|
<include>standalone-ha.xml</include>
|
|
|
|
</includes>
|
|
|
|
<stylesheet>${common.resources}/datasource-jdbc-url.xsl</stylesheet>
|
|
|
|
<outputDir>${auth.server.home}/standalone/configuration</outputDir>
|
|
|
|
<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>
|
2016-03-30 12:48:19 +00:00
|
|
|
</transformationSets>
|
|
|
|
<skip>${skip.h2.tcp}</skip>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>keycloak-ispn-caches</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
2016-03-24 10:24:21 +00:00
|
|
|
<transformationSet>
|
|
|
|
<dir>${auth.server.home}/standalone/configuration</dir>
|
|
|
|
<includes>
|
|
|
|
<include>standalone-ha.xml</include>
|
|
|
|
</includes>
|
|
|
|
<stylesheet>${common.resources}/ispn-cache-owners.xsl</stylesheet>
|
|
|
|
<outputDir>${auth.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>
|
|
|
|
</transformationSet>
|
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2016-04-06 07:11:06 +00:00
|
|
|
<execution>
|
|
|
|
<id>mod-cluster-configuration</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${auth.server.home}/standalone/configuration</dir>
|
|
|
|
<includes>
|
|
|
|
<include>standalone-ha.xml</include>
|
|
|
|
</includes>
|
|
|
|
<stylesheet>${common.resources}/mod_cluster.xsl</stylesheet>
|
|
|
|
<outputDir>${auth.server.home}/standalone/configuration</outputDir>
|
2016-05-04 00:48:36 +00:00
|
|
|
<parameters>
|
|
|
|
<parameter>
|
|
|
|
<name>load.metric</name>
|
|
|
|
<value>${load.metric}</value>
|
|
|
|
</parameter>
|
|
|
|
</parameters>
|
2016-04-06 07:11:06 +00:00
|
|
|
</transformationSet>
|
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2016-03-24 10:24:21 +00:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</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>
|
2016-05-20 12:13:39 +00:00
|
|
|
<properties>
|
|
|
|
<security.xsl>security-wildfly.xsl</security.xsl>
|
|
|
|
</properties>
|
2016-03-24 10:24:21 +00:00
|
|
|
<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
|
|
|
|
2016-03-24 10:24:21 +00:00
|
|
|
</profiles>
|
|
|
|
</project>
|