-
Notifications
You must be signed in to change notification settings - Fork 175
/
Copy pathpom.xml
462 lines (445 loc) · 20.3 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
<?xml version="1.0" encoding="UTF-8"?>
<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>com.vaadin</groupId>
<artifactId>flow-project</artifactId>
<version>24.7-SNAPSHOT</version>
</parent>
<artifactId>flow-tests</artifactId>
<name>Flow tests</name>
<description>Test modules for Flow</description>
<packaging>pom</packaging>
<properties>
<!-- Don't care about coding style or licenses for tests -->
<sonar.skip>true</sonar.skip>
<license.skipDownloadLicenses>true</license.skipDownloadLicenses>
<maven.deploy.skip>true</maven.deploy.skip>
<!-- Used in the tests, should be overridden for each module to support
concurrent running of test modules. -->
<server.port>8888</server.port>
<server.stop.port>8889</server.stop.port>
<!-- This property is needed to allow some Win-specific IT tests -->
<!-- to be disabled via system property in CI until they got fixed-->
<exclude.windows.failed.it.tests></exclude.windows.failed.it.tests>
<testListener></testListener>
<!-- Skip these categories in validation, use -Pslow-tests to run them -->
<excludedGroups>
com.vaadin.flow.testcategory.SlowTests,
com.vaadin.flow.testcategory.ScreenshotTests,
com.vaadin.flow.testcategory.PushTests,
</excludedGroups>
<jetty.scantrigger></jetty.scantrigger>
<vaadin.devmode.liveReload.enabled>false</vaadin.devmode.liveReload.enabled>
<vaadin.pnpm.enable>true</vaadin.pnpm.enable>
<vaadin.allow.appshell.annotations>false</vaadin.allow.appshell.annotations>
<vaadin.devmode.vite.options>--host</vaadin.devmode.vite.options>
<vaadin.eagerServerLoad>false</vaadin.eagerServerLoad>
<!-- make sure we do not leave webpack-dev-server running after IT -->
<vaadin.reuseDevServer>false</vaadin.reuseDevServer>
<vaadin.devServerPort>0</vaadin.devServerPort>
<vaadin.frontend.hotdeploy>true</vaadin.frontend.hotdeploy>
<vaadin.devmode.hostsAllowed>*</vaadin.devmode.hostsAllowed>
</properties>
<dependencies>
<!-- Project dependencies -->
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>flow-html-components</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>flow-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>flow-dnd</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>flow-test-util</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>${bnd.version}</version>
<executions>
<execution>
<goals>
<goal>bnd-process</goal>
</goals>
<configuration>
<bnd><![CDATA[-fixupmessages: "Classes found in the wrong directory";is:=warning]]>
</bnd>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<index>false</index>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>flow-maven-plugin</artifactId>
<version>${project.version}</version>
<configuration>
<pnpmEnable>${vaadin.pnpm.enable}</pnpmEnable>
<bunEnable>${vaadin.bun.enable}</bunEnable>
</configuration>
<executions>
<execution>
<goals>
<goal>prepare-frontend</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Remove libs before ITs to avoid scan complaining about classes in multiple locations -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>delete-lib-folder</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<delete>
<fileset
dir="${project.build.directory}/${project.build.finalName}/WEB-INF/lib"
includes="*.jar"/>
</delete>
</target>
</configuration>
</execution>
</executions>
<configuration>
<failOnError>false</failOnError>
</configuration>
</plugin>
<!-- These files are generated by the `flow-maven-plugin` goals below -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}</directory>
<includes>
<include>package*.json</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<skipNexusStagingDeployMojo>true
</skipNexusStagingDeployMojo>
</configuration>
</plugin>
<!-- jetty plugin for those child modules that need it -->
<plugin>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<version>${jetty.version}</version>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
<configuration>
<webApp>
<containerIncludeJarPattern>^$
</containerIncludeJarPattern>
</webApp>
<httpConnector>
<port>${server.port}</port>
</httpConnector>
<stopPort>${server.stop.port}</stopPort>
<stopKey>foo</stopKey>
<stopWait>5</stopWait>
<systemProperties>
<!-- All system props are defined here as they need to be overridden
in all modules so no non-standard value leaks to another module -->
<vaadin.reuseDevServer>${vaadin.reuseDevServer}</vaadin.reuseDevServer>
<vaadin.devmode.liveReload.enabled>${vaadin.devmode.liveReload.enabled}</vaadin.devmode.liveReload.enabled>
<vaadin.allow.appshell.annotations>${vaadin.allow.appshell.annotations}</vaadin.allow.appshell.annotations>
<vaadin.eagerServerLoad>${vaadin.eagerServerLoad}</vaadin.eagerServerLoad>
<vaadin.devServerPort>${vaadin.devServerPort}</vaadin.devServerPort>
<jetty.scantrigger>${jetty.scantrigger}</jetty.scantrigger>
<!-- Allow test clients not on localhost to connect to Vite-->
<vaadin.devmode.vite.options>${vaadin.devmode.vite.options}</vaadin.devmode.vite.options>
<vaadin.frontend.hotdeploy>${vaadin.frontend.hotdeploy}</vaadin.frontend.hotdeploy>
<vaadin.devmode.hostsAllowed>${vaadin.devmode.hostsAllowed}</vaadin.devmode.hostsAllowed>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>${properties-maven-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<!-- these modules should be build, regardless of `skipTests` -->
<modules>
<module>test-resources</module>
<module>test-common</module>
<module>test-lumo</module>
<module>test-express-build</module>
</modules>
<profiles>
<profile>
<!-- Modules that have shared stuff used in other modules -->
<id>it-shared-modules</id>
<activation>
<property>
<!-- usind -DsharedModules -DskipTests we can install these modules and run tests later (GH actions) -->
<name>sharedModules</name>
</property>
</activation>
<modules>
<module>test-root-context</module>
<module>test-embedding</module>
<module>test-frontend</module>
<module>test-application-theme</module>
<module>test-multi-war</module>
<module>vaadin-spring-tests</module>
</modules>
</profile>
<profile>
<id>it-shared-spring-modules</id>
<modules>
<module>vaadin-spring-tests</module>
</modules>
</profile>
<profile>
<id>it-test-modules</id>
<activation>
<property>
<name>!skipTests</name>
</property>
</activation>
<modules>
<module>test-dev-mode</module>
<module>test-pwa</module>
<module>test-pwa/pom-production.xml</module>
<module>test-pwa-disabled-offline</module>
<module>test-pwa-disabled-offline/pom-production.xml</module>
<module>test-router-custom-context</module>
<module>test-live-reload</module>
<module>test-live-reload-multimodule</module>
<module>test-live-reload-multimodule-devbundle</module>
<module>test-redeployment</module>
<module>test-redeployment-no-cache</module>
<module>test-servlet</module>
<module>test-themes</module>
<module>test-themes/pom-production.xml</module>
<module>test-themes/pom-devbundle.xml</module>
<module>servlet-containers</module>
<!-- web component embedding -->
<module>test-embedding</module>
<!-- tests running in both modes -->
<module>test-misc</module>
<module>test-npm-only-features</module>
<module>test-multi-war</module>
<module>test-ccdm</module>
<module>test-ccdm/pom-production.xml</module>
<module>test-ccdm-flow-navigation</module>
<module>test-ccdm-flow-navigation/pom-production.xml</module>
<module>test-root-context</module>
<module>test-eager-bootstrap</module>
<module>test-custom-route-registry</module>
<!-- tests are disabled in this module, this reference is for maven version plugin -->
<module>test-no-theme</module>
<!-- move theme tests to the end, because theme switch live reload-->
<!-- test impacts startup test-->
<module>test-application-theme</module>
<module>test-theme-no-polymer</module>
<module>test-frontend</module>
<module>test-custom-frontend-directory</module>
<module>vaadin-spring-tests</module>
<module>test-react-router</module>
<module>test-react-router/pom-production.xml</module>
<module>test-react-adapter</module>
<module>test-react-adapter/pom-production.xml</module>
<module>test-legacy-frontend</module>
<module>test-client-queue</module>
</modules>
</profile>
<profile>
<id>nightly</id>
<modules>
<module>test-webpush</module>
</modules>
</profile>
<profile>
<id>benchmark</id>
<modules>
<module>vaadin-spring-tests</module>
</modules>
</profile>
<profile>
<id>eclipse</id>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<version>${jetty.version}</version>
<configuration>
<webAppConfig>
<!-- Configure all project META-INF/resources
directories for Jetty as resource folders as Jetty inside Eclipse is run
with "Resolve workspace artifacts" and this does not create any JARs. Jetty
only scans JARs for META-INF/resources folders -->
<resourceBases>
<!-- these paths are relative to the
project where the profile is triggered -->
<resourceBase>
${project.basedir}/src/main/webapp
</resourceBase>
<resourceBase>
${project.basedir}/../../flow-client/target/classes/META-INF/resources
</resourceBase>
<resourceBase>
${project.basedir}/../../flow-push/src/main/resources/META-INF/resources
</resourceBase>
<resourceBase>
${project.basedir}/../test-resources/src/main/resources/META-INF/resources
</resourceBase>
</resourceBases>
</webAppConfig>
<!-- force default ports so that running IT tests
from IDE work -->
<httpConnector>
<port>${server.port}</port>
</httpConnector>
<stopPort>${server.stop.port}</stopPort>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>validation</id>
<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>
</profile>
<profile>
<id>ie11</id>
<activation>
<property>
<!-- In BrowserStack tests are run on IE11 -->
<name>test.use.browserstack</name>
<value>true</value>
</property>
</activation>
<properties>
<groups></groups>
<excludedGroups>
com.vaadin.flow.testcategory.SlowTests,
com.vaadin.flow.testcategory.ScreenshotTests,
com.vaadin.flow.testcategory.PushTests,
com.vaadin.flow.testcategory.IgnoreIE11,
</excludedGroups>
</properties>
</profile>
<profile>
<id>all-tests</id>
<properties>
<groups></groups>
<excludedGroups></excludedGroups>
</properties>
</profile>
<profile>
<id>slow-tests</id>
<properties>
<groups>${excludedGroups}</groups>
<excludedGroups></excludedGroups>
</properties>
</profile>
<profile>
<id>deepClean</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}</directory>
<includes>
<include>package*.json</include>
<include>types.d.ts</include>
<include>tsconfig.json</include>
<include>pnpm-lock.yaml</include>
<include>bun.lockb</include>
<include>node_modules/**</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>