-
Notifications
You must be signed in to change notification settings - Fork 3
/
pom.xml
249 lines (235 loc) · 11.5 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
<?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>eu.europeana</groupId>
<artifactId>europeana-parent-pom</artifactId>
<version>2.4</version>
</parent>
<repositories>
<repository>
<id>libs-release-local</id>
<name>europeana-releases</name>
<url>https://artifactory.eanadev.org/artifactory/libs-release</url>
</repository>
<repository>
<id>libs-snapshots-local</id>
<name>europeana-snapshots</name>
<url>https://artifactory.eanadev.org/artifactory/libs-snapshot</url>
</repository>
</repositories>
<artifactId>fulltext</artifactId>
<version>0.9.9-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Fulltext API</name>
<description>Europeana Fulltext API (newspapers, transcriptions and subtitles)</description>
<modules>
<module>common</module>
<module>api</module>
<module>loader</module>
<module>migrations</module>
<module>indexing</module>
<module>annosync</module>
</modules>
<properties>
<java.version>17</java.version>
<maven.compiler.release>${java.version}</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<api-commons.version>0.3.23</api-commons.version>
<!-- upgraded to 2.5.14 as 2.6.x is not compatible with swagger (springfox-swagger-ui)-->
<!-- org.apache.tomcat.embed version 9.0.56 is included uptill 2.6.3 which is vulnerable. See : CVE-2022-23181 -->
<!-- <spring-boot.version>2.5.14</spring-boot.version>-->
<!-- spring doc 1.7.0 is coampatible with 2.7.10 spring boot See - https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui/1.7.0-->
<spring-boot.version>2.7.18</spring-boot.version>
<spring-batch.version>4.3.6</spring-batch.version>
<spring-security.version>5.7.8</spring-security.version>
<!-- <jackson.version>2.14.0</jackson.version>-->
<!-- <io-informatics.version>0.1.1</io-informatics.version>-->
<morphia.version>2.2.9</morphia.version>
<mongo-driver.version>4.5.1</mongo-driver.version>
<snappy.version>1.1.10.5</snappy.version>
<commons-lang3.version>3.14.0</commons-lang3.version>
<commons-io.version>2.17.0</commons-io.version>
<!-- Note that upgrading to a newer version of Junit Jupiter may not work with older IntelliJ versions (2019.2.1)
However for Maven verify goal a newer Jupiter version is no problem-->
<junit-jupiter.version>5.6.0</junit-jupiter.version>
<mockito.version>3.7.0</mockito.version>
<unitils.version>3.4.6</unitils.version>
<!-- <springdoc.version>1.6.13</springdoc.version>-->
<springdoc.version>1.7.0</springdoc.version>
<tomcat.version>9.0.58</tomcat.version>
<mock-webserver.version>4.9.0</mock-webserver.version>
<testcontainers.version>1.19.8</testcontainers.version>
<apache.common.compress.version>1.25.0</apache.common.compress.version>
<eclipse-jetty.version>11.0.11</eclipse-jetty.version>
<build-helper-maven.version>3.0.0</build-helper-maven.version>
<maven-failsafe.version>3.0.0-M5</maven-failsafe.version>
<dependency-check-maven.version>10.0.2</dependency-check-maven.version>
<jettison.version>1.5.4</jettison.version>
<snakeyaml.version>2.0</snakeyaml.version>
</properties>
<dependencyManagement>
<dependencies>
<!-- Override the spring-security-core and crypto to 5.7.5 which does not have any vulnerabilities like CVE-2022-22978 -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-crypto</artifactId>
<version>${spring-security.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>${spring-security.version}</version>
</dependency>
<!-- Non vulnerable version of spring-security-web and config -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>${spring-security.version}</version>
</dependency>
<!-- Import dependency management start Spring Boot (because we don't use Spring-Boot as parent pom)-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>eu.europeana.api.commons</groupId>
<artifactId>commons-web</artifactId>
<version>${api-commons.version}</version>
<exclusions>
<!-- exclude Swagger dependency -->
<exclusion>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
</exclusion>
<!-- Transitive dependency from commons-definitions. Mongo version there
clashes with fulltext version -->
<exclusion>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>eu.europeana.api.commons</groupId>
<artifactId>commons-error</artifactId>
<version>${api-commons.version}</version>
<exclusions>
<!-- Transitive dependency from commons-definitions. Mongo version there
clashes with fulltext version -->
<exclusion>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
</exclusion>
<exclusion>
<artifactId>commons-collections</artifactId>
<groupId>commons-collections</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-failsafe.version}</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<classesDirectory>${project.build.directory}/classes</classesDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven.version}</version>
<executions>
<execution>
<id>add-integration-test-source</id>
<!-- Normally this would be attached to the generate-test-source phase,
however we attach to generate-sources so that the git-code-format plugin can pick
up integration test source files (see plugin config above) -->
<phase>generate-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<!-- Configures the source directory of our integration tests -->
<sources>
<source>src/integration-test/java</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-integration-test-resources</id>
<phase>generate-test-resources</phase>
<goals>
<goal>add-test-resource</goal>
</goals>
<configuration>
<!-- Configures the resource directory of our integration tests -->
<resources>
<resource>
<filtering>true</filtering>
<directory>src/integration-test/resources</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Tmp added to see compilation errors after upgrading dependencies, see
https://stackoverflow.com/questions/62583298/exception-in-thread-main-java-lang-assertionerror-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>depcheck</id>
<build>
<plugins>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>${dependency-check-maven.version}</version>
<configuration>
<nvdApiKeyEnvironmentVariable>NVD_APIKEY</nvdApiKeyEnvironmentVariable>
<!-- see EA-3505 why we host the known exploited vulnerabilties file ourselves -->
<knownExploitedUrl>https://artifactory.eanadev.org/artifactory/ext-release-local/gov/cisa/www/known_exploited_vulnerabilities.json</knownExploitedUrl>
<assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled>
<failBuildOnCVSS>8</failBuildOnCVSS>
<suppressionFiles>
<suppressionFile>owasp-suppress.xml</suppressionFile>
</suppressionFiles>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>