forked from hibernate/hibernate-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
195 lines (183 loc) · 9.21 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
<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.hibernate.search</groupId>
<artifactId>hibernate-search-integrationtest</artifactId>
<version>6.1.0-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>
<artifactId>hibernate-search-integrationtest-showcase-library</artifactId>
<name>Hibernate Search ITs - Showcase - Library</name>
<description>Hibernate Search showcase based on the ORM and Elasticsearch integrations, using libraries and books as business objects</description>
<properties>
<!--
Remove Hibernate system properties from parent settings:
They are supposed to be handled by the spring.datasource subsystem
and not by the Hibernate internal pool!
See also the failsafe configuration.
-->
<failsafe.jvm.args.hibernate-orm></failsafe.jvm.args.hibernate-orm>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${version.org.springframework.boot}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${version.org.mockito}</version>
<scope>test</scope>
<exclusions>
<!-- Bytebuddy is already imported by Hibernate ORM with a different version -->
<exclusion>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-mapper-orm</artifactId>
</dependency>
<!-- Only necessary when using the Lucene backend -->
<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-backend-lucene</artifactId>
</dependency>
<!-- Only necessary when using the Elasticsearch backend -->
<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-backend-elasticsearch</artifactId>
</dependency>
<!-- Only necessary when targeting an Elasticsearch service provided by AWS -->
<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-backend-elasticsearch-aws</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<exclusions>
<!-- Using JBoss Logging -->
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-util-internal-integrationtest-mapper-orm</artifactId>
<scope>test</scope>
</dependency>
<!--
Leave this dependency here, not in a utils module, so that we don't need to recompile
the utils to re-run the tests with a different database.
-->
<dependency>
<groupId>${jdbc.driver.groupId}</groupId>
<artifactId>${jdbc.driver.artifactId}</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<!-- Using JBoss Logging -->
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<skip>${failsafe.spring.skip}</skip>
<!--
Since we do not pass the Hibernate ORM settings through system properties directly
(see the override of the failsafe.jvm.args.hibernate-orm near the top of this file),
we need to pass the settings some other way.
Here we chose to use environment variables.
-->
<environmentVariables>
<HIBERNATE_DIALECT>${db.dialect}</HIBERNATE_DIALECT>
<JDBC_DRIVER>${jdbc.driver}</JDBC_DRIVER>
<JDBC_URL>${jdbc.url}</JDBC_URL>
<JDBC_USERNAME>${jdbc.user}</JDBC_USERNAME>
<JDBC_PASSWORD>${jdbc.pass}</JDBC_PASSWORD>
<JDBC_ISOLATION>${jdbc.isolation}</JDBC_ISOLATION>
<ELASTICSEARCH_URIS>${test.elasticsearch.connection.uris}</ELASTICSEARCH_URIS>
<ELASTICSEARCH_USERNAME>${test.elasticsearch.connection.username}</ELASTICSEARCH_USERNAME>
<ELASTICSEARCH_PASSWORD>${test.elasticsearch.connection.password}</ELASTICSEARCH_PASSWORD>
<ELASTICSEARCH_AWS_SIGNING_ENABLED>${test.elasticsearch.connection.aws.signing.enabled}</ELASTICSEARCH_AWS_SIGNING_ENABLED>
<ELASTICSEARCH_AWS_REGION>${test.elasticsearch.connection.aws.region}</ELASTICSEARCH_AWS_REGION>
<ELASTICSEARCH_AWS_CREDENTIALS_TYPE>${test.elasticsearch.connection.aws.credentials.type}</ELASTICSEARCH_AWS_CREDENTIALS_TYPE>
<ELASTICSEARCH_AWS_CREDENTIALS_ACCESS_KEY_ID>${test.elasticsearch.connection.aws.credentials.access_key_id}</ELASTICSEARCH_AWS_CREDENTIALS_ACCESS_KEY_ID>
<ELASTICSEARCH_AWS_CREDENTIALS_SECRET_ACCESS_KEY>${test.elasticsearch.connection.aws.credentials.secret_access_key}</ELASTICSEARCH_AWS_CREDENTIALS_SECRET_ACCESS_KEY>
<!--
The test settings add a different suffix to this value for each test execution.
We can't add this suffix (${random.uuid}) here due to IDEA limitations:
IDEA just ignores this environment variable if it finds a reference to an unknown property
such as "${random.uuid}".
-->
<LUCENE_ROOT_PATH>${project.build.directory}/test-indexes/</LUCENE_ROOT_PATH>
</environmentVariables>
</configuration>
<executions>
<execution>
<id>it-lucene</id>
<goals>
<goal>integration-test</goal>
</goals>
<configuration>
<reportNameSuffix>${surefire.environment}-${surefire.executing-module}-lucene</reportNameSuffix>
<systemPropertyVariables>
<!-- See TestActiveProfilesResolver -->
<test.backend>lucene</test.backend>
</systemPropertyVariables>
</configuration>
</execution>
<execution>
<id>it-elasticsearch</id>
<goals>
<goal>integration-test</goal>
</goals>
<configuration>
<reportNameSuffix>${surefire.environment}-${surefire.executing-module}-elasticsearch</reportNameSuffix>
<systemPropertyVariables>
<!-- See TestActiveProfilesResolver -->
<test.backend>elasticsearch</test.backend>
</systemPropertyVariables>
</configuration>
</execution>
<execution>
<id>it-verify</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>