This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom.xml
367 lines (341 loc) · 15 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
<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>life.genny</groupId>
<artifactId>media-proxy</artifactId>
<version>9.13.1</version>
<name>media-proxy</name>
<properties>
<vertx.version>3.5.1</vertx.version>
<minio.version>8.4.3</minio.version>
<genny-verticle.version>${project.version}</genny-verticle.version>
</properties>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<distribution>repo</distribution>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
</license>
</licenses>
<dependencies>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.18.0</version>
</dependency>
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>${minio.version}</version>
</dependency>
<dependency>
<groupId>life.genny</groupId>
<artifactId>genny-verticle-rules</artifactId>
<version>${genny-verticle.version}</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-config-yaml</artifactId>
<version>${vertx.version}</version>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-config</artifactId>
<version>${vertx.version}</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.13.4.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.13.4</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.13.4</version>
</dependency>
<dependency>
<groupId>ws.schild</groupId>
<artifactId>jave-all-deps</artifactId>
<version>3.3.1</version>
</dependency>
<!-- <dependency> <groupId>io.vertx</groupId> <artifactId>vertx-auth-jwt</artifactId>
<version>${vertx.version}</version> </dependency> <dependency> <groupId>io.vertx</groupId>
<artifactId>vertx-auth-oauth2</artifactId> <version>${vertx.version}</version>
</dependency> https://mvnrepository.com/artifact/org.keycloak/keycloak-core
<dependency> <groupId>org.keycloak</groupId> <artifactId>keycloak-core</artifactId>
<version>4.4.0.Final</version> </dependency> <dependency> <groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId> <version>${vertx.version}</version> </dependency>
<dependency> <groupId>io.vertx</groupId> <artifactId>vertx-web</artifactId>
<version>${vertx.version}</version> </dependency> <dependency> <groupId>io.vertx</groupId>
<artifactId>vertx-rx-java</artifactId> <version>${vertx.version}</version>
</dependency> <dependency> <groupId>io.vertx</groupId> <artifactId>vertx-auth-oauth2</artifactId>
<version>${vertx.version}</version> </dependency> -->
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>package</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<excludeScope>system</excludeScope>
<excludes>META-INF/*.SF</excludes>
<excludes>META-INF/*.DSA</excludes>
<excludes>META-INF/*.RSA</excludes>
<excludeGroupIds>junit,org.mockito,org.hamcrest</excludeGroupIds>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>2.2.3</version>
<executions>
<execution>
<id>git-info</id>
<goals>
<goal>revision</goal>
</goals>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>target/classes/${project.name}-git.properties</generateGitPropertiesFilename>
<!-- If you'd like to tell the plugin where your .git directory is,
use this setting, otherwise we'll perform a search trying to figure out the
right directory. It's better to add it explicite IMHO. -->
<dotGitDirectory>${project.basedir}.git</dotGitDirectory>
<!-- that's the default value, you don't have to set it -->
<prefix>git</prefix>
<!-- that's the default value -->
<dateFormat>yyyy.MM.dd '@' HH:mm:ss z</dateFormat>
<!-- @since 2.2.0 -->
<!-- If you want to set the timezone of the dateformat to anything
in particular you can do this by using this option. As a general warning
try to avoid three-letter time zone IDs because the same abbreviation are
often used for multiple time zones. The default value we'll use the timezone
use the timezone that's shipped with java (java.util.TimeZone.getDefault().getID()).
*Note*: If you plan to set the java's timezone by using `MAVEN_OPTS=-Duser.timezone=UTC
mvn clean package`, `mvn clean package -Duser.timezone=UTC` or any other
configuration keep in mind that this option will override those settings
and will not take other configurations into account! -->
<dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>
<!-- false is default here, it prints some more information during
the build -->
<verbose>false</verbose>
<!-- ALTERNATE SETUP - GENERATE FILE -->
<!-- If you want to keep git information, even in your WAR file etc,
use this mode, which will generate a properties file (with filled out values)
which you can then normally read using new Properties().load(/**/) -->
<!-- this is false by default, forces the plugin to generate the git.properties
file -->
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<!-- The path for the to be generated properties file, it's relative
to ${project.basedir} -->
<generateGitPropertiesFilename>src/main/resources/${project.name}-git.properties</generateGitPropertiesFilename>
<!-- Denotes the format to save properties in. Valid options are "properties"
(default) and "json". Properties will be saved to the generateGitPropertiesFilename
if generateGitPropertiesFile is set to `true`. -->
<format>properties</format>
<!-- this is true by default; You may want to set this to false, if
the plugin should run inside a <packaging>pom</packaging> project. Most projects
won't need to override this property. For an use-case for this kind of behaviour
see: https://github.com/ktoso/maven-git-commit-id-plugin/issues/21 -->
<skipPoms>true</skipPoms>
<!-- @since 2.1.4 -->
<!-- Tell maven-git-commit-id to inject the git properties into all
reactor projects not just the current one. For details about why you might
want to skip this, read this issue: https://github.com/ktoso/maven-git-commit-id-plugin/pull/65
The property is set to ``false`` by default to prevent the overriding of
properties that may be unrelated to the project. -->
<injectAllReactorProjects>false</injectAllReactorProjects>
<!-- @since 2.0.4 -->
<!-- true by default, controls whether the plugin will fail when no
.git directory is found, when set to false the plugin will just skip execution -->
<failOnNoGitDirectory>true</failOnNoGitDirectory>
<!-- @since 2.1.5 -->
<!-- true by default, controls whether the plugin will fail if it
was unable to obtain enough data for a complete run, if you don't care about
this, you may want to set this value to false. -->
<failOnUnableToExtractRepoInfo>true</failOnUnableToExtractRepoInfo>
<!-- @since 2.1.8 -->
<!-- skip the plugin execution completely. This is useful for e.g.
profile activated plugin invocations or to use properties to enable / disable
pom features. Default value is 'false'. -->
<skip>false</skip>
<!-- @since 2.1.12 -->
<!-- Use with caution! In a multi-module build, only run once. This
means that the plugins effects will only execute once, for the parent project.
This probably won't "do the right thing" if your project has more than one
git repository. Important: If you're using `generateGitPropertiesFile`, setting
`runOnlyOnce` will make the plugin only generate the file in the directory
where you started your build (!). The `git.*` maven properties are available
in all modules. Default value is `false`. -->
<runOnlyOnce>false</runOnlyOnce>
<!-- @since 2.1.9 -->
<!-- Can be used to exclude certain properties from being emited into
the resulting file. May be useful when you want to hide {@code git.remote.origin.url}
(maybe because it contains your repo password?), or the email of the committer
etc. Each value may be globbing, that is, you can write {@code git.commit.user.*}
to exclude both, the {@code name}, as well as {@code email} properties from
being emitted into the resulting files. Please note that the strings here
are Java regexes ({@code .*} is globbing, not plain {@code *}). -->
<excludeProperties>
<!-- <excludeProperty>git.user.*</excludeProperty> -->
</excludeProperties>
<!-- @since 2.1.14 -->
<!-- Can be used to include only certain properties into the resulting
file. Will be overruled by the exclude properties. Each value may be globbing,
that is, you can write {@code git.commit.user.*} to include both, the {@code
name}, as well as {@code email} properties into the resulting files. Please
note that the strings here are Java regexes ({@code .*} is globbing, not
plain {@code *}). -->
<includeOnlyProperties>
<!-- <includeOnlyProperty>^git.commit.id.full$</includeOnlyProperty> -->
</includeOnlyProperties>
<!-- @since 2.1.10 -->
<!-- false is default here, if set to true it uses native `git` excutable
for extracting all data. This usually has better performance than the default
(jgit) implemenation, but requires you to have git available as executable
for the build as well as *might break unexpectedly* when you upgrade your
system-wide git installation. As rule of thumb - stay on `jgit` (keep this
`false`) until you notice performance problems. -->
<useNativeGit>false</useNativeGit>
<!-- @since v2.0.4 -->
<!-- Controls the length of the abbreviated git commit it (git.commit.id.abbrev)
Defaults to `7`. `0` carries the special meaning. Maximum value is `40`,
because of max SHA-1 length. -->
<abbrevLength>7</abbrevLength>
<!-- @since 2.1.0 -->
<!-- read up about git-describe on the in man, or it's homepage -
it's a really powerful versioning helper and the recommended way to use git-commit-id-plugin.
The configuration bellow is optional, by default describe will run "just
like git-describe on the command line", even though it's a JGit reimplementation. -->
<gitDescribe>
<!-- don't generate the describe property -->
<skip>false</skip>
<!-- if no tag was found "near" this commit, just print the commit's
id instead, helpful when you always expect this field to be not-empty -->
<always>false</always>
<!-- how many chars should be displayed as the commit object id?
7 is git's default, 0 has a special meaning (see end of this README.md),
and 40 is the maximum value here -->
<abbrev>7</abbrev>
<!-- when the build is triggered while the repo is in "dirty state",
append this suffix -->
<dirty>-dirty</dirty>
<!-- Only consider tags matching the given pattern. This can be used
to avoid leaking private tags from the repository. -->
<match>*</match>
<!-- always print using the "tag-commits_from_tag-g_commit_id-maybe_dirty"
format, even if "on" a tag. The distance will always be 0 if you're "on"
the tag. -->
<forceLongFormat>false</forceLongFormat>
</gitDescribe>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>io.vertx.core.Starter</Main-Class>
<Main-Verticle>life.genny.MediaVerticle</Main-Verticle>
</manifestEntries>
</transformer>
</transformers>
<artifactSet />
<outputFile>${project.build.directory}/${project.artifactId}-fat.jar</outputFile>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>