-
Notifications
You must be signed in to change notification settings - Fork 10
/
pom.xml
306 lines (273 loc) · 9.91 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
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<!--
Common Knetminer parent, defining stuff like our Nexus
-->
<parent>
<groupId>uk.ac.rothamsted.knetminer</groupId>
<artifactId>knetminer-common</artifactId>
<version>5.0.1-SNAPSHOT</version>
</parent>
<groupId>uk.ac.rothamsted.kg</groupId>
<artifactId>rdf2pg-pom</artifactId>
<packaging>pom</packaging>
<version>5.1.1-SNAPSHOT</version>
<name>rdf2pg-pom - top POM</name>
<url>https://github.com/Rothamsted/rdf2pg</url>
<developers>
<developer>
<name>Marco Brandizi</name>
</developer>
</developers>
<contributors>
<contributor>
<name>Carlos Bobed</name>
</contributor>
</contributors>
<modules>
<module>rdf2pg-core</module>
<module>rdf2pg-core-cli</module>
<module>neo4j-utils</module>
<module>rdf2neo</module>
<module>rdf2graphml</module>
<module>rdf2neo-cli</module>
<module>rdf2graphml-cli</module>
</modules>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<slf4j.version>2.0.9</slf4j.version>
<jutils.version>14.1-SNAPSHOT</jutils.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.5.7</version>
</dependency>
<!--
Intercepts log4j and sends it to SL4J
This bridge is needed because we already use components based on Log4j, the ones following might be needed
in your application, so they're commented here.
-->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- Same for Jakarta Commons Logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- Same for Java Logging -->
<!-- IMPORTANT: If you're really using this, you will probably want to fix performance too:
http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html
http://logback.qos.ch/manual/configuration.html#LevelChangePropagator
-->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!--
Command line tests can invoke a CLI test without this braking the build cycle with System.exit()
See uk.ac.rothamsted.kg.rdf2pg.cli.Rdf2PGCli for details.
-->
<systemPropertyVariables>
<rdf2pg.no_jvm_exit>true</rdf2pg.no_jvm_exit>
</systemPropertyVariables>
<environmentVariables>
<!-- Just to align to production files which are used for tests too -->
<RDF2PG_HOME>${project.build.directory}/test-classes</RDF2PG_HOME>
</environmentVariables>
</configuration>
</plugin>
<!--
A small plug-in that starts Neo4j, we inherited this from André and it is now at
https://github.com/Rothamsted/neo4j-server-maven-plugin
-->
<plugin>
<groupId>com.github.harti2006</groupId>
<artifactId>neo4j-server-maven-plugin</artifactId>
</plugin>
<!-- Use this to start integration tests (*IT.java) -->
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<properties>
<property>
<!-- As above -->
<name>listener</name>
<value>uk.ac.ebi.utils.test.junit.TestOutputDecorator</value>
</property>
</properties>
<environmentVariables>
<!-- Just to align to production files which are used for tests too -->
<RDF2PG_HOME>${project.build.directory}/test-classes</RDF2PG_HOME>
</environmentVariables>
<!--
Command line tests can invoke a CLI test without this braking the build cycle with System.exit()
See uk.ac.rothamsted.kg.rdf2pg.cli.Rdf2PGCli for details.
-->
<systemPropertyVariables>
<rdf2pg.no_jvm_exit>true</rdf2pg.no_jvm_exit>
</systemPropertyVariables>
</configuration>
</plugin>
<!--
The package for line commands (*-cli modules) is built through this. Part of these files
come from the core package, downloaded from the Maven dependency plug-in (see below).
-->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archiverConfig>
<fileMode>0755</fileMode>
<directoryMode>0755</directoryMode>
<defaultDirectoryMode>0755</defaultDirectoryMode>
</archiverConfig>
</configuration>
<executions>
<execution>
<id>cli-pkg</id>
<!-- Default is package, but I don't see much point with packaging before tests are passed -->
<phase>post-integration-test</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>${project.artifactId}_${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<attach>true</attach>
<descriptors>
<descriptor>${project.build.directory}/assembly/pkg.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<!--
This has two common executions, both download different files from the core package to be used by
the others. See below for details.
Including this plug-in in your project by just telling its artifactId runs the first execution only
(test file downloads) and that's typical of library modules.
If you include the plugin and also override the get-cli-resources execution, then it additionally will download
files that are needed (by the Assembly plug-in above) to build the command line packages. Of course, that's
typical of *-cli modules (have a look at them for details on how to activate).
-->
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.8.0</version>
<executions>
<!--
This downloads common test files from the core module.
This is active by default (via the <phase> default).
-->
<execution>
<id>get-test-resources</id>
<phase>process-test-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>uk.ac.rothamsted.kg</groupId>
<artifactId>rdf2pg-core</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
<type>test-jar</type>
<excludes>**/*.class</excludes>
<outputDirectory>${project.build.directory}/test-classes</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<!--
As said above, these files are typically used in command line modules. By default it's disabled
(bound to the none phase).
-->
<execution>
<id>get-cli-resources</id>
<!--
Recommended phase to activate it (see *-cli modules). The Assembly plug-in usually comes straight
after this (the package phase).
-->
<!-- <phase>prepare-package</phase> -->
<phase>none</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<!-- Base files to build the CLI -->
<artifactItem>
<groupId>uk.ac.rothamsted.kg</groupId>
<artifactId>rdf2pg-core-cli</artifactId>
<version>${project.version}</version>
<includes>assembly/**/*</includes>
<!-- This is target/assembly, the assembly plug-in picks from here -->
<outputDirectory>${project.build.directory}</outputDirectory>
<!--
The downloaded copy of this files is renamed.
The replacement variables below are defined by *-cli modules and assign proper names to the
particular line command needed for a particular rdf2pg flavour (eg, rdf2neo.sh, rdf2graphml.sh)
-->
<fileMappers>
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
<pattern>\Qrdf2pg.sh\E</pattern>
<replacement>${rdf2pg.cli.rdf2pg}.sh</replacement>
</fileMapper>
</fileMappers>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
</plugins>
</pluginManagement>
</build>
<repositories>
<repository>
<!-- To pick 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>
</project>