/
pom.xml
executable file
·369 lines (348 loc) · 16 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Hibernate Search, full-text search for your domain model
~
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>hibernate-search-parent</artifactId>
<groupId>org.hibernate</groupId>
<version>5.10.6-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>hibernate-search-integrationtest-elasticsearch</artifactId>
<name>Hibernate Search Elasticsearch Integration Tests</name>
<description>Hibernate Search integration tests with Elasticsearch</description>
<properties>
<test.elasticsearch.failsafe.excludedGroups.version></test.elasticsearch.failsafe.excludedGroups.version>
<!--
By default, the following property skips AWS-related tests;
when the aws profile is enabled, it will skip tests that cannot pass on AWS
-->
<test.elasticsearch.failsafe.excludedGroups.aws>
,
org.hibernate.search.elasticsearch.testutil.junit.SkipWithoutAWS
</test.elasticsearch.failsafe.excludedGroups.aws>
<surefire.executing-module>it-elasticsearch</surefire.executing-module>
</properties>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-elasticsearch</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-testing</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-testing</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-engine</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-orm</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-orm</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${jdbc.driver.groupId}</groupId>
<artifactId>${jdbc.driver.artifactId}</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-phonetic</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>simple-jndi</groupId>
<artifactId>simple-jndi</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-envers</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.unitils</groupId>
<artifactId>unitils-easymock</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.transaction</groupId>
<artifactId>jboss-transaction-api_1.2_spec</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-queryparser</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.byteman</groupId>
<artifactId>byteman</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.byteman</groupId>
<artifactId>byteman-bmunit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.byteman</groupId>
<artifactId>byteman-install</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.skyscreamer</groupId>
<artifactId>jsonassert</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.takari.junit</groupId>
<artifactId>takari-cpsuite</artifactId>
<scope>test</scope>
</dependency>
<!-- Enable extracting shared test build resources -->
<!-- See how maven-dependency-plugin is configured in the parent pom -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-sharedtestresources</artifactId>
<classifier>build-resources</classifier>
<type>zip</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock</artifactId>
<scope>test</scope>
<exclusions>
<!-- Exclude dependencies that conflict with the ES Rest client -->
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<filtering>true</filtering>
<directory>src/test/resources</directory>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>elasticsearch-it</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<dependenciesToScan>
<dependency>org.hibernate:hibernate-search-engine</dependency>
<dependency>org.hibernate:hibernate-search-orm</dependency>
</dependenciesToScan>
<includes>
<include>**/*IT.java</include>
<!--
Warning: do not use a permissive wildcard such as '**/*.java',
as it would results in bugs such as HSEARCH-2481,
where Failsafe ended up loading every class from the classpath,
eventually loading Byteman classes which *must not* be loaded
before the Byteman agent has been launched.
Here we use the default surefire patterns documented there:
http://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html
-->
<include>**/Test*.java</include>
<include>**/*Test.java</include>
<include>**/*Tests.java</include>
<include>**/*TestCase.java</include>
</includes>
<excludes>
<!-- HSEARCH-2389 Support indexNullAs for @IndexedEmbedded applied on objects with Elasticsearch -->
<exclude>**/IndexEmbeddedProgrammaticallyMappedTest.java</exclude>
<!-- Also, parts of NullEmbeddedTest -->
<!-- HSEARCH-2395 Support MoreLikeThisQueries with the Elasticsearch backend -->
<exclude>**/MoreLikeThisTest.java</exclude>
<!-- HSEARCH-2137 Translate core Lucene Queries to Elasticsearch queries -->
<exclude>**/ExplanationTest.java</exclude>
<!-- HSEARCH-2398 Improve field name/type validation when querying the Elasticsearch backend -->
<exclude>**/FacetUnknownFieldFailureTest.java</exclude><!-- The elasticsearch backend seems too lenient for unknown field names. -->
<exclude>**/QueryValidationTest.java</exclude><!-- testTargetNumericEncodedFieldWithStringQueryThrowsException: The Elasticsearch backend throws an exception, but not exactly the one we expect -->
<exclude>**/QueryValidationTest.java</exclude><!-- testTargetStringEncodedFieldWithNumericRangeQueryThrowsException: The Elasticsearch backend seems to accept numeric range queries on string fields...? (it even seems to match) -->
<!-- HSEARCH-2399 Implement timeouts for the Elasticsearch backend -->
<exclude>**/JPATimeoutTest.java</exclude>
<exclude>**/TimeoutTest.java</exclude>
</excludes>
<excludedGroups>
${test.elasticsearch.failsafe.excludedGroups.version}
${test.elasticsearch.failsafe.excludedGroups.aws}
</excludedGroups>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<!-- Inherit execution unpack-shared-test-build-resources -->
</plugin>
<plugin>
<groupId>com.github.alexcojocaru</groupId>
<artifactId>elasticsearch-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>elasticsearch-2.0</id>
<properties>
<test.elasticsearch.failsafe.excludedGroups.version>
org.hibernate.search.testsupport.junit.SkipOnElasticsearch,
org.hibernate.search.testsupport.junit.ElasticsearchSupportInProgress,
org.hibernate.search.elasticsearch.testutil.junit.SkipBelowElasticsearch22,
org.hibernate.search.elasticsearch.testutil.junit.SkipBelowElasticsearch50,
org.hibernate.search.elasticsearch.testutil.junit.SkipBelowElasticsearch52
</test.elasticsearch.failsafe.excludedGroups.version>
</properties>
</profile>
<profile>
<id>elasticsearch-2.2</id>
<properties>
<test.elasticsearch.failsafe.excludedGroups.version>
org.hibernate.search.testsupport.junit.SkipOnElasticsearch,
org.hibernate.search.testsupport.junit.ElasticsearchSupportInProgress,
org.hibernate.search.elasticsearch.testutil.junit.SkipBelowElasticsearch50,
org.hibernate.search.elasticsearch.testutil.junit.SkipBelowElasticsearch52
</test.elasticsearch.failsafe.excludedGroups.version>
</properties>
</profile>
<profile>
<id>elasticsearch-5.0</id>
<properties>
<test.elasticsearch.failsafe.excludedGroups.version>
org.hibernate.search.testsupport.junit.SkipOnElasticsearch,
org.hibernate.search.testsupport.junit.ElasticsearchSupportInProgress,
org.hibernate.search.elasticsearch.testutil.junit.SkipFromElasticsearch50,
org.hibernate.search.elasticsearch.testutil.junit.SkipBelowElasticsearch52
</test.elasticsearch.failsafe.excludedGroups.version>
</properties>
</profile>
<profile>
<id>elasticsearch-5.2</id>
<!-- Activation rules are not inherited from the profile definition in the parent, so we must copy them here -->
<activation>
<property>
<name>!test.elasticsearch.host.version</name>
</property>
</activation>
<properties>
<test.elasticsearch.failsafe.excludedGroups.version>
org.hibernate.search.testsupport.junit.SkipOnElasticsearch,
org.hibernate.search.testsupport.junit.ElasticsearchSupportInProgress,
org.hibernate.search.elasticsearch.testutil.junit.SkipFromElasticsearch50,
org.hibernate.search.elasticsearch.testutil.junit.SkipFromElasticsearch52
</test.elasticsearch.failsafe.excludedGroups.version>
</properties>
</profile>
<profile>
<id>aws</id>
<activation>
<property>
<name>test.elasticsearch.host.aws.signing.enabled</name>
<value>true</value>
</property>
</activation>
<properties>
<test.elasticsearch.failsafe.excludedGroups.aws>
,
org.hibernate.search.elasticsearch.testutil.junit.SkipOnAWS
</test.elasticsearch.failsafe.excludedGroups.aws>
<test.elasticsearch.host.aws.signing.enabled>true</test.elasticsearch.host.aws.signing.enabled>
</properties>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-elasticsearch-aws</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
</profiles>
</project>