-
Notifications
You must be signed in to change notification settings - Fork 12
/
pom.xml
400 lines (365 loc) · 15.2 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
<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>
<groupId>nl.mpi</groupId>
<artifactId>oai-harvest-manager</artifactId>
<packaging>jar</packaging>
<version>1.2.1</version>
<name>OAI Harvest Manager</name>
<description>This application manages OAI-PMH harvesting workflows</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<versionNumber>${project.version}.${buildNumber}</versionNumber>
</properties>
<scm>
<connection>scm:git:https://github.com/clarin-eric/oai-harvest-manager.git</connection>
<developerConnection>scm:git:https://github.com/clarin-eric/oai-harvest-manager.git</developerConnection>
</scm>
<!-- REPOSITORIES -->
<repositories>
<repository>
<id>CLARIN</id>
<name>CLARIN Repository</name>
<url>https://nexus.clarin.eu/content/repositories/Clarin</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>CLARIN-Snapshot</id>
<name>CLARIN Snapshot Repository</name>
<url>https://nexus.clarin.eu/content/repositories/clarin-snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<!-- DEPENDENCIES -->
<dependencies>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>codemodel</artifactId>
<version>3.0.0-M4</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>txw2</artifactId>
<version>3.0.0-M4</version>
</dependency>
<dependency>
<groupId>com.sun.xsom</groupId>
<artifactId>xsom</artifactId>
<version>20140925</version>
</dependency>
<dependency>
<groupId>com.sun.istack</groupId>
<version>4.0.0-M3</version>
<artifactId>istack-commons-runtime</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.bind.external</groupId>
<artifactId>rngom</artifactId>
<version>3.0.0-M4</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.16.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<version>1.7.32</version>
</dependency>
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>9.5.1-8</version>
</dependency>
<dependency>
<groupId>nl.mpi.tla</groupId>
<artifactId>SaxonUtils</artifactId>
<version>1.0-SNAPSHOT</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.10.6</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.7</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>3.4.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>woodstox-core-asl</artifactId>
<version>4.4.1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>2.6.0</version>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<version>2.27.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.0.1-jre</version>
</dependency>
<!-- for java 11 -->
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.4.0-b180725.0427</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.4.0-b180725.0644</version>
</dependency>
</dependencies>
<!-- Build cycle referred plugins -->
<build>
<finalName>${project.artifactId}-${versionNumber}</finalName>
<!-- Define the location of the resources used for testing -->
<testResources>
<testResource>
<directory>src/test/resources</directory>
<includes>
<include>**</include>
</includes>
</testResource>
</testResources>
<pluginManagement>
<plugins>
<plugin>
<!-- Disable deployment because has not been configured -->
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.0.5</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!-- Configure the java compiler version, set it to 1.8 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>11</release>
</configuration>
</plugin>
<!-- Include the javadoc plugin allowing the build lifecycle to generate
the project's javadoc. Alternatively, the plugin is included in the site
cycle as well.-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<sourcepath>src/main/java;target/generated-sources/jaxb</sourcepath>
</configuration>
</plugin>
<!-- Configure the Maven dependency plugin to include the libraries the
harvest manager depends on in the jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>target/lib</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true </overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
<!-- Configure the Maven jar plugin to create the jar. Set the manifest
entries to the identifications known to the POM. Also, exclude the log4j
properties file from the jar. This avoids the properties being loaded
from a file different from one intentionally included in the existing
classpath -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<classesDirectory>target/classes</classesDirectory>
<archive>
<manifest>
<classpathPrefix>lib/</classpathPrefix>
<addClasspath>true</addClasspath>
<useUniqueVersions>false</useUniqueVersions>
<mainClass>nl.mpi.oai.harvester.control.Main</mainClass>
</manifest>
<manifestEntries>
<Built-By>${user.name}</Built-By>
<Built-On>${maven.build.timestamp}</Built-On>
<Version>${project.version}</Version>
<Revision>${buildNumber}</Revision>
<Class-Path>${project.artifactId}-${versionNumber}.jar</Class-Path>
<Class-Path>.</Class-Path>
</manifestEntries>
</archive>
<excludes>
<exclude>**/log4j.properties</exclude>
</excludes>
</configuration>
</plugin>
<!-- Configure the Maven assembly plugin to create the deployment
package, the tarball. The plugin builds package's name from the artifact
id and version number. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<finalName>${project.artifactId}-${versionNumber}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Add the build number plugin for generating a unique identification
for every build. Maven stores the ${buildNumber} variable. Please note
that in this project the number is part of the the version number. On
its turn, this number is reflected in the jar and the package names. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
<configuration>
<revisionOnScmFailure>none</revisionOnScmFailure>
<shortRevisionLength>6</shortRevisionLength>
</configuration>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
</configuration>
</plugin>
<!-- Add the plugin for generating sources that establish finalisation
of XML files defined by the XSD in src/main/xsd. You can invoke the plugin
by running: mvn jaxb2:xjc Note that the generated files will end up in the
generated package. Refer to the plugin documentation for alternative
plugin configuration. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<!-- <version>1.6</version> -->
<version>2.5.0</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<packageName> nl.mpi.oai.harvester.generated </packageName>
</configuration>
</plugin>
<!-- Add and configure the plugin for Findbugs. You can run the Findbugs
gui as the findbugs:gui target. For more information Findbugs, refer to
the manual: http://findbugs.sourceforge.net/manual -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.5</version>
<configuration>
<threshold>Normal</threshold>
<effort>Min</effort>
</configuration>
</plugin>
</plugins>
</build>
<!-- Site cycle referred plugins -->
<reporting>
<plugins>
<!-- Include the javadoc plugin allowing the site lifecycle to generate
the project's javadoc. Alternatively, the plugin is included in the build
cycle as well. This allows you to generate javadoc separately. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
</plugin>
</plugins>
</reporting>
</project>