forked from DSpace/xoai
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pom.xml
235 lines (215 loc) · 9.84 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
<!--
~ The contents of this file are subject to the license and copyright
~ detailed in the LICENSE and NOTICE files at the root of the source
~ tree and available online at
~
~ http://www.dspace.org/license/
-->
<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>
<packaging>pom</packaging>
<parent>
<groupId>io.gdcc</groupId>
<artifactId>parent</artifactId>
<version>0.10.2</version>
</parent>
<modules>
<module>xoai-common</module>
<module>xoai-data-provider</module>
<module>xoai-service-provider</module>
<module>xoai-xmlio</module>
<module>report</module>
<module>xoai-data-provider-tck</module>
</modules>
<artifactId>xoai</artifactId>
<version>5.3.2-SNAPSHOT</version>
<name>XOAI : OAI-PMH Java Toolkit</name>
<!--<url>https://github.com/gdcc/xoai</url>-->
<description>An OAI-PMH data and/or service provider implementation, integration ready for your service.</description>
<url>https://github.com/${project.github.org}/${project.github.repo}</url>
<properties>
<jdk.version>11</jdk.version>
<project.github.repo>xoai</project.github.repo>
<skipEnforce.pomcheck-warn-is-no-error>true</skipEnforce.pomcheck-warn-is-no-error>
<!-- Dependencies -->
<jakarta.jaxb.version>4.0.1</jakarta.jaxb.version>
<jakarta.jaxb-impl.version>4.0.4</jakarta.jaxb-impl.version>
<stax2.api.version>4.2.2</stax2.api.version>
<woodstox.version>7.0.0</woodstox.version>
<!-- Testing dependencies -->
<dependency-check-maven.version>10.0.4</dependency-check-maven.version>
</properties>
<licenses>
<license>
<name>DuraSpace BSD License</name>
<url>https://raw.github.com/DSpace/DSpace/master/LICENSE</url>
<distribution>repo</distribution>
<comments>
A BSD 3-Clause license for the DSpace codebase.
</comments>
</license>
</licenses>
<build>
<plugins>
<!-- META -->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless.version}</version>
<configuration>
<!-- optional: limit format enforcement to just the files changed by this feature branch -->
<ratchetFrom>origin/branch-5.0</ratchetFrom>
<formats>
<!-- you can define as many formats as you want, each is independent -->
<format>
<!-- define the files to apply to -->
<includes>
<include>*.md</include>
<include>.gitignore</include>
</includes>
<!-- define the steps to apply to those files -->
<trimTrailingWhitespace />
<endWithNewline />
<indent>
<tabs>true</tabs>
<spacesPerTab>4</spacesPerTab>
</indent>
</format>
</formats>
<!-- define a language-specific format -->
<java>
<!-- no need to specify files, inferred automatically, but you can if you want -->
<importOrder /> <!-- standard import order -->
<removeUnusedImports /> <!-- self-explanatory -->
<!-- apply a specific flavor of google-java-format and reflow long strings -->
<googleJavaFormat>
<version>1.15.0</version>
<style>AOSP</style>
<reflowLongStrings>true</reflowLongStrings>
</googleJavaFormat>
<!-- make sure every file has the following copyright header.
optionally, Spotless can set copyright years by digging
through git history (see "license" section below) -->
<!--<licenseHeader>-->
<!--<content>/* (C)$YEAR */</content>-->
<!-- or <file>${project.basedir}/license-header</file> -->
<!--</licenseHeader>-->
</java>
</configuration>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>${jakarta.jaxb.version}</version>
</dependency>
<!--
This library is meant to be used with a Jakarta EE application server, so we do not include
the runtime dependency for JAXB. This is only necessary when using Java SE standalone. We mark this
as scope runtime (not necessary for compilation) and as optional (to exclude from packaging).
(Usually you would not add the scope in <dependencyManagement>, but as we want to provide a sane default,
lets do this anyway.)
-->
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>${jakarta.jaxb-impl.version}</version>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<!--
Some XML handling is not done via JAXB, but by using the Java native XML Stream API (but StAX2).
We are not using the JVM included parser, but the most common standard parser Woodstox.
(One might want to swap that to Aalto if more speed is required...)
-->
<dependency>
<groupId>com.fasterxml.woodstox</groupId>
<artifactId>woodstox-core</artifactId>
<version>${woodstox.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>stax2-api</artifactId>
<version>${stax2.api.version}</version>
</dependency>
<dependency>
<groupId>io.gdcc</groupId>
<artifactId>xoai-xmlio</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<developers>
<developer>
<name>Oliver Bertuch</name>
<url>https://github.com/poikilotherm</url>
<email>[email protected]</email>
<organization>Forschungszentrum Jülich GmbH</organization>
<organizationUrl>https://www.fz-juelich.de/en/zb</organizationUrl>
</developer>
<developer>
<name>DSpace @ Lyncode</name>
<email>[email protected]</email>
<organization>Lyncode</organization>
<organizationUrl>http://www.lyncode.com</organizationUrl>
</developer>
</developers>
<profiles>
<profile>
<id>coverage</id>
<properties>
<sonar.coverage.jacoco.xmlReportPaths>${maven.multiModuleProjectDirectory}/report/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>
</profile>
<profile>
<id>benchmark</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<skipTests>${skipUT}</skipTests>
<includes>**/*Benchmark</includes>
<systemPropertyVariables>
<benchmark>true</benchmark>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>owasp</id>
<build>
<plugins>
<plugin>
<!-- https://jeremylong.github.io/DependencyCheck/dependency-check-maven/index.html -->
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>${dependency-check-maven.version}</version>
<configuration>
<failBuildOnCVSS>7</failBuildOnCVSS>
<skipProvidedScope>true</skipProvidedScope>
<skipRuntimeScope>true</skipRuntimeScope>
<!-- Use SARIF output so we can upload to Github Security tab -->
<format>SARIF</format>
<suppressionFile>owaspSuppression.xml</suppressionFile>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>