forked from wildfly/wildfly
/
pom.xml
888 lines (867 loc) · 42.4 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2019, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-ts-integ</artifactId>
<!--
Maintain separation between the artifact id and the version to help prevent
merge conflicts between commits changing the GA and those changing the V.
-->
<version>25.0.0.Beta1-SNAPSHOT</version>
</parent>
<artifactId>wildfly-ts-integ-microprofile</artifactId>
<name>WildFly Test Suite: Integration - MicroProfile</name>
<properties>
<jbossas.ts.integ.dir>${basedir}/..</jbossas.ts.integ.dir>
<jbossas.ts.dir>${jbossas.ts.integ.dir}/..</jbossas.ts.dir>
<jbossas.project.dir>${jbossas.ts.dir}/..</jbossas.project.dir>
<surefire.forked.process.timeout>3600</surefire.forked.process.timeout>
<wildfly.build.output.dir>build/target/${server.output.dir.prefix}-${server.output.dir.version}</wildfly.build.output.dir>
<!-- properties to enable plugins shared by various bootable jar executions -->
<bootable-jar-packaging.phase>none</bootable-jar-packaging.phase>
</properties>
<dependencies>
<!-- MicroProfile APIs -->
<dependency>
<groupId>org.eclipse.microprofile.config</groupId>
<artifactId>microprofile-config-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.microprofile.health</groupId>
<artifactId>microprofile-health-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.microprofile.jwt</groupId>
<artifactId>microprofile-jwt-auth-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.microprofile.metrics</groupId>
<artifactId>microprofile-metrics-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.microprofile.opentracing</groupId>
<artifactId>microprofile-opentracing-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.microprofile.reactive.messaging</groupId>
<artifactId>microprofile-reactive-messaging-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.microprofile.reactive-streams-operators</groupId>
<artifactId>microprofile-reactive-streams-operators-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
</dependency>
<!-- MicroProfile Fault Tolerance test dependencies -->
<dependency>
<groupId>org.eclipse.microprofile.fault-tolerance</groupId>
<artifactId>microprofile-fault-tolerance-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-fault-tolerance</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-spi</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core-impl</artifactId>
<scope>test</scope>
</dependency>
<!-- MicroProfile JWT Test Dependencies -->
<dependency>
<groupId>com.nimbusds</groupId>
<artifactId>nimbus-jose-jwt</artifactId>
<scope>test</scope>
</dependency>
<!-- MicroProfile Opentracing Test Dependencies -->
<dependency>
<groupId>io.jaegertracing</groupId>
<artifactId>jaeger-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.opentracing</groupId>
<artifactId>opentracing-mock</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.opentracing.contrib</groupId>
<artifactId>opentracing-tracerresolver</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-opentracing</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.wildfly.galleon-plugins</groupId>
<artifactId>transformer</artifactId>
<scope>provided</scope>
</dependency>
<!-- MicroProfile Reactive Messaging Kafka Connector Test Dependencies -->
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka-test</artifactId>
<scope>test</scope>
</dependency>
<!--
The org.springframework.kafka:spring-kafka-test dependency excludes all
org.apache.kafka:* dependencies in the dependency management.
Add them again here, so as not to pollute the parent pom with all these
test dependencies
-->
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<classifier>test</classifier>
<scope>test</scope>
<version>${version.org.apache.kafka}</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-streams</artifactId>
<scope>test</scope>
<version>${version.org.apache.kafka}</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-streams-test-utils</artifactId>
<scope>test</scope>
<version>${version.org.apache.kafka}</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.13</artifactId>
<scope>test</scope>
<version>${version.org.apache.kafka}</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.13</artifactId>
<classifier>test</classifier>
<scope>test</scope>
<version>${version.org.apache.kafka}</version>
</dependency>
<!-- Other test dependencies -->
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.org.wildfly.plugin}</version>
<configuration>
<offline>true</offline>
<scripts>
<script>${wildfly.dir}/docs/examples/enable-microprofile.cli</script>
</scripts>
<jboss-home>${wildfly.dir}</jboss-home>
<stdout>none</stdout>
<java-opts>${modular.jdk.args}</java-opts>
<system-properties>
<maven.repo.local>${settings.localRepository}</maven.repo.local>
<module.path>${jboss.dist}/modules</module.path>
</system-properties>
</configuration>
<executions>
<execution>
<phase>process-test-resources</phase>
<goals>
<goal>execute-commands</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-jar-maven-plugin</artifactId>
<version>${version.org.wildfly.jar.plugin}</version>
<executions>
<!-- Provision a cloud server including all the MicroProfile specs layers -->
<execution>
<id>bootable-jar-packaging</id>
<goals>
<goal>package</goal>
</goals>
<phase>${bootable-jar-packaging.phase}</phase>
<configuration>
<!-- content that is installed in wildfly home -->
<extra-server-content-dirs>${wildfly.dir}</extra-server-content-dirs>
<output-file-name>test-wildfly.jar</output-file-name>
<hollowJar>true</hollowJar>
<record-state>false</record-state>
<log-time>${galleon.log.time}</log-time>
<offline>true</offline>
<plugin-options>
<jboss-jakarta-transform-artifacts>false</jboss-jakarta-transform-artifacts>
<jboss-maven-provisioning-repo>${wildfly.transformed.repo.dir}</jboss-maven-provisioning-repo>
<jboss-maven-dist/>
<jboss-fork-embedded>${galleon.fork.embedded}</jboss-fork-embedded>
</plugin-options>
<feature-packs>
<feature-pack>
<groupId>${testsuite.ee.galleon.pack.groupId}</groupId>
<artifactId>${testsuite.ee.galleon.pack.artifactId}</artifactId>
<version>${testsuite.ee.galleon.pack.version}</version>
</feature-pack>
</feature-packs>
<layers>
<layer>cloud-server</layer>
<layer>microprofile-openapi</layer>
<layer>microprofile-jwt</layer>
<layer>microprofile-fault-tolerance</layer>
<layer>microprofile-opentracing</layer>
<!-- Dependencies for reactive specs -->
<layer>microprofile-reactive-messaging-kafka</layer>
<layer>h2-default-datasource</layer>
</layers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<environmentVariables>
<!-- dummy env property for MicroProfile Config testing -->
<MPCONFIG_TEST_ENV_VAR>integ-basicmpconfig-test-env-var-value</MPCONFIG_TEST_ENV_VAR>
</environmentVariables>
<systemPropertyVariables>
<jboss.install.dir>${basedir}/target/wildfly</jboss.install.dir>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<id>default-test</id>
<configuration>
<excludes>
<!-- In this module default-test runs against standalone-microprofile.xml
Exclude tests from that execution that require functionality not in that config. -->
<exclude>org/wildfly/test/integration/microprofile/jwt/ejb/JWTEJBTestCase.java</exclude>
</excludes>
</configuration>
</execution>
<!-- An execution analogous to default-test but separately customizable -->
<execution>
<id>layers-test</id>
<!-- Disabled by default; relevant profiles enable it -->
<phase>none</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
<!-- An execution analogous to default-test but uses standalone.xml -->
<execution>
<id>standalone-enabled-microprofile-test</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<systemPropertyVariables>
<jboss.server.config.file.name>standalone.xml</jboss.server.config.file.name>
</systemPropertyVariables>
<excludes>
<!-- The enable-microprofile.cli script does not enable the reactive extensions/subsystems -->
<exclude>org/wildfly/test/integration/microprofile/reactive/**</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<!-- Test against slimmed servers provisioned by Galleon -->
<profile>
<id>layers.profile</id>
<activation>
<property>
<name>ts.layers</name>
</property>
</activation>
<properties>
<jboss.dist>${project.build.directory}/wildfly</jboss.dist>
</properties>
<build>
<plugins>
<!-- Disable the standard copy-based provisioning -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>ts.copy-wildfly</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.org.wildfly.plugin}</version>
<executions>
<execution>
<phase>none</phase>
<goals>
<goal>execute-commands</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jboss.galleon</groupId>
<artifactId>galleon-maven-plugin</artifactId>
<executions>
<execution>
<id>microprofile-provisioning</id>
<goals>
<goal>provision</goal>
</goals>
<phase>compile</phase>
<configuration>
<install-dir>${project.build.directory}/wildfly</install-dir>
<record-state>false</record-state>
<log-time>${galleon.log.time}</log-time>
<offline>${galleon.offline}</offline>
<plugin-options>
<jboss-maven-dist/>
<jboss-fork-embedded>${galleon.fork.embedded}</jboss-fork-embedded>
<optional-packages>passive+</optional-packages>
</plugin-options>
<feature-packs>
<feature-pack>
<groupId>${full.maven.groupId}</groupId>
<artifactId>wildfly-galleon-pack</artifactId>
<version>${full.maven.version}</version>
<inherit-configs>false</inherit-configs>
<inherit-packages>false</inherit-packages>
</feature-pack>
</feature-packs>
<configurations>
<config>
<model>standalone</model>
<!-- Call the file standalone-microprofile.xml as that is what
arquillian.xml says to use for testing in the default maven profile-->
<name>standalone-microprofile.xml</name>
<layers>
<layer>cloud-server</layer>
<layer>microprofile-platform</layer>
<layer>ejb</layer>
<!-- Dependencies for reactive specs -->
<layer>microprofile-reactive-messaging-kafka</layer>
<layer>h2-default-datasource</layer>
</layers>
</config>
</configurations>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<!-- Enable the layers-test surefire execution; disable others. -->
<executions>
<execution>
<id>layers-test</id>
<phase>test</phase>
</execution>
<execution>
<id>default-test</id>
<phase>none</phase>
</execution>
<execution>
<id>standalone-enabled-microprofile-test</id>
<phase>none</phase>
</execution>
</executions>
<configuration>
<systemPropertyVariables>
<!-- Override the standard module path that points at the shared module set from servlet-dist -->
<module.path>${project.build.directory}/wildfly/modules</module.path>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- Test against the ee 9 feature pack -->
<!-- TODO convert this to a bootable jar setup once a release
of the wildfly jar plugin with transformation support is available -->
<profile>
<id>ee9.test.profile</id>
<activation>
<property>
<name>ts.ee9</name>
</property>
</activation>
<properties>
<jboss.dist>${project.build.directory}/wildfly</jboss.dist>
</properties>
<build>
<plugins>
<!-- Disable the standard copy-based provisioning -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>ts.copy-wildfly</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.org.wildfly.plugin}</version>
<executions>
<execution>
<phase>none</phase>
<goals>
<goal>execute-commands</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jboss.galleon</groupId>
<artifactId>galleon-maven-plugin</artifactId>
<executions>
<execution>
<id>microprofile-provisioning</id>
<goals>
<goal>provision</goal>
</goals>
<phase>compile</phase>
<configuration>
<install-dir>${project.build.directory}/wildfly</install-dir>
<record-state>false</record-state>
<log-time>${galleon.log.time}</log-time>
<offline>${galleon.offline}</offline>
<plugin-options>
<jboss-maven-dist/>
<jboss-jakarta-transform-artifacts>false</jboss-jakarta-transform-artifacts>
<jboss-maven-provisioning-repo>${wildfly.transformed.repo.dir}</jboss-maven-provisioning-repo>
<jboss-fork-embedded>${galleon.fork.embedded}</jboss-fork-embedded>
<optional-packages>passive+</optional-packages>
</plugin-options>
<feature-packs>
<feature-pack>
<groupId>${full.maven.groupId}</groupId>
<artifactId>wildfly-preview-feature-pack</artifactId>
<version>${full.maven.version}</version>
<inherit-configs>false</inherit-configs>
<inherit-packages>false</inherit-packages>
</feature-pack>
</feature-packs>
<configurations>
<config>
<model>standalone</model>
<!-- Call the file standalone-microprofile.xml as that is what
arquillian.xml says to use for testing in the default maven profile-->
<name>standalone-microprofile.xml</name>
<layers>
<layer>cloud-server</layer>
<layer>microprofile-platform</layer>
<layer>ejb</layer>
<!-- Dependencies for reactive specs -->
<layer>microprofile-reactive-messaging-kafka</layer>
<layer>h2-default-datasource</layer>
</layers>
</config>
</configurations>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<!-- Enable the layers-test surefire execution, disable others -->
<executions>
<execution>
<id>layers-test</id>
<phase>test</phase>
</execution>
<execution>
<id>default-test</id>
<phase>none</phase>
</execution>
<execution>
<id>standalone-enabled-microprofile-test</id>
<phase>none</phase>
</execution>
</executions>
<configuration>
<systemPropertyVariables>
<!-- Override the standard module path that points at the shared module set from servlet-dist -->
<module.path>${project.build.directory}/wildfly/modules</module.path>
<!-- -Dnode0 is present in the parent definition of server.jvm.args, it is
expected by microprofile-config tests -->
<server.jvm.args>-Dnode0=${node0} -Dmaven.repo.local=${wildfly.transformed.repo.dir}</server.jvm.args>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- Profile to turn off execution of this module's tests if the testsuite is being run
against an external dist (i.e. by using the jboss.dist property to point to one)
and that dist does not include the full set of MP functionality. -->
<profile>
<id>disable.microprofile.profile</id>
<activation>
<property>
<name>disable.microprofile.tests</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<!-- Disable the surefire tests -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>default-test</id>
<phase>none</phase>
</execution>
<execution>
<id>standalone-enabled-microprofile-test</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.org.wildfly.plugin}</version>
<executions>
<execution>
<phase>none</phase>
<goals>
<goal>execute-commands</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>standalone.microprofile.profile</id>
<activation>
<property>
<name>ts.standalone.microprofile</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<!--Re-enable the default surefire execution, disable others. -->
<execution>
<id>default-test</id>
<phase>test</phase>
</execution>
<execution>
<id>standalone-enabled-microprofile-test</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.org.wildfly.plugin}</version>
<executions>
<execution>
<phase>none</phase>
<goals>
<goal>execute-commands</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>bootablejar.profile</id>
<activation>
<property>
<name>ts.bootable</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.wildfly.arquillian</groupId>
<artifactId>wildfly-arquillian-container-bootable</artifactId>
</dependency>
</dependencies>
<properties>
<bootable-jar-packaging.phase>process-test-resources</bootable-jar-packaging.phase>
</properties>
<build>
<plugins>
<!-- Disable the standard copy-based provisioning -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>ts.copy-wildfly</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.org.wildfly.plugin}</version>
<executions>
<execution>
<goals>
<goal>execute-commands</goal>
</goals>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jboss.galleon</groupId>
<artifactId>galleon-maven-plugin</artifactId>
<executions>
<!-- Disable the default provisioning -->
<execution>
<id>server-provisioning</id>
<goals>
<goal>provisioning</goal>
</goals>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<!-- Re-enable the default surefire execution -->
<execution>
<id>default-test</id>
<phase>test</phase>
<configuration>
<systemPropertyVariables>
<install.dir>${project.build.directory}/wildfly</install.dir>
<bootable.jar>${project.build.directory}/test-wildfly.jar</bootable.jar>
<arquillian.xml>arquillian-bootable.xml</arquillian.xml>
<module.path>${project.build.directory}/wildfly/modules</module.path>
</systemPropertyVariables>
<classpathDependencyExcludes>
<classpathDependencyExclude>
org.wildfly.arquillian:wildfly-arquillian-container-managed
</classpathDependencyExclude>
</classpathDependencyExcludes>
</configuration>
</execution>
<execution>
<id>standalone-enabled-microprofile-test</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>bootablejar.ee9.profile</id>
<activation>
<property>
<name>ts.bootable.ee9</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.wildfly.arquillian</groupId>
<artifactId>wildfly-arquillian-container-bootable</artifactId>
</dependency>
</dependencies>
<properties>
<bootable-jar-packaging.phase>process-test-resources</bootable-jar-packaging.phase>
<extra.server.jvm.args>-Dmaven.repo.local=${wildfly.transformed.repo.dir}</extra.server.jvm.args>
</properties>
<build>
<plugins>
<!-- Disable the standard copy-based provisioning -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>ts.copy-wildfly</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.org.wildfly.plugin}</version>
<executions>
<execution>
<goals>
<goal>execute-commands</goal>
</goals>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jboss.galleon</groupId>
<artifactId>galleon-maven-plugin</artifactId>
<executions>
<!-- Disable the default provisioning -->
<execution>
<id>server-provisioning</id>
<goals>
<goal>provisioning</goal>
</goals>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-jar-maven-plugin</artifactId>
<version>${version.org.wildfly.jar.plugin}</version>
<executions>
<!-- Provision a cloud server including all the MicroProfile specs layers -->
<execution>
<id>bootable-jar-packaging</id>
<configuration>
<plugin-options combine-children="append">
<jboss-jakarta-transform-artifacts>false</jboss-jakarta-transform-artifacts>
<jboss-maven-provisioning-repo>${wildfly.transformed.repo.dir}</jboss-maven-provisioning-repo>
</plugin-options>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<!-- Re-enable the default surefire execution -->
<execution>
<id>default-test</id>
<phase>test</phase>
<configuration>
<systemPropertyVariables>
<install.dir>${project.build.directory}/wildfly</install.dir>
<bootable.jar>${project.build.directory}/test-wildfly.jar</bootable.jar>
<arquillian.xml>arquillian-bootable.xml</arquillian.xml>
<module.path>${project.build.directory}/wildfly/modules</module.path>
</systemPropertyVariables>
<classpathDependencyExcludes>
<classpathDependencyExclude>
org.wildfly.arquillian:wildfly-arquillian-container-managed
</classpathDependencyExclude>
</classpathDependencyExcludes>
</configuration>
</execution>
<execution>
<id>standalone-enabled-microprofile-test</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>