Skip to content

Commit 603052c

Browse files
martin-kanisstianst
authored andcommitted
KEYCLOAK-5883 Deploy testsuite during product build
1 parent 106599b commit 603052c

File tree

6 files changed

+113
-35
lines changed

6 files changed

+113
-35
lines changed

examples/providers/user-storage-simple/pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,28 @@
6868
</plugin>
6969
</plugins>
7070
</build>
71+
72+
<profiles>
73+
<profile>
74+
<id>product</id>
75+
<activation>
76+
<property>
77+
<name>product</name>
78+
</property>
79+
</activation>
80+
<build>
81+
<plugins>
82+
<!-- The example needs to be deployed during the product build, because it's testsuite's dependency.
83+
We need to override setting from parent module. -->
84+
<plugin>
85+
<groupId>org.apache.maven.plugins</groupId>
86+
<artifactId>maven-deploy-plugin</artifactId>
87+
<configuration>
88+
<skip>false</skip>
89+
</configuration>
90+
</plugin>
91+
</plugins>
92+
</build>
93+
</profile>
94+
</profiles>
7195
</project>

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

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@
3636

3737
<build>
3838
<plugins>
39-
<plugin>
40-
<groupId>org.apache.maven.plugins</groupId>
41-
<artifactId>maven-deploy-plugin</artifactId>
42-
<configuration>
43-
<skip>true</skip>
44-
</configuration>
45-
</plugin>
4639
<plugin>
4740
<groupId>org.apache.maven.plugins</groupId>
4841
<artifactId>maven-enforcer-plugin</artifactId>
@@ -218,6 +211,25 @@
218211
</build>
219212

220213
<profiles>
214+
<profile>
215+
<id>community</id>
216+
<activation>
217+
<property>
218+
<name>!product</name>
219+
</property>
220+
</activation>
221+
<build>
222+
<plugins>
223+
<plugin>
224+
<groupId>org.apache.maven.plugins</groupId>
225+
<artifactId>maven-deploy-plugin</artifactId>
226+
<configuration>
227+
<skip>true</skip>
228+
</configuration>
229+
</plugin>
230+
</plugins>
231+
</build>
232+
</profile>
221233
<profile>
222234
<id>productized-server</id>
223235
<activation>

testsuite/integration-arquillian/servers/wildfly-balancer/pom.xml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@
3737

3838
<build>
3939
<plugins>
40-
<plugin>
41-
<artifactId>maven-deploy-plugin</artifactId>
42-
<configuration>
43-
<skip>true</skip>
44-
</configuration>
45-
</plugin>
46-
4740
<plugin>
4841
<artifactId>maven-dependency-plugin</artifactId>
4942
<executions>
@@ -144,4 +137,25 @@
144137
</plugins>
145138
</build>
146139

140+
<profiles>
141+
<profile>
142+
<id>community</id>
143+
<activation>
144+
<property>
145+
<name>!product</name>
146+
</property>
147+
</activation>
148+
<build>
149+
<plugins>
150+
<plugin>
151+
<groupId>org.apache.maven.plugins</groupId>
152+
<artifactId>maven-deploy-plugin</artifactId>
153+
<configuration>
154+
<skip>true</skip>
155+
</configuration>
156+
</plugin>
157+
</plugins>
158+
</build>
159+
</profile>
160+
</profiles>
147161
</project>

testsuite/integration-deprecated/pom.xml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,6 @@
295295
</execution>
296296
</executions>
297297
</plugin>
298-
<plugin>
299-
<groupId>org.apache.maven.plugins</groupId>
300-
<artifactId>maven-deploy-plugin</artifactId>
301-
<configuration>
302-
<skip>true</skip>
303-
</configuration>
304-
</plugin>
305298
<plugin>
306299
<groupId>org.apache.maven.plugins</groupId>
307300
<artifactId>maven-compiler-plugin</artifactId>
@@ -334,6 +327,25 @@
334327
</build>
335328

336329
<profiles>
330+
<profile>
331+
<id>community</id>
332+
<activation>
333+
<property>
334+
<name>!product</name>
335+
</property>
336+
</activation>
337+
<build>
338+
<plugins>
339+
<plugin>
340+
<groupId>org.apache.maven.plugins</groupId>
341+
<artifactId>maven-deploy-plugin</artifactId>
342+
<configuration>
343+
<skip>true</skip>
344+
</configuration>
345+
</plugin>
346+
</plugins>
347+
</build>
348+
</profile>
337349
<profile>
338350
<id>ldap</id>
339351
<build>

testsuite/pom.xml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@
3333

3434
<build>
3535
<plugins>
36-
<plugin>
37-
<groupId>org.apache.maven.plugins</groupId>
38-
<artifactId>maven-deploy-plugin</artifactId>
39-
<configuration>
40-
<skip>true</skip>
41-
</configuration>
42-
</plugin>
4336
<plugin>
4437
<groupId>org.apache.maven.plugins</groupId>
4538
<artifactId>maven-javadoc-plugin</artifactId>
@@ -64,6 +57,17 @@
6457
<name>!product</name>
6558
</property>
6659
</activation>
60+
<build>
61+
<plugins>
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-deploy-plugin</artifactId>
65+
<configuration>
66+
<skip>true</skip>
67+
</configuration>
68+
</plugin>
69+
</plugins>
70+
</build>
6771
<modules>
6872
<module>jetty</module>
6973
<module>proxy</module>

testsuite/tomcat8/pom.xml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,6 @@
254254
</execution>
255255
</executions>
256256
</plugin>
257-
<plugin>
258-
<groupId>org.apache.maven.plugins</groupId>
259-
<artifactId>maven-deploy-plugin</artifactId>
260-
<configuration>
261-
<skip>true</skip>
262-
</configuration>
263-
</plugin>
264257
<plugin>
265258
<groupId>org.apache.maven.plugins</groupId>
266259
<artifactId>maven-compiler-plugin</artifactId>
@@ -280,6 +273,25 @@
280273
</build>
281274

282275
<profiles>
276+
<profile>
277+
<id>community</id>
278+
<activation>
279+
<property>
280+
<name>!product</name>
281+
</property>
282+
</activation>
283+
<build>
284+
<plugins>
285+
<plugin>
286+
<groupId>org.apache.maven.plugins</groupId>
287+
<artifactId>maven-deploy-plugin</artifactId>
288+
<configuration>
289+
<skip>true</skip>
290+
</configuration>
291+
</plugin>
292+
</plugins>
293+
</build>
294+
</profile>
283295
<profile>
284296
<id>keycloak-server</id>
285297
<build>

0 commit comments

Comments
 (0)