KEYCLOAK-13111 Move execution of db-allocator-plugin to jpa profile

This commit is contained in:
vramik 2020-02-27 09:38:45 +01:00 committed by Hynek Mlnařík
parent 9f3a6de453
commit f1e54455e7
2 changed files with 43 additions and 29 deletions

View file

@ -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>

View file

@ -350,6 +350,15 @@
</executions> </executions>
</plugin> </plugin>
</plugins>
</build>
<profiles>
<profile>
<id>jpa</id>
<build>
<plugins>
<!-- DB will be released after the test --> <!-- DB will be released after the test -->
<plugin> <plugin>
<groupId>org.keycloak</groupId> <groupId>org.keycloak</groupId>
@ -364,12 +373,9 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
</profile>
<profiles>
<profile> <profile>
<id>product</id> <id>product</id>
<activation> <activation>