Repository navigation
Expand file tree
/
Copy pathpom.xml
More file actions
315 lines (300 loc) · 12.4 KB
/
Copy pathpom.xml
File metadata and controls
315 lines (300 loc) · 12.4 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the 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>
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>39</version>
<relativePath/>
</parent>
<groupId>org.apache.sourcelume</groupId>
<artifactId>sourcelume-registry</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Apache Sourcelume Registry</name>
<description>Apache Sourcelume Registry: a framework-free ingest core, a JDK-only metadata storage SPI, classpath storage and validation plugins, and a Quarkus HTTP runtime. Java 21 baseline.</description>
<modules>
<module>sourcelume-registry-typedefs</module>
<module>sourcelume-registry-spi</module>
<module>sourcelume-registry-spi-tck</module>
<module>sourcelume-registry-common</module>
<module>sourcelume-registry-core</module>
<!-- Atlas storage plugin, discovered through RegistryPluginProvider. -->
<module>sourcelume-registry-atlas-adapter</module>
<!-- PostgreSQL storage plugin, discovered through RegistryPluginProvider. -->
<module>sourcelume-registry-postgres</module>
<!-- Validation plugins: discovered via the core RecordValidator SPI
(ServiceLoader), each owning its validation machinery. -->
<module>sourcelume-registry-validation-jsonschema</module>
<module>sourcelume-registry-validation-shacl</module>
<!-- Runtime modules own their framework dependencies; the parent stays
framework-free. Runtime and distribution modules import their own
Quarkus BOM. -->
<module>sourcelume-registry-runtime-quarkus</module>
<module>sourcelume-registry-distribution-postgres</module>
<module>sourcelume-registry-distribution-atlas</module>
<!-- Packages and runs a provider-only application without Atlas. -->
<module>tests/storage-distribution</module>
</modules>
<properties>
<!-- Java 21 baseline (LTS). See dev-list consensus, September 2026. -->
<maven.compiler.release>21</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- Dependency versions: no framework BOM, the core is framework-free -->
<jackson.version>2.18.4</jackson.version>
<!-- Keep validation versions aligned with the runtime module's Quarkus BOM. -->
<jakarta.validation.version>3.1.1</jakarta.validation.version>
<hibernate-validator.version>9.1.0.Final</hibernate-validator.version>
<expressly.version>6.0.0</expressly.version>
<slf4j.version>2.0.16</slf4j.version>
<junit.version>5.11.4</junit.version>
<json-schema-validator.version>2.0.4</json-schema-validator.version>
<jena.version>6.2.0</jena.version>
<!-- Quarkus version pin: the parent itself stays framework-free (no
Quarkus BOM import here), but the runtime modules share this pin
so the version cannot drift between them. Each runtime module
imports the BOM in its own dependencyManagement. -->
<quarkus.version>3.33.3</quarkus.version>
<sourcelume-spec.version>0.0.1-SNAPSHOT</sourcelume-spec.version>
<!-- Plugin versions (formatting and style, same tools as sourcelume-spec) -->
<spotless-maven-plugin.version>2.44.5</spotless-maven-plugin.version>
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
<checkstyle.version>10.26.1</checkstyle.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>${jackson.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.sourcelume</groupId>
<artifactId>sourcelume-spec</artifactId>
<version>${sourcelume-spec.version}</version>
</dependency>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>${jakarta.validation.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate-validator.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.expressly</groupId>
<artifactId>expressly</artifactId>
<version>${expressly.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>com.networknt</groupId>
<artifactId>json-schema-validator</artifactId>
<version>${json-schema-validator.version}</version>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-shacl</artifactId>
<version>${jena.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sourcelume</groupId>
<artifactId>sourcelume-registry-typedefs</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sourcelume</groupId>
<artifactId>sourcelume-registry-spi-tck</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sourcelume</groupId>
<artifactId>sourcelume-registry-spi</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sourcelume</groupId>
<artifactId>sourcelume-registry-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sourcelume</groupId>
<artifactId>sourcelume-registry-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sourcelume</groupId>
<artifactId>sourcelume-registry-atlas-adapter</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sourcelume</groupId>
<artifactId>sourcelume-registry-postgres</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sourcelume</groupId>
<artifactId>sourcelume-registry-validation-jsonschema</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sourcelume</groupId>
<artifactId>sourcelume-registry-validation-shacl</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.sourcelume</groupId>
<artifactId>sourcelume-registry-runtime-quarkus</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<!-- Version comes from the Apache parent POM; only the release
baseline is pinned here. -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>${maven.compiler.release}</release>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!--
RAT enforces ASF license headers on every build. The Apache
parent only runs it in the apache-release profile; binding it
here makes `mvn verify` (and CI) fail on missing headers.
-->
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<!-- Plain hash list, cannot carry a license header -->
<configuration>
<excludes>
<exclude>.git-blame-ignore-revs</exclude>
<exclude>.junie/**</exclude>
<!-- Local git worktree checkouts created by tooling; not part of the source tree -->
<exclude>.worktrees/**</exclude>
<!-- JSON-LD data records cannot contain comments without breaking JSON parsing -->
<exclude>**/*.jsonld</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>rat-check</id>
<goals>
<goal>check</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
<!--
Spotless owns formatting: palantir-java-format for Java,
license headers from dev/license-header.txt, and sortPom for
the poms. Checkstyle adds structural rules Spotless cannot
express (dev/checkstyle.xml: JUnit 3/4 imports are banned).
Both mirror sourcelume-spec so both repos share one style;
`mvn spotless:apply` fixes drift.
-->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless-maven-plugin.version}</version>
<configuration>
<java>
<includes>
<include>src/main/java/**/*.java</include>
<include>src/test/java/**/*.java</include>
<include>examples/storage-plugin/*/src/**/*.java</include>
</includes>
<palantirJavaFormat/>
<importOrder/>
<removeUnusedImports/>
<licenseHeader>
<file>${maven.multiModuleProjectDirectory}/dev/license-header.txt</file>
</licenseHeader>
</java>
<pom>
<includes>
<include>pom.xml</include>
<include>examples/storage-plugin/**/pom.xml</include>
</includes>
<sortPom>
<expandEmptyElements>false</expandEmptyElements>
</sortPom>
</pom>
</configuration>
<executions>
<execution>
<id>spotless-check</id>
<goals>
<goal>check</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin.version}</version>
<configuration>
<configLocation>${maven.multiModuleProjectDirectory}/dev/checkstyle.xml</configLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<consoleOutput>true</consoleOutput>
<failOnViolation>true</failOnViolation>
</configuration>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>checkstyle-check</id>
<goals>
<goal>check</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>