-
Notifications
You must be signed in to change notification settings - Fork 16
/
pom.xml
444 lines (383 loc) · 13.9 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
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
<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>
<groupId>uk.ac.rothamsted.knetminer</groupId>
<artifactId>knetminer-common</artifactId>
<version>5.0.1-SNAPSHOT</version>
</parent>
<artifactId>app-common</artifactId>
<name>app-common - KnetMiner App top/common POM container</name>
<version>5.7-SNAPSHOT</version>
<description>
KnetMiner is a platform for fast candidate gene discovery using data mining techniques.
See http://github.com/Rothamsted/knetminer/wiki for technical details.
</description>
<url>http://knetminer.org/</url>
<packaging>pom</packaging>
<organization>
<name>Rothamsted Research</name>
<url>http://www.rothamsted.ac.uk/</url>
</organization>
<licenses>
<license>
<name>GNU GPL</name>
<url>http://www.gnu.org/licenses/gpl.html</url>
</license>
</licenses>
<modules>
<module>client-base</module>
<module>server-base</module>
<module>server-datasource-api</module>
<module>server-datasource-ondexlocal</module>
<module>server-ondex</module>
<module>aratiny</module>
<module>knetminer-initializer</module>
<module>knetminer-initializer-cli</module>
</modules>
<properties>
<!--
This is the default dir where Knetminer looks for its configuration (ie, config.xml, as defined
in web.xml).
This default works under the Docker instance. It's not hard-wired for the case you want to build
the WS WAR for another environment. As you can see in web.xml, this default can also be
overridden by the Java property (-D) knetminer.api.configFilePath, to be passed at runtime
(eg, to your Tomcat's JVM).
-->
<knetminer.defaultConfigDir>/root/knetminer-dataset/config</knetminer.defaultConfigDir>
<!-- A different one is used for the neo4j profile -->
<knetminer.testConfigFileName>test-cfg.yml</knetminer.testConfigFileName>
<!--
Several of these properties can be overriden by instance-specific Maven profiles.
Here, we give values suitable for maven tests (eg, in aratiny).
See https://github.com/Rothamsted/knetminer/wiki/3.-Deploying-KnetMiner-with-Docker
TODO: Update docs
***** WARNING ****
NEVER EVER USE Maven properties for production configurations (eg, Docker)!
While we used to do it in the past, now these values are used for Maven interpolation during
Maven builds ONLY (and to make different builds, eg, for testing or for Docker.
Once a distro file has been built via Maven using these values (eg, a .war, the Docker
image using that .war), then that file has NO REFERENCE to these POM properties.
Therefore, you CAN'T change them from here (without rebuilding everything, which is
STRONGLY discouraged practice).
Configuration values for knetminer is done via YAML files (see TODO). Some sub-component
still needs Java system properties (eg, the Neo4j traverser). In such cases, you can use
"systemProperties" in the YAML configuration (see documentation and existing examples).
-->
<!--
In most cases, probably you'll be fine with the overriding provided below, in the 'docker' profile.
For aratiny, we need this non-common value since it's difficult to rename a downloaded test file.
-->
<knetminer.oxlFile>${project.build.directory}/dependency/poaceae-sample.oxl</knetminer.oxlFile>
<knetminer.api.httpPort>9090</knetminer.api.httpPort>
<knetminer.api.url>http://localhost:${knetminer.api.httpPort}/ws/aratiny</knetminer.api.url>
<!--
These shouldn't need to be changed (apart from development purposes).
-->
<!--
=========> WARNING! <=========
Unless you need to repeat a version more times (eg, a group of modules produced by the same developer that have
their versions aligned), IT IS ABSOLUTELY FORBIDDEN to set a plug-in or dependency version in a property and use
it later ONLY ONCE, or doing it for the sole purpose of inserting that dependency in multiple submodules.
MAVEN HAS PLUG-IN AND MODULE MANAGEMENT SECTIONS FOR THIS PURPOSE. USE MAVEN PROPERLY!
Violating this rule might condemn you to an afterlife in the Hell of Developers, where the damned are forced
to give IT support to biologists who are still using Windows XP.
-->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17</java.version>
<ondex.version>7.0.1</ondex.version>
<knetminer.backend.version>4.0.1</knetminer.backend.version>
<!-- TODO: realign with the rest -->
<jutils.version>14.1-SNAPSHOT</jutils.version>
<!-- We define these using the Jetty properties, so that they can be overridden from the
command line -->
<jetty.http.port>8080</jetty.http.port>
<jetty.http.stopPort>8081</jetty.http.stopPort>
</properties>
<scm>
<connection>scm:git:https://github.com/Rothamsted/knetminer</connection>
<developerConnection>scm:git:https://github.com/Rothamsted/knetminer</developerConnection>
<url>https://github.com/Rothamsted/knetminer</url>
</scm>
<ciManagement>
<system>GitHub Actions</system>
<url>https://github.com/Rothamsted/knetminer/actions</url>
</ciManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.4.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- TODO: remove, the default reuseForks=true and forkCount=1 should be the same-->
<!-- <forkMode>always</forkMode> -->
<forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
<argLine>-Xms4G -Xmx4G</argLine>
<failIfNoTests>false</failIfNoTests>
<enableAssertions>true</enableAssertions>
<redirectTestOutputToFile>false</redirectTestOutputToFile>
<useFile>false</useFile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>11.0.19</version>
<executions>
<execution>
<id>start</id>
<phase>pre-integration-test</phase>
<goals><goal>start</goal></goals>
</execution>
<execution>
<id>stop</id>
<phase>post-integration-test</phase>
<goals><goal>stop</goal></goals>
</execution>
</executions>
<configuration>
<scan>10</scan>
<!-- This is defined in the properties section -->
<!-- httpConnector>
<port>8080</port>
</httpConnector -->
<webApp>
<contextPath>/</contextPath>
<allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
</webApp>
<!-- Again, this is in the properties above -->
<!--stopPort>8081</stopPort -->
<stopKey>araTinyJetty</stopKey>
<stopWait>10</stopWait>
<systemProperties>
<!--
This is the absolute value of the current projet's 'target/'.
It's used by provisional code taking mockup data from this dir.
-->
<maven.target>${project.build.directory}</maven.target>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>set-system-properties</goal>
</goals>
<configuration>
<properties>
<property>
<!--
WS scanning sometimes times out with the default (#551)
TODO: Is still needed with recent Jetty? Does it need a new
variable name?
-->
<name>org.eclipse.jetty.annotations.maxWait</name>
<value>600</value>
</property>
</properties>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>docker</id>
<activation><activeByDefault>false</activeByDefault></activation>
<properties>
<knetminer.api.httpPort>8080</knetminer.api.httpPort>
<!-- It's just this, so that our Tomcat can append the right prefix automatically -->
<knetminer.api.url>/ws/aratiny</knetminer.api.url>
</properties>
</profile>
</profiles>
<repositories>
<repository>
<!-- This is needed to let Maven find the parent POM -->
<id>knetminer-repo</id>
<name>Knetminer Unified Repository</name>
<url>https://knetminer.com/artifactory/repository/maven-public</url>
<snapshots><enabled>true</enabled></snapshots>
<releases><enabled>true</enabled></releases>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>uk.ac.rothamsted.knetminer</groupId>
<artifactId>server-datasource-ondexlocal</artifactId>
<version>${project.version}</version>
<exclusions>
<!-- Removes the old log4j and requires a replacement with log4j-1.2-api (listed below) -->
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- The new backend, based on Neo4j -->
<dependency>
<groupId>uk.ac.rothamsted.knetminer.backend</groupId>
<artifactId>cypher-client</artifactId>
<version>${knetminer.backend.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.0.0</version>
</dependency>
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>jakarta.servlet.jsp.jstl</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>net.sourceforge.ondex.core</groupId>
<artifactId>tools</artifactId>
<version>${ondex.version}</version>
</dependency>
<dependency>
<groupId>net.sourceforge.ondex.core</groupId>
<artifactId>workflow-api</artifactId>
<version>${ondex.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.sourceforge.ondex.core</groupId>
<artifactId>memory</artifactId>
<version>${ondex.version}</version>
</dependency>
<dependency>
<groupId>net.sourceforge.ondex.core</groupId>
<artifactId>lucene</artifactId>
<version>${ondex.version}</version>
</dependency>
<dependency>
<groupId>net.sourceforge.ondex.modules</groupId>
<artifactId>generic</artifactId>
<version>${ondex.version}</version>
</dependency>
<dependency>
<groupId>net.sourceforge.ondex.modules</groupId>
<artifactId>oxl</artifactId>
<version>${ondex.version}</version>
</dependency>
<dependency>
<groupId>net.sourceforge.ondex.modules</groupId>
<artifactId>cyjs_json</artifactId>
<version>${ondex.version}</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-common</artifactId>
<version>6.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jcl</artifactId>
<version>${log4j.version}</version>
</dependency>
<!-- slf4j 2 needs this bridge -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j2-impl</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${log4j.version}</version>
<exclusions>
<exclusion>
<!-- We use our own -->
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--
The old log4j v1.2 can be replaced by this, but only if the dependant is written well-enough.
(https://logging.apache.org/log4j/2.x/manual/migration.html)
-->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-web</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.14</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Needed in Java >= 11 -->
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>