add profile for testing migration for productized version
This commit is contained in:
parent
dcaac76b4b
commit
3ca836ffdc
2 changed files with 103 additions and 85 deletions
|
@ -216,4 +216,18 @@
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>productized-server</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>previous.product.unpacked.folder.name</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<keycloak.server.home>${project.build.directory}/unpacked/${previous.product.unpacked.folder.name}</keycloak.server.home>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -421,63 +421,65 @@
|
||||||
<skip.add.user.json>true</skip.add.user.json>
|
<skip.add.user.json>true</skip.add.user.json>
|
||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<pluginManagement>
|
||||||
<plugin>
|
<plugins>
|
||||||
<artifactId>maven-enforcer-plugin</artifactId>
|
<plugin>
|
||||||
<executions>
|
<artifactId>maven-enforcer-plugin</artifactId>
|
||||||
<execution>
|
<executions>
|
||||||
<goals>
|
<execution>
|
||||||
<goal>enforce</goal>
|
<goals>
|
||||||
</goals>
|
<goal>enforce</goal>
|
||||||
<configuration>
|
</goals>
|
||||||
<rules>
|
<configuration>
|
||||||
<requireProperty>
|
<rules>
|
||||||
<property>migrated.auth.server.version</property>
|
<requireProperty>
|
||||||
</requireProperty>
|
<property>migrated.auth.server.version</property>
|
||||||
<requireProperty>
|
</requireProperty>
|
||||||
<property>migration.mode</property>
|
<requireProperty>
|
||||||
</requireProperty>
|
<property>migration.mode</property>
|
||||||
</rules>
|
</requireProperty>
|
||||||
</configuration>
|
</rules>
|
||||||
</execution>
|
</configuration>
|
||||||
</executions>
|
</execution>
|
||||||
</plugin>
|
</executions>
|
||||||
<plugin>
|
</plugin>
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
<plugin>
|
||||||
<executions>
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
<execution>
|
<executions>
|
||||||
<id>unpack-migrated-auth-server-jboss</id>
|
<execution>
|
||||||
<phase>generate-resources</phase>
|
<id>unpack-migrated-auth-server-jboss</id>
|
||||||
<goals>
|
<phase>generate-resources</phase>
|
||||||
<goal>unpack</goal>
|
<goals>
|
||||||
</goals>
|
<goal>unpack</goal>
|
||||||
<configuration>
|
</goals>
|
||||||
<artifactItems>
|
<configuration>
|
||||||
<artifactItem>
|
<artifactItems>
|
||||||
<groupId>org.keycloak.testsuite</groupId>
|
<artifactItem>
|
||||||
<artifactId>integration-arquillian-migration-server</artifactId>
|
<groupId>org.keycloak.testsuite</groupId>
|
||||||
<version>${project.version}</version>
|
<artifactId>integration-arquillian-migration-server</artifactId>
|
||||||
<type>zip</type>
|
<version>${project.version}</version>
|
||||||
</artifactItem>
|
<type>zip</type>
|
||||||
</artifactItems>
|
</artifactItem>
|
||||||
<outputDirectory>${containers.home}</outputDirectory>
|
</artifactItems>
|
||||||
<overWriteIfNewer>true</overWriteIfNewer>
|
<outputDirectory>${containers.home}</outputDirectory>
|
||||||
</configuration>
|
<overWriteIfNewer>true</overWriteIfNewer>
|
||||||
</execution>
|
</configuration>
|
||||||
</executions>
|
</execution>
|
||||||
</plugin>
|
</executions>
|
||||||
<plugin>
|
</plugin>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<plugin>
|
||||||
<configuration>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<systemPropertyVariables>
|
<configuration>
|
||||||
<migrated.auth.server.version>${migrated.auth.server.version}</migrated.auth.server.version>
|
<systemPropertyVariables>
|
||||||
<auth.server.jboss.migration>true</auth.server.jboss.migration>
|
<migrated.auth.server.version>${migrated.auth.server.version}</migrated.auth.server.version>
|
||||||
<keycloak.migration.home>${containers.home}/keycloak-${migrated.auth.server.version}</keycloak.migration.home>
|
<auth.server.jboss.migration>true</auth.server.jboss.migration>
|
||||||
<migration.import.props.previous>${migration.import.props.previous}</migration.import.props.previous>
|
<keycloak.migration.home>${containers.home}/keycloak-${migrated.auth.server.version}</keycloak.migration.home>
|
||||||
</systemPropertyVariables>
|
<migration.import.props.previous>${migration.import.props.previous}</migration.import.props.previous>
|
||||||
</configuration>
|
</systemPropertyVariables>
|
||||||
</plugin>
|
</configuration>
|
||||||
</plugins>
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
@ -499,34 +501,36 @@
|
||||||
<skip.add.user.json>true</skip.add.user.json>
|
<skip.add.user.json>true</skip.add.user.json>
|
||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<pluginManagement>
|
||||||
<plugin>
|
<plugins>
|
||||||
<artifactId>maven-enforcer-plugin</artifactId>
|
<plugin>
|
||||||
<executions>
|
<artifactId>maven-enforcer-plugin</artifactId>
|
||||||
<execution>
|
<executions>
|
||||||
<goals>
|
<execution>
|
||||||
<goal>enforce</goal>
|
<goals>
|
||||||
</goals>
|
<goal>enforce</goal>
|
||||||
<configuration>
|
</goals>
|
||||||
<rules>
|
<configuration>
|
||||||
<requireProperty>
|
<rules>
|
||||||
<property>migrated.auth.server.version</property>
|
<requireProperty>
|
||||||
</requireProperty>
|
<property>migrated.auth.server.version</property>
|
||||||
</rules>
|
</requireProperty>
|
||||||
</configuration>
|
</rules>
|
||||||
</execution>
|
</configuration>
|
||||||
</executions>
|
</execution>
|
||||||
</plugin>
|
</executions>
|
||||||
<plugin>
|
</plugin>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<plugin>
|
||||||
<configuration>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<systemPropertyVariables>
|
<configuration>
|
||||||
<migrated.auth.server.version>${migrated.auth.server.version}</migrated.auth.server.version>
|
<systemPropertyVariables>
|
||||||
<migration.import.properties>${migration.import.properties}</migration.import.properties>
|
<migrated.auth.server.version>${migrated.auth.server.version}</migrated.auth.server.version>
|
||||||
</systemPropertyVariables>
|
<migration.import.properties>${migration.import.properties}</migration.import.properties>
|
||||||
</configuration>
|
</systemPropertyVariables>
|
||||||
</plugin>
|
</configuration>
|
||||||
</plugins>
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue