Merge pull request #3903 from tkyjovsk/KEYCLOAK-4515

KEYCLOAK-4515 Make it possible to clean-up other DB types than mysql or postgres
This commit is contained in:
Pavel Drozd 2017-03-07 21:50:48 +01:00 committed by GitHub
commit 7ab67d205b
5 changed files with 48 additions and 8 deletions

View file

@ -74,7 +74,7 @@
<xsl:variable name="newDriverDefinition">
<xsl:if test="$driver != 'h2'">
<driver name="{$driver}" module="com.{$driver}" />
<driver name="{$driver}" module="test.jdbc.{$driver}" />
</xsl:if>
</xsl:variable>

View file

@ -27,7 +27,7 @@
<xsl:param name="version" select="''"/>
<xsl:variable name="newModuleDefinition">
<module xmlns="urn:jboss:module:1.1" name="com.{$database}">
<module xmlns="urn:jboss:module:1.1" name="test.jdbc.{$database}">
<resources>
<resource-root path="{$database}-{$version}.jar"/>
</resources>

View file

@ -403,7 +403,7 @@
<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>
<jdbc.mvn.driver.deployment.dir>${auth.server.home}/modules/system/layers/base/test/jdbc/${jdbc.mvn.artifactId}/main</jdbc.mvn.driver.deployment.dir>
<skip.h2.tcp>true</skip.h2.tcp>
</properties>
<build>

View file

@ -28,7 +28,7 @@
<xsl:param name="version" select="''"/>
<xsl:variable name="newModuleDefinition">
<module xmlns="urn:jboss:module:1.3" name="com.{$database}">
<module xmlns="urn:jboss:module:1.3" name="test.jdbc.{$database}">
<resources>
<resource-root path="{$database}-{$version}.jar"/>
</resources>

View file

@ -492,6 +492,46 @@
</build>
</profile>
<profile>
<id>jdbc-driver-dependency</id>
<activation>
<property>
<name>jdbc.mvn.artifactId</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>${jdbc.mvn.groupId}</groupId>
<artifactId>${jdbc.mvn.artifactId}</artifactId>
<version>${jdbc.mvn.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireProperty>
<property>jdbc.mvn.groupId</property>
</requireProperty>
<requireProperty>
<property>jdbc.mvn.version</property>
</requireProperty>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- Profiles for migration tests-->
<profile>