-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpom.xml
More file actions
373 lines (342 loc) · 14.7 KB
/
Copy pathpom.xml
File metadata and controls
373 lines (342 loc) · 14.7 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
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
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.monetdb</groupId>
<artifactId>monetdb-jdbc</artifactId>
<version>12.3-SNAPSHOT</version>
<name>MonetDB JDBC Driver</name>
<description>JDBC Driver for MonetDB, a fast relational database for analytics</description>
<url>https://www.monetdb.org</url>
<licenses>
<license>
<name>Mozilla Public License, Version 2.0</name>
<url>https://www.mozilla.org/MPL/2.0/</url>
</license>
</licenses>
<developers>
<developer>
<name>Sjoerd Mullender</name>
<email>sjoerd@monetdb.org</email>
<organization>MonetDB</organization>
<organizationUrl>https://www.monetdb.org</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:hg:https://dev.monetdb.org/hg/monetdb-java/</connection>
<developerConnection>scm:hg:ssh://hg@dev.monetdb.org/monetdb-java/</developerConnection>
<url>https://dev.monetdb.org/hg/monetdb-java/</url>
</scm>
<properties>
<!-- to be filled in from the command line -->
<signing-key>Please run with -Dsigning-key=...</signing-key>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<build-timestamp>${maven.build.timestamp}</build-timestamp>
<maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
</properties>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.14.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.github.java-diff-utils</groupId>
<artifactId>java-diff-utils</artifactId>
<version>4.17</version>
<scope>test</scope>
</dependency>
<!-- used by JunitTester (our Mtest compatible Junit runner) -->
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.14.4</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<!-- Insert version number in MonetDriver.properties -->
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<!-- Enforce minimum Maven version -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.6.3</version>
<executions>
<execution>
<id>enforce-maven-version</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.9.10</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!-- Configure the jar builder plugin
1. to set the main class to JdbcClient
2. to create a tests jar
Later on, the assembly plugin will create a 'fat' tests jar that also contains
all dependencies
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.1</version>
<configuration>
<archive>
<manifest>
<mainClass>org.monetdb.client.JdbcClient</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-test-jar</id>
<goals>
<goal>test-jar</goal>
</goals>
<configuration>
<excludes>
<exclude>SQLcopyinto.class</exclude>
<exclude>Test_C*.class</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<!-- Let the assembly plugin create a tests jar with dependencies -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<!-- <finalName>jdbctests</finalName> -->
<!-- <appendAssemblyId>false</appendAssemblyId> -->
<descriptors>
<descriptor>src/test/assembly/test-jar-with-deps.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-tests-jar-with-deps</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- parse the version number in preparation of the copy-jdbc-jar action below -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.6.1</version>
<executions>
<execution>
<id>parse-version-number</id>
<goals>
<goal>parse-version</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Copy files to jars/ with names backward compatible with Mtest.py -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.7.0</version>
<executions>
<execution>
<id>copy-jdbc-jar</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<!-- main jar -->
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>${project.packaging}</type>
<destFileName>monetdb-jdbc-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.jre8.jar</destFileName>
</artifactItem>
<!-- jdbcclient -->
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>${project.packaging}</type>
<destFileName>jdbcclient.jre8.jar</destFileName>
</artifactItem>
<!-- tests jar -->
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>${project.packaging}</type>
<classifier>test-jar-with-deps</classifier>
<destFileName>jdbctests.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
<configuration>
<outputDirectory>${project.basedir}/jars</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.4.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.12.0</version>
<executions>
<execution>
<id>attach-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<author>false</author>
<doclint>none</doclint>
<windowtitle>MonetDB Java APIs</windowtitle>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.4</version>
<configuration>
<!-- set this explicitly because JDBC_API_Tester does not match the default patterns -->
<includes>
<include>JDBC_API_Tester.java</include>
<include>**/Test*.java</include>
<include>**/*Test.java</include>
<include>**/*Tests.java</include>
<include>**/*TestCase.java</include>
</includes>
</configuration>
</plugin>
<!-- Sign the jar files before uploading.
This plugin and the uploading plugin below both run in phase 'deploy'.
Signing must come first.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifact</id>
<phase>deploy</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<useAgent>true</useAgent>
<keyname>${signing-key}</keyname>
</configuration>
</plugin>
<!-- Upload to Maven Central via Sonatype.
This plugin and the signing plugin above both run in phase 'deploy'.
Signing must come first.
-->
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.11.0</version>
<extensions>true</extensions>
<executions>
<execution>
<id>upload-to-maven-central</id>
<phase>deploy</phase>
</execution>
</executions>
<configuration>
<!-- the credentials are in settings.xml -->
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.3.1</version>
<executions></executions>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
<arguments>-DskipTests -Dsigning-key="${signing-key}"</arguments>
<!-- only record changes and tags locally, do not push -->
<pushChanges>false</pushChanges>
<localCheckout>true</localCheckout>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<!-- the 'quick' profile inhibits javadoc, sources and slow tests -->
<profile>
<id>quick</id>
<build>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadoc</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<groups>!slow</groups>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>