keycloak-scim/testsuite/integration-arquillian/servers/migration/pom.xml

189 lines
8.7 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
2016-02-03 10:20:22 +00:00
<!--
~ Copyright 2022 Red Hat, Inc. and/or its affiliates
2016-09-02 11:55:49 +00:00
~ 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.
-->
2016-02-03 10:20:22 +00:00
<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>
2022-03-22 08:22:48 +00:00
<version>999-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>integration-arquillian-migration-server-parent</artifactId>
<name>Migration Server Parent</name>
<packaging>pom</packaging>
2016-09-02 11:55:49 +00:00
<properties>
<auth.server.home>${project.build.directory}/unpacked/keycloak-${migrated.auth.server.version}
</auth.server.home>
<auth.server.dist.artifactId>keycloak-quarkus-dist</auth.server.dist.artifactId>
<jdbc.driver.tmp.dir>${project.build.directory}/jdbc-driver</jdbc.driver.tmp.dir>
2016-09-02 11:55:49 +00:00
</properties>
<build>
<plugins>
2016-09-02 11:55:49 +00:00
<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>migrated.auth.server.version</property>
<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>
</requireProperty>
<requireProperty>
<property>keycloak.connectionsJpa.user</property>
</requireProperty>
<requireProperty>
<property>keycloak.connectionsJpa.password</property>
<regex>^(?!\s*$).+</regex>
<regexMessage>"keycloak.connectionsJpa.password" property cannot be empty string!</regexMessage>
</requireProperty>
<requireProperty>
<property>keycloak.connectionsJpa.url</property>
<regex>((?!h2).)*</regex>
<regexMessage>"keycloak.connectionsJpa.url" property is not set correctly: "${keycloak.connectionsJpa.url}". Migration is not supported for default h2 values!</regexMessage>
2016-09-02 11:55:49 +00:00
</requireProperty>
<requireProperty>
<property>jdbc.mvn.groupId</property>
<regex>((?!com.h2database).)*</regex>
<regexMessage>"jdbc.mvn.groupId" property is not set correctly: "${jdbc.mvn.groupId}". Migration is not supported for default h2 values!</regexMessage>
2016-09-02 11:55:49 +00:00
</requireProperty>
<requireProperty>
<property>jdbc.mvn.artifactId</property>
<regex>((?!h2).)*</regex>
<regexMessage>"jdbc.mvn.artifactId" property is not set correctly: "${jdbc.mvn.artifactId}". Migration is not supported for default h2 values!</regexMessage>
2016-09-02 11:55:49 +00:00
</requireProperty>
<requireProperty>
<property>jdbc.mvn.version</property>
<regex>((?!${h2.version}).)*</regex>
<regexMessage>"jdbc.mvn.version" property is not set correctly: "${jdbc.mvn.version}". Migration is not supported for default h2 values!</regexMessage>
2016-10-12 10:26:00 +00:00
</requireProperty>
2016-09-02 11:55:49 +00:00
</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>${auth.server.dist.artifactId}</artifactId>
2016-09-02 11:55:49 +00:00
<version>${migrated.auth.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>
2016-09-02 11:55:49 +00:00
<type>jar</type>
</artifactItem>
</artifactItems>
<outputDirectory>${jdbc.driver.tmp.dir}</outputDirectory>
2016-09-02 11:55:49 +00:00
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>auth-server-migration-legacy</id>
<modules>
<module>legacy</module>
</modules>
<properties>
<auth.server.dist.artifactId>keycloak-server-dist</auth.server.dist.artifactId>
</properties>
</profile>
<profile>
<id>auth-server-migration</id>
<modules>
<module>quarkus</module>
</modules>
<properties>
<auth.server.dist.artifactId>keycloak-quarkus-dist</auth.server.dist.artifactId>
</properties>
</profile>
<profile>
<id>community</id>
<activation>
<property>
<name>!product</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>productized-server</id>
<activation>
<property>
<name>previous.product.unpacked.folder.name</name>
</property>
</activation>
<properties>
<auth.server.home>${project.build.directory}/unpacked/${previous.product.unpacked.folder.name}</auth.server.home>
</properties>
</profile>
</profiles>
</project>