This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pom.xml
396 lines (352 loc) · 17.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
<?xml version="1.0" encoding="UTF-8"?>
<!-- SPDX-License-Identifier: Apache-2.0 -->
<!-- Copyright Contributors to the ODPi Egeria project. -->
<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>
<!-- Name and description of the project -->
<name>Egeria Developer Projects</name>
<description>
Top-level package for the dev projects to allow a single build of the java code.
</description>
<!-- These are our maven 'coordinates' ie the name of the artifact and its version -->
<groupId>org.odpi.egeria</groupId>
<artifactId>egeria-dev-projects</artifactId>
<version>3.12</version>
<!-- This defines the link to our sources, and is required if the artifact is published to maven central -->
<scm>
<connection>scm:git:git://github.com/odpi/egeria-dev-projects.git</connection>
<developerConnection>scm:git:ssh://github.com/odpi/egeria-dev-projects.git</developerConnection>
<url>https://github.com/odpi/egeria-dev-projects</url>
</scm>
<!-- Link for further information -->
<url>https://egeria-project.org/</url>
<!-- The Apache license is used for code and the creative commons license is used for documentation -->
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
<license>
<name>Creative Commons Attribution 4.0 International (CC BY 4.0)</name>
<url>https://creativecommons.org/licenses/by/4.0</url>
</license>
</licenses>
<!-- Additional metadata about the project - optional -->
<organization>
<name>LF AI & Data Foundation</name>
<url>https://lfaidata.foundation/</url>
</organization>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/odpi/egeria-dev-projects/issues</url>
</issueManagement>
<inceptionYear>2018</inceptionYear>
<mailingLists>
<mailingList>
<name>odpi-egeria</name>
<subscribe>[email protected]</subscribe>
<unsubscribe>[email protected]</unsubscribe>
<archive>https://lists.lfaidata.foundation/g/egeria-technical-discuss/topics</archive>
<post>[email protected]</post>
</mailingList>
</mailingLists>
<developers>
<developer>
<id>mandy-chessell</id>
<name>Mandy Chessell</name>
<email>[email protected]</email>
<timezone>Europe/London</timezone>
<roles>
<role>Project Leader</role>
<role>maintainer</role>
</roles>
</developer>
<developer>
<id>planetf1</id>
<name>Nigel Jones</name>
<email>[email protected]</email>
<timezone>Europe/London</timezone>
<roles>
<role>maintainer</role>
</roles>
<organization>IBM Corporation</organization>
</developer>
</developers>
<!-- POM packaging means that this artifact doesn't contain any deployable artifacts, it's just a container for others -->
<packaging>pom</packaging>
<!-- Modules (by directory name) that we need to build. Each has it's own POM and points back here as parent -->
<modules>
<module>egeria-report-utilities</module>
<module>component-id-report</module>
<module>egeria-config-utility</module>
<module>egeria-ops-utility</module>
<module>egeria-platform-report</module>
<module>event-display-audit-log-connector</module>
<module>egeria-infrastructure-catalog-connector</module>
<module>asset-deploy</module>
<module>asset-look-up</module>
<module>asset-set-up</module>
<module>database-report</module>
</modules>
<properties>
<!-- The version of EGERIA base libraries we are going to use -->
<open-metadata.version>3.14</open-metadata.version>
<!-- Level of Java -->
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<!-- Platform encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- Versions of plugins we use -->
<maven-compiler.version>3.10.1</maven-compiler.version>
<maven-dependency.version>3.3.0</maven-dependency.version>
<maven-enforcer-plugin.version>3.0.0</maven-enforcer-plugin.version>
<rat-plugin.version>0.13</rat-plugin.version>
<surefire.plugin.version>3.0.0-M6</surefire.plugin.version>
<testng.version>7.6.0</testng.version>
<assembly.plugin.version>3.3.0</assembly.plugin.version>
</properties>
<!-- This section defines constraints on the version of dependencies that we will use -->
<dependencyManagement>
<dependencies>
<!-- ============================================= -->
<!-- Local git repository dependencies -->
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>egeria-report-utilities</artifactId>
<scope>compile</scope>
<version>${project.version}</version>
</dependency>
<!-- For egeria, we IMPORT the main Egeria pom here, so we will inherit all of Egeria's constraints by default -->
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>egeria</artifactId>
<version>${open-metadata.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testng.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<!-- Should be default, but needed to keep IntelliJ happy. Very recent versions don't need this -->
<sourceDirectory>src/main/java</sourceDirectory>
<testSourceDirectory>src/test/java</testSourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
<!-- This section provides constraints on plugin versions to use. Ideally we'd want to default to the same
versions that Egeria uses. However maven cannot import plugin constraints - only via parent - so we
have to be explicit here. Take care to keep this updated -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${assembly.plugin.version}</version>
</plugin>
<!-- Dependency stack for testing used in some modules -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.plugin.version}</version>
<!-- <configuration>-->
<!-- <forkCount>3</forkCount>-->
<!-- <reuseForks>true</reuseForks>-->
<!-- <!–suppress UnresolvedMavenProperty –>-->
<!-- <argLine>-Xmx1024m ${argLine}</argLine>-->
<!-- <systemPropertyVariables>-->
<!-- <org.slf4j.simpleLogger.defaultLogLevel>INFO</org.slf4j.simpleLogger.defaultLogLevel>-->
<!-- </systemPropertyVariables>-->
<!-- </configuration>-->
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
<!-- Default compiler options - enable additional lint checks -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgument>-Xlint:all</compilerArgument>
<failOnWarning>false</failOnWarning>
</configuration>
</plugin>
<!-- Use surefire for unit tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-assembly-plugin</artifactId>-->
<!-- </plugin>-->
<!-- Validates maven & java versions & also reports version in ouytput log-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>display-info</id>
<goals>
<goal>display-info</goal>
</goals>
<phase>validate</phase>
</execution>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[3.5.0,)</version>
<message>** MAVEN VERSION ERROR ** Maven 3.5.0 or above is required. See
https://maven.apache.org/install.html
</message>
</requireMavenVersion>
<requireJavaVersion>
<level>ERROR</level>
<version>[11,)</version>
<message>** JAVA VERSION ERROR ** Java 11 or above is required.
</message>
</requireJavaVersion>
<banDuplicatePomDependencyVersions/>
<requireSameVersions/>
<reactorModuleConvergence/>
<requireUpperBoundDeps>
<excludes>
<!-- Required as the ui chassis pulls in dependencies using older, but later versioned beta code -->
<exclude>org.slf4j:slf4j-api</exclude>
</excludes>
</requireUpperBoundDeps>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!-- RAT checks that all of our files contain one of the licenses we use -->
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<useDefaultExcludes>true</useDefaultExcludes>
<useMavenDefaultExcludes>true</useMavenDefaultExcludes>
<useIdeaDefaultExcludes>true</useIdeaDefaultExcludes>
<useEclipseDefaultExcludes>true</useEclipseDefaultExcludes>
<excludeSubProjects>true</excludeSubProjects>
<excludes>
<exclude>**/target/**</exclude>
<exclude>**/.vscode*/**</exclude>
<exclude>**/**.code-workspace</exclude>
<exclude>gradle/wrapper/**</exclude>
</excludes>
<licenseFamilies>
<licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily">
<familyName>SPDX-License-Identifier: Apache-2.0</familyName>
</licenseFamily>
<licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily">
<familyName>SPDX-License-Identifier: CC-BY-4.0</familyName>
</licenseFamily>
</licenseFamilies>
<licenses>
<license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
<licenseFamilyCategory>SPDX</licenseFamilyCategory>
<licenseFamilyName>SPDX-License-Identifier: Apache-2.0</licenseFamilyName>
<notes></notes>
<patterns>
<pattern>SPDX-License-Identifier: Apache-2.0</pattern>
</patterns>
</license>
<license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
<licenseFamilyCategory>SPDX</licenseFamilyCategory>
<licenseFamilyName>SPDX-License-Identifier: CC-BY-4.0</licenseFamilyName>
<notes></notes>
<patterns>
<pattern>SPDX-License-Identifier: CC-BY-4.0</pattern>
</patterns>
</license>
<license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
<patterns>
<pattern>Copyright Contributors to the ODPi Egeria project.</pattern>
</patterns>
</license>
</licenses>
</configuration>
<executions>
<execution>
<id>rat-check</id>
<goals>
<goal>check</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
<!-- Check no unnecessary or missing dependencies, and that we use consistent versions -->
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<goals>
<goal>analyze-only</goal>
</goals>
<configuration>
<failOnWarning>true</failOnWarning>
<outputXML>true</outputXML>
<ignoredUnusedDeclaredDependencies>
<!-- Always exclude logback as where used it is a runtime only dependency -->
<ignoredUnusedDeclaredDependency>ch.qos.logback:logback-classic</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
</configuration>
</execution>
<execution>
<id>depmgmt</id>
<goals>
<goal>analyze-dep-mgt</goal>
</goals>
<configuration>
<failBuild>true</failBuild>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>