KEYCLOAK-13111 Move execution of db-allocator-plugin to jpa profile
This commit is contained in:
parent
9f3a6de453
commit
f1e54455e7
2 changed files with 43 additions and 29 deletions
|
@ -276,21 +276,7 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
|
|
||||||
<!-- Just allocate the DB now. It will be released after the tests, so the "release" is declared in the base-tests module -->
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
|
||||||
<groupId>org.keycloak</groupId>
|
|
||||||
<artifactId>db-allocator-plugin</artifactId>
|
|
||||||
<inherited>false</inherited>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>allocate-db</id>
|
|
||||||
<goals>
|
|
||||||
<goal>allocate</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-enforcer-plugin</artifactId>
|
<artifactId>maven-enforcer-plugin</artifactId>
|
||||||
|
@ -336,6 +322,28 @@
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>jpa</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<!-- Just allocate the DB now. It will be released after the tests, so the "release" is declared in the base-tests module -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.keycloak</groupId>
|
||||||
|
<artifactId>db-allocator-plugin</artifactId>
|
||||||
|
<inherited>false</inherited>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>allocate-db</id>
|
||||||
|
<goals>
|
||||||
|
<goal>allocate</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>test-70-migration</id>
|
<id>test-70-migration</id>
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -350,26 +350,32 @@
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- DB will be released after the test -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.keycloak</groupId>
|
|
||||||
<artifactId>db-allocator-plugin</artifactId>
|
|
||||||
<inherited>false</inherited>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>release-db</id>
|
|
||||||
<goals>
|
|
||||||
<goal>release</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>jpa</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<!-- DB will be released after the test -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.keycloak</groupId>
|
||||||
|
<artifactId>db-allocator-plugin</artifactId>
|
||||||
|
<inherited>false</inherited>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>release-db</id>
|
||||||
|
<goals>
|
||||||
|
<goal>release</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>product</id>
|
<id>product</id>
|
||||||
<activation>
|
<activation>
|
||||||
|
|
Loading…
Reference in a new issue