-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpom-j2cl-test.xml
146 lines (138 loc) · 4.33 KB
/
pom-j2cl-test.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
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>org.gwtproject.http</groupId>
<artifactId>gwt-http-j2cl-tests</artifactId>
<version>DO_NOT_DEPLOY</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<jetty.http.port>8080</jetty.http.port>
<jetty.stop.port>9999</jetty.stop.port>
<webdriver>htmlunit</webdriver>
</properties>
<repositories>
<repository>
<id>vertispan-snapshots</id>
<url>https://repo.vertispan.com/j2cl/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>vertispan-snapshots</id>
<url>https://repo.vertispan.com/j2cl/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>org.gwtproject.http</groupId>
<artifactId>gwt-http</artifactId>
<version>LOCAL</version>
</dependency>
<dependency>
<groupId>com.vertispan.j2cl</groupId>
<artifactId>junit-annotations</artifactId>
<version>0.9-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.vertispan.j2cl</groupId>
<artifactId>junit-emul</artifactId>
<version>0.9-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.vertispan.j2cl</groupId>
<artifactId>junit-emul</artifactId>
<version>0.9-SNAPSHOT</version>
<scope>test</scope>
<classifier>sources</classifier>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/testFixtures/java</sourceDirectory>
<testSourceDirectory>src/j2cl-test/java</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>com.vertispan.j2cl</groupId>
<artifactId>j2cl-maven-plugin</artifactId>
<version>0.17-SNAPSHOT</version>
<configuration>
<webdriver>${webdriver}</webdriver>
<compilationLevel>ADVANCED</compilationLevel>
<defines>
<test.baseUrl>http://localhost:${jetty.http.port}/</test.baseUrl>
<test.webdriver>${webdriver}</test.webdriver>
</defines>
</configuration>
<executions>
<execution>
<id>j2cl-test</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.4.45.v20220203</version>
<configuration>
<supportedPackagings>
<packaging>jar</packaging>
</supportedPackagings>
<scanIntervalSeconds>0</scanIntervalSeconds>
<stopKey>STOP</stopKey>
<stopPort>${jetty.stop.port}</stopPort>
<classesDirectory>build/classes/java/test</classesDirectory>
<webAppSourceDirectory>src/j2cl-test/webapp</webAppSourceDirectory>
</configuration>
<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>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlets</artifactId>
<version>9.4.45.v20220203</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>