255 lines
12 KiB
XML
255 lines
12 KiB
XML
<?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</artifactId>
|
|
<version>2.1.0-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>integration-arquillian-migration-servers</artifactId>
|
|
<packaging>pom</packaging>
|
|
<name>Migration Servers</name>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>migration-kc16</id>
|
|
<modules>
|
|
<module>wildfly_kc16</module>
|
|
</modules>
|
|
</profile>
|
|
<profile>
|
|
<id>migration-kc15</id>
|
|
<modules>
|
|
<module>wildfly_kc15</module>
|
|
</modules>
|
|
</profile>
|
|
<profile>
|
|
<id>migration-kc14</id>
|
|
<modules>
|
|
<module>wildfly_kc14</module>
|
|
</modules>
|
|
</profile>
|
|
<profile>
|
|
<id>migration-kc13</id>
|
|
<modules>
|
|
<module>wildfly_kc13</module>
|
|
</modules>
|
|
</profile>
|
|
<profile>
|
|
<id>migration-kc12</id>
|
|
<modules>
|
|
<module>wildfly_kc12</module>
|
|
</modules>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
<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>unpack-server</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-server-dist</artifactId>
|
|
<version>${server.version}</version>
|
|
<type>zip</type>
|
|
<outputDirectory>${project.build.directory}/unpacked</outputDirectory>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
<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>
|
|
<id>configure-wildfly-datasource</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>transform</goal>
|
|
</goals>
|
|
<configuration>
|
|
<transformationSets>
|
|
<!-- create module.xml in modules -->
|
|
<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>
|
|
<!-- add datasource to standalone.xml -->
|
|
<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>
|
|
<!-- add logger for org.hibernate.dialect.Dialect to standalone.xml-->
|
|
<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>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<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>
|
|
</pluginManagement>
|
|
</build>
|
|
</project>
|