Keycloak
155 строк · 7.8 Кб
1<?xml version="1.0"?>
2<!--
3~ Copyright 2022 Red Hat, Inc. and/or its affiliates
4~ and other contributors as indicated by the @author tags.
5~
6~ Licensed under the Apache License, Version 2.0 (the "License");
7~ you may not use this file except in compliance with the License.
8~ You may obtain a copy of the License at
9~
10~ http://www.apache.org/licenses/LICENSE-2.0
11~
12~ Unless required by applicable law or agreed to in writing, software
13~ distributed under the License is distributed on an "AS IS" BASIS,
14~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15~ See the License for the specific language governing permissions and
16~ limitations under the License.
17-->
18
19<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"20xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">21<parent>22<groupId>org.keycloak.testsuite</groupId>23<artifactId>integration-arquillian-servers</artifactId>24<version>999.0.0-SNAPSHOT</version>25</parent>26<modelVersion>4.0.0</modelVersion>27
28<artifactId>integration-arquillian-migration-server</artifactId>29<packaging>pom</packaging>30
31<name>Migration Server Quarkus</name>32
33<properties>34<auth.server.output.directory>auth-server-migration</auth.server.output.directory>35<auth.server.home>${project.build.directory}/unpacked/keycloak-${migrated.auth.server.version}36</auth.server.home>37<jdbc.driver.tmp.dir>${project.build.directory}/jdbc-driver</jdbc.driver.tmp.dir>38</properties>39
40<build>41<plugins>42<plugin>43<groupId>org.apache.maven.plugins</groupId>44<artifactId>maven-enforcer-plugin</artifactId>45<executions>46<execution>47<id>enforce-properties</id>48<goals>49<goal>enforce</goal>50</goals>51<configuration>52<rules>53<requireProperty>54<property>migrated.auth.server.version</property>55<message>Property "migrated.auth.server.version" is required for this build. It should be one of supported versions. See base/src/test/resources/migration-test/</message>56</requireProperty>57<requireProperty>58<property>keycloak.connectionsJpa.user</property>59</requireProperty>60<requireProperty>61<property>keycloak.connectionsJpa.password</property>62<regex>^(?!\s*$).+</regex>63<regexMessage>"keycloak.connectionsJpa.password" property cannot be empty string!</regexMessage>64</requireProperty>65<requireProperty>66<property>keycloak.connectionsJpa.url</property>67<regex>((?!h2).)*</regex>68<regexMessage>"keycloak.connectionsJpa.url" property is not set correctly: "${keycloak.connectionsJpa.url}". Migration is not supported for default h2 values!</regexMessage>69</requireProperty>70<requireProperty>71<property>jdbc.mvn.groupId</property>72<regex>((?!com.h2database).)*</regex>73<regexMessage>"jdbc.mvn.groupId" property is not set correctly: "${jdbc.mvn.groupId}". Migration is not supported for default h2 values!</regexMessage>74</requireProperty>75<requireProperty>76<property>jdbc.mvn.artifactId</property>77<regex>((?!h2).)*</regex>78<regexMessage>"jdbc.mvn.artifactId" property is not set correctly: "${jdbc.mvn.artifactId}". Migration is not supported for default h2 values!</regexMessage>79</requireProperty>80<requireProperty>81<property>jdbc.mvn.version</property>82<regex>((?!${h2.version}).)*</regex>83<regexMessage>"jdbc.mvn.version" property is not set correctly: "${jdbc.mvn.version}". Migration is not supported for default h2 values!</regexMessage>84</requireProperty>85
86</rules>87</configuration>88</execution>89</executions>90</plugin>91<plugin>92<groupId>org.apache.maven.plugins</groupId>93<artifactId>maven-dependency-plugin</artifactId>94<executions>95<execution>96<id>unpack-server</id>97<phase>generate-resources</phase>98<goals>99<goal>unpack</goal>100</goals>101<configuration>102<artifactItems>103<artifactItem>104<groupId>org.keycloak</groupId>105<artifactId>keycloak-quarkus-dist</artifactId>106<version>${migrated.auth.server.version}</version>107<type>zip</type>108<outputDirectory>${project.build.directory}/unpacked</outputDirectory>109</artifactItem>110</artifactItems>111</configuration>112</execution>113<execution>114<id>jdbc-driver</id>115<phase>process-resources</phase>116<goals>117<goal>copy</goal>118</goals>119<configuration>120<artifactItems>121<artifactItem>122<groupId>${jdbc.mvn.groupId}</groupId>123<artifactId>${jdbc.mvn.artifactId}</artifactId>124<version>${jdbc.mvn.version}</version>125<type>jar</type>126</artifactItem>127</artifactItems>128<outputDirectory>${jdbc.driver.tmp.dir}</outputDirectory>129<overWriteIfNewer>true</overWriteIfNewer>130</configuration>131</execution>132</executions>133</plugin>134<plugin>135<groupId>org.apache.maven.plugins</groupId>136<artifactId>maven-assembly-plugin</artifactId>137<executions>138<execution>139<id>create-zip</id>140<phase>package</phase>141<goals>142<goal>single</goal>143</goals>144<configuration>145<descriptors>146<descriptor>assembly.xml</descriptor>147</descriptors>148<appendAssemblyId>false</appendAssemblyId>149</configuration>150</execution>151</executions>152</plugin>153</plugins>154</build>155</project>