-
Notifications
You must be signed in to change notification settings - Fork 164
/
pom.xml
151 lines (147 loc) · 6 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
<?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">
<parent>
<groupId>com.vaadin</groupId>
<artifactId>flow-tests</artifactId>
<version>9.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>test-fusion-csrf-context</artifactId>
<name>Fusion CSRF tests with custom context path</name>
<description>
For https://github.com/vaadin/fusion/issues/105.
It verifies that the csrf cookie is added to correct path
when first open a sub view.
Note, the test needs to be in a separate module because
it needs to open a sub view first, put the test into another
module cannot gurantee this.
</description>
<version>9.0-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
<dependencies>
<!-- Project dependencies -->
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>fusion-endpoint</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-dev-server</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>test-fusion-csrf</artifactId>
<version>${project.version}</version>
<classifier>frontend</classifier>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>test-fusion-csrf</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.vaadin</groupId>
<artifactId>test-fusion-csrf</artifactId>
<version>${project.version}</version>
<classifier>frontend</classifier>
<outputDirectory>${project.basedir}/frontend</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<!-- This module is mapped to default web context -->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
<systemProperties>
<systemProperty>
<!-- make sure we do not leave webpack-dev-server running after IT -->
<name>vaadin.reuseDevServer</name>
<value>false</value>
</systemProperty>
</systemProperties>
<webApp>
<contextPath>/foo</contextPath>
</webApp>
</configuration>
</plugin>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>flow-maven-plugin</artifactId>
<configuration>
<productionMode>false</productionMode>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>local-run</id>
<activation>
<property>
<name>!test.use.hub</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.selenium</groupId>
<artifactId>driver-binary-downloader-maven-plugin
</artifactId>
<version>
${driver.binary.downloader.maven.plugin.version}
</version>
<configuration>
<onlyGetDriversForHostOperatingSystem>true
</onlyGetDriversForHostOperatingSystem>
<rootStandaloneServerDirectory>
${project.rootdir}/driver
</rootStandaloneServerDirectory>
<downloadedZipFileDirectory>
${project.rootdir}/driver_zips
</downloadedZipFileDirectory>
<customRepositoryMap>
${project.rootdir}/drivers.xml
</customRepositoryMap>
</configuration>
<executions>
<execution>
<phase>pre-integration-test</phase>
<goals>
<goal>selenium</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>