/
pom.xml
277 lines (264 loc) · 13.1 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright The WildFly Authors
~ SPDX-License-Identifier: Apache-2.0
-->
<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-mp</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>33.0.0.Beta1-SNAPSHOT</version>
</parent>
<artifactId>wildfly-ts-integ-mp-config</artifactId>
<name>WildFly Test Suite: Integration - MicroProfile TCK - Config</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>
<!-- These properties control what layers are provisioned if galleon provision occurs -->
<ts.microprofile-tck-tests-dependency>org.eclipse.microprofile.config:microprofile-config-tck</ts.microprofile-tck-tests-dependency>
<config.configure-weld-subsystem.phase>process-test-resources</config.configure-weld-subsystem.phase>
<!--
Arquillian does not propagate the system properties the TCK needs when starting the server. Create a
convenience property we can use for the microprofile.jvm.args later. (the values come from the surefire
plugin configuration below)
-->
<mp.tck.properties>-Dmp.tck.prop.dummy=dummy -Dcustomer.hobby=Tennis -Dconfig_ordinal=120</mp.tck.properties>
<ts.microprofile-tck-glow.expected-discovery>[cdi, ee-integration, microprofile-config]==>ee-core-profile-server,microprofile-config</ts.microprofile-tck-glow.expected-discovery>
</properties>
<dependencies>
<dependency>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.microprofile.config</groupId>
<artifactId>microprofile-config-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.microprofile.config</groupId>
<artifactId>microprofile-config-tck</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>tck-suite.xml</suiteXmlFile>
</suiteXmlFiles>
<!-- These env variables are required for org.eclipse.microprofile.config.tck.CDIPropertyNameMatchingTest -->
<environmentVariables>
<MP_TCK_ENV_DUMMY>dummy</MP_TCK_ENV_DUMMY>
<my_int_property>45</my_int_property>
<MY_BOOLEAN_PROPERTY>true</MY_BOOLEAN_PROPERTY>
<my_string_property>haha</my_string_property>
<MY_STRING_PROPERTY>woohoo</MY_STRING_PROPERTY>
<config_ordinal>45</config_ordinal>
<customer_name>Bob</customer_name>
</environmentVariables>
<systemPropertyVariables>
<!-- We have put these values into mp.tck.properties above -->
<mp.tck.prop.dummy>dummy</mp.tck.prop.dummy>
<customer.hobby>Tennis</customer.hobby>
<config_ordinal>120</config_ordinal>
<!-- Pass the my_string_property and MY_STRING_PROPERTY as sysprop to exclude them from the
ConfigProviderTest#testEnvironmentConfigSource that does not deal with case-sensitive environment variables on Windows
-->
<microprofile.jvm.args>${microprofile.jvm.args} ${mp.tck.properties} -Dmy_string_property=haha -DMY_STRING_PROPERTY=woohoo</microprofile.jvm.args>
</systemPropertyVariables>
</configuration>
</plugin>
<!-- Enable legacy empty beans.xml treatment otherwise the TCKs will fail -->
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.org.wildfly.plugin}</version>
<executions>
<execution>
<id>configure-weld-subsystem</id>
<phase>${config.configure-weld-subsystem.phase}</phase>
<goals>
<goal>execute-commands</goal>
</goals>
<configuration>
<commands>
<command>embed-server --server-config=standalone-microprofile.xml</command>
<command>/subsystem=weld:write-attribute(name=legacy-empty-beans-xml-treatment,value=true)</command>
<command>stop-embedded-server</command>
</commands>
<system-properties combine.children="append">
<module.path>${jboss.dist}/modules${path.separator}${basedir}/target/modules</module.path>
</system-properties>
</configuration>
</execution>
</executions>
<configuration>
<offline>true</offline>
<jboss-home>${basedir}/target/wildfly</jboss-home>
<stdout>${project.build.directory}/wildfly/standalone/log/weld-configuration.log</stdout>
<java-opts>${modular.jdk.args}</java-opts>
<system-properties>
<maven.repo.local>${maven.repo.local}</maven.repo.local>
<module.path>${project.build.directory}/wildfly/modules</module.path>
</system-properties>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>layers.profile</id>
<activation>
<property>
<name>ts.layers</name>
</property>
</activation>
<properties>
<!-- Enable galleon provisioning -->
<ts.microprofile-tck-provisioning.phase>test-compile</ts.microprofile-tck-provisioning.phase>
<ts.microprofile-tck-glow.phase>test-compile</ts.microprofile-tck-glow.phase>
<config.configure-weld-subsystem.phase>process-test-classes</config.configure-weld-subsystem.phase>
</properties>
</profile>
<profile>
<id>bootablejar.profile</id>
<activation>
<property>
<name>ts.bootable</name>
</property>
</activation>
<properties>
<!-- Enable bootable jar packaging -->
<ts.microprofile-tck-glow.phase>test-compile</ts.microprofile-tck-glow.phase>
<ts.bootable-jar-packaging.phase>test-compile</ts.bootable-jar-packaging.phase>
<ts.microprofile-tck-glow.config.name>standalone.xml</ts.microprofile-tck-glow.config.name>
<!-- Disable 'configure-weld-subsystem' since that is for a standalone server -->
<config.configure-weld-subsystem.phase>none</config.configure-weld-subsystem.phase>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-jar-maven-plugin</artifactId>
<executions>
<execution>
<id>bootable-jar-packaging</id>
<configuration>
<cli-sessions>
<cli-session>
<script-files>
<script>${basedir}/src/test/resources/configure-weld-subsystem.cli</script>
</script-files>
</cli-session>
</cli-sessions>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>bootablejar.preview.profile</id>
<activation>
<property>
<name>ts.bootable.preview</name>
</property>
</activation>
<properties>
<!-- Enable bootable jar packaging -->
<ts.microprofile-tck-glow.phase>test-compile</ts.microprofile-tck-glow.phase>
<ts.bootable-jar-packaging.phase>test-compile</ts.bootable-jar-packaging.phase>
<ts.microprofile-tck-glow.config.name>standalone.xml</ts.microprofile-tck-glow.config.name>
<!-- Disable 'configure-weld-subsystem' since that is for a standalone server -->
<config.configure-weld-subsystem.phase>none</config.configure-weld-subsystem.phase>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-jar-maven-plugin</artifactId>
<executions>
<execution>
<id>bootable-jar-packaging</id>
<configuration>
<cli-sessions>
<cli-session>
<script-files>
<script>${basedir}/src/test/resources/configure-weld-subsystem.cli</script>
</script-files>
</cli-session>
</cli-sessions>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>preview.test.profile</id>
<activation>
<property>
<name>ts.preview</name>
</property>
</activation>
<properties>
<!-- Enable galleon provisioning -->
<ts.microprofile-tck-provisioning.phase>test-compile</ts.microprofile-tck-provisioning.phase>
<ts.microprofile-tck-glow.phase>test-compile</ts.microprofile-tck-glow.phase>
<!-- Disable 'configure-weld-subsystem' since that is for a standalone server -->
<config.configure-weld-subsystem.phase>test-compile</config.configure-weld-subsystem.phase>
</properties>
</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>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>