blob: 4d9dfed2e3ebd11370164cd19e06d46deb2a7383 [file] [log] [blame]
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +01001<?xml version="1.0"?>
2<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
5 <modelVersion>4.0.0</modelVersion>
6
7 <groupId>eu.mulk</groupId>
8 <artifactId>mulkcms2</artifactId>
9 <version>0.1.0-SNAPSHOT</version>
10
11 <properties>
12 <maven.compiler.parameters>true</maven.compiler.parameters>
13 <maven.compiler.source>11</maven.compiler.source>
14 <maven.compiler.target>11</maven.compiler.target>
15
16 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
18
Matthias Andreas Benkard7f4dacc2020-04-13 11:25:19 +020019 <antrun-plugin.version>1.8</antrun-plugin.version>
Matthias Andreas Benkard55243c82020-04-13 20:49:15 +020020 <compiler-plugin.version>3.8.1</compiler-plugin.version>
21 <docker-plugin.version>0.33.0</docker-plugin.version>
22 <quarkus-plugin.version>1.3.1.Final</quarkus-plugin.version>
23 <spotless-plugin.version>1.30.0</spotless-plugin.version>
24 <surefire-plugin.version>3.0.0-M4</surefire-plugin.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010025
Matthias Andreas Benkard2710bf32020-01-25 10:48:07 +010026 <!-- <quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id> -->
27 <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010028 <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
Matthias Andreas Benkard699e9ab2020-04-10 15:52:54 +020029 <quarkus.platform.version>1.3.1.Final</quarkus.platform.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010030
31 <findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
Matthias Andreas Benkard699e9ab2020-04-10 15:52:54 +020032 <flexmark.version>0.61.2</flexmark.version>
33 <hibernate-types.version>2.9.8</hibernate-types.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010034 <jakarta-jacc-api.version>1.6.1</jakarta-jacc-api.version>
35 <jna.version>5.5.0</jna.version>
Matthias Andreas Benkard551f50c2020-03-15 12:34:07 +010036 <jsoup.version>1.13.1</jsoup.version>
Matthias Andreas Benkard06849562020-02-14 20:13:17 +010037 <mapstruct.version>1.3.1.Final</mapstruct.version>
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +010038 <rome.version>1.12.2</rome.version>
Matthias Andreas Benkard551f50c2020-03-15 12:34:07 +010039 <testcontainers.version>1.13.0</testcontainers.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010040 </properties>
41
42 <dependencyManagement>
43 <dependencies>
44
45 <dependency>
46 <groupId>${quarkus.platform.group-id}</groupId>
47 <artifactId>${quarkus.platform.artifact-id}</artifactId>
48 <version>${quarkus.platform.version}</version>
49 <type>pom</type>
50 <scope>import</scope>
51 </dependency>
52
53 <!-- Hibernate PostgreSQL Extra Types -->
54 <dependency>
55 <groupId>com.vladmihalcea</groupId>
56 <artifactId>hibernate-types-52</artifactId>
57 <version>${hibernate-types.version}</version>
58 </dependency>
59
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +010060 <!-- Jsoup -->
61 <dependency>
62 <groupId>org.jsoup</groupId>
63 <artifactId>jsoup</artifactId>
64 <version>${jsoup.version}</version>
65 </dependency>
66
Matthias Andreas Benkard424e16e2020-02-09 18:29:56 +010067 <!-- FlexMark -->
68 <dependency>
69 <groupId>com.vladsch.flexmark</groupId>
70 <artifactId>flexmark-all</artifactId>
71 <version>${flexmark.version}</version>
72 </dependency>
73
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +010074 <!-- Rome -->
75 <dependency>
76 <groupId>com.rometools</groupId>
77 <artifactId>rome</artifactId>
78 <version>${rome.version}</version>
79 </dependency>
80
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010081 <!-- JNA -->
82 <dependency>
83 <groupId>net.java.dev.jna</groupId>
84 <artifactId>jna</artifactId>
85 <version>${jna.version}</version>
86 </dependency>
87
88 <!-- JACC -->
89 <dependency>
90 <groupId>jakarta.security.jacc</groupId>
91 <artifactId>jakarta.security.jacc-api</artifactId>
92 <version>${jakarta-jacc-api.version}</version>
93 </dependency>
94
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +010095 <!-- JOSE for Java -->
96 <dependency>
97 <groupId>org.bitbucket.b_c</groupId>
98 <artifactId>jose4j</artifactId>
99 <version>0.7.0</version>
100 </dependency>
101
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100102 <!-- MapStruct -->
103 <dependency>
104 <groupId>org.mapstruct</groupId>
105 <artifactId>mapstruct</artifactId>
106 <version>${mapstruct.version}</version>
107 </dependency>
108 <dependency>
109 <groupId>org.mapstruct</groupId>
110 <artifactId>mapstruct-processor</artifactId>
111 <version>${mapstruct.version}</version>
112 <scope>provided</scope>
113 </dependency>
114
115 <!-- Annotations -->
116 <dependency>
117 <groupId>com.google.code.findbugs</groupId>
118 <artifactId>jsr305</artifactId>
119 <version>${findbugs-jsr305.version}</version>
120 <scope>provided</scope>
121 </dependency>
122
123 <!-- Testing -->
124 <dependency>
125 <groupId>org.testcontainers</groupId>
126 <artifactId>testcontainers</artifactId>
127 <version>${testcontainers.version}</version>
128 <scope>test</scope>
129 </dependency>
130 <dependency>
131 <groupId>org.testcontainers</groupId>
132 <artifactId>postgresql</artifactId>
133 <version>${testcontainers.version}</version>
134 <scope>test</scope>
135 </dependency>
136
137 </dependencies>
138 </dependencyManagement>
139
140 <dependencies>
141
142 <dependency>
143 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100144 <artifactId>quarkus-agroal</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100145 </dependency>
146 <dependency>
147 <groupId>io.quarkus</groupId>
Matthias Andreas Benkardc27d1cb2020-01-26 11:11:24 +0100148 <artifactId>quarkus-elytron-security-properties-file</artifactId>
149 </dependency>
150 <dependency>
151 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100152 <artifactId>quarkus-flyway</artifactId>
153 </dependency>
154 <dependency>
155 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100156 <artifactId>quarkus-hibernate-orm-panache</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100157 </dependency>
158 <dependency>
159 <groupId>io.quarkus</groupId>
160 <artifactId>quarkus-hibernate-validator</artifactId>
161 </dependency>
162 <dependency>
163 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100164 <artifactId>quarkus-jdbc-postgresql</artifactId>
165 </dependency>
Matthias Andreas Benkard84db3792020-03-15 12:48:29 +0100166 <!--
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100167 <dependency>
168 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100169 <artifactId>quarkus-kubernetes</artifactId>
170 </dependency>
Matthias Andreas Benkard84db3792020-03-15 12:48:29 +0100171 -->
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100172 <dependency>
173 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100174 <artifactId>quarkus-mailer</artifactId>
175 </dependency>
176 <dependency>
177 <groupId>io.quarkus</groupId>
178 <artifactId>quarkus-oidc</artifactId>
179 </dependency>
180 <dependency>
181 <groupId>io.quarkus</groupId>
182 <artifactId>quarkus-resteasy</artifactId>
183 </dependency>
184 <dependency>
185 <groupId>io.quarkus</groupId>
186 <artifactId>quarkus-resteasy-jsonb</artifactId>
187 </dependency>
188 <dependency>
189 <groupId>io.quarkus</groupId>
190 <artifactId>quarkus-resteasy-qute</artifactId>
191 </dependency>
192 <dependency>
193 <groupId>io.quarkus</groupId>
194 <artifactId>quarkus-scheduler</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100195 </dependency>
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100196 <dependency>
197 <groupId>io.quarkus</groupId>
198 <artifactId>quarkus-smallrye-jwt</artifactId>
199 </dependency>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100200
201 <!-- JNA -->
202 <dependency>
203 <groupId>net.java.dev.jna</groupId>
204 <artifactId>jna</artifactId>
205 </dependency>
206
207 <!-- JACC -->
208 <dependency>
209 <groupId>jakarta.security.jacc</groupId>
210 <artifactId>jakarta.security.jacc-api</artifactId>
211 </dependency>
212
213 <!-- Hibernate PostgreSQL Extra Types -->
214 <dependency>
215 <groupId>com.vladmihalcea</groupId>
216 <artifactId>hibernate-types-52</artifactId>
217 </dependency>
218
Matthias Andreas Benkard404ac1d2020-02-22 11:29:37 +0100219 <!-- Hibernate -->
220 <dependency>
221 <groupId>org.hibernate</groupId>
222 <artifactId>hibernate-jpamodelgen</artifactId>
223 </dependency>
224
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +0100225 <!-- Jsoup -->
226 <dependency>
227 <groupId>org.jsoup</groupId>
228 <artifactId>jsoup</artifactId>
229 </dependency>
230
Matthias Andreas Benkard424e16e2020-02-09 18:29:56 +0100231 <!-- FlexMark -->
232 <dependency>
233 <groupId>com.vladsch.flexmark</groupId>
234 <artifactId>flexmark-all</artifactId>
235 </dependency>
236
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +0100237 <!-- Rome -->
238 <dependency>
239 <groupId>com.rometools</groupId>
240 <artifactId>rome</artifactId>
241 </dependency>
242
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100243 <!-- JOSE for Java -->
244 <dependency>
245 <groupId>org.bitbucket.b_c</groupId>
246 <artifactId>jose4j</artifactId>
247 </dependency>
248
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100249 <!-- MapStruct -->
250 <dependency>
251 <groupId>org.mapstruct</groupId>
252 <artifactId>mapstruct</artifactId>
253 </dependency>
254 <dependency>
255 <groupId>org.mapstruct</groupId>
256 <artifactId>mapstruct-processor</artifactId>
257 <scope>provided</scope>
258 </dependency>
259
260 <!-- Annotations -->
261 <dependency>
262 <groupId>com.google.code.findbugs</groupId>
263 <artifactId>jsr305</artifactId>
264 <scope>provided</scope>
265 </dependency>
266
267 <!-- Testing -->
268 <dependency>
269 <groupId>io.quarkus</groupId>
270 <artifactId>quarkus-junit5</artifactId>
271 <scope>test</scope>
272 </dependency>
273 <dependency>
274 <groupId>io.rest-assured</groupId>
275 <artifactId>rest-assured</artifactId>
276 <scope>test</scope>
277 </dependency>
278 <dependency>
279 <groupId>org.testcontainers</groupId>
280 <artifactId>junit-jupiter</artifactId>
281 <scope>test</scope>
282 </dependency>
283 <dependency>
284 <groupId>org.testcontainers</groupId>
285 <artifactId>testcontainers</artifactId>
286 <scope>test</scope>
287 </dependency>
288 <dependency>
289 <groupId>org.testcontainers</groupId>
290 <artifactId>postgresql</artifactId>
291 <scope>test</scope>
292 </dependency>
293
294 </dependencies>
295
296 <build>
297
298 <plugins>
299
300 <plugin>
301 <groupId>io.quarkus</groupId>
302 <artifactId>quarkus-maven-plugin</artifactId>
303 <version>${quarkus-plugin.version}</version>
304 <executions>
305 <execution>
306 <goals>
307 <goal>build</goal>
308 </goals>
309 </execution>
310 </executions>
311 </plugin>
312
313 <plugin>
314 <artifactId>maven-compiler-plugin</artifactId>
315 <version>${compiler-plugin.version}</version>
316 </plugin>
317
318 <plugin>
319 <artifactId>maven-surefire-plugin</artifactId>
320 <version>${surefire-plugin.version}</version>
321 <configuration>
322 <systemProperties>
323 <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
324 <compilerArgs>
325 <compilerArg>-Amapstruct.defaultComponentModel=cdi</compilerArg>
326 </compilerArgs>
327 </systemProperties>
328 </configuration>
329 </plugin>
330
331 <!-- Google Java Code Formatter, for enforcing style conventions -->
332 <plugin>
333 <groupId>com.diffplug.spotless</groupId>
334 <artifactId>spotless-maven-plugin</artifactId>
335 <version>${spotless-plugin.version}</version>
336 <configuration>
337 <java>
338 <removeUnusedImports/>
339 <importOrder>
340 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
341 </importOrder>
342 <googleJavaFormat>
343 <version>${google.java.format.version}</version>
344 <style>GOOGLE</style>
345 </googleJavaFormat>
346 </java>
347 </configuration>
348 </plugin>
Matthias Andreas Benkardf7bf7c42020-01-28 22:31:12 +0100349
350 <plugin>
Matthias Andreas Benkard55243c82020-04-13 20:49:15 +0200351 <groupId>io.fabric8</groupId>
352 <artifactId>docker-maven-plugin</artifactId>
353 <version>${docker-plugin.version}</version>
354
355 <configuration>
356 <images>
357 <image>
358 <name>docker.benkard.de/mulk/mulkcms2</name>
359 <alias>master</alias>
360 <build>
361 <contextDir>${project.basedir}</contextDir>
362 <dockerFile>${project.basedir}/src/main/docker/Dockerfile.jvm</dockerFile>
363 <tags>
364 <tag>latest</tag>
365 <tag>${project.version}</tag>
366 </tags>
367 </build>
368 </image>
369 </images>
370 </configuration>
371
Matthias Andreas Benkardf7bf7c42020-01-28 22:31:12 +0100372 <executions>
373 <execution>
Matthias Andreas Benkard55243c82020-04-13 20:49:15 +0200374 <id>build</id>
375 <phase>install</phase>
Matthias Andreas Benkardf7bf7c42020-01-28 22:31:12 +0100376 <goals>
377 <goal>build</goal>
Matthias Andreas Benkard55243c82020-04-13 20:49:15 +0200378 </goals>
379 </execution>
380
381 <execution>
382 <id>deploy</id>
383 <phase>deploy</phase>
384 <goals>
Matthias Andreas Benkardf7bf7c42020-01-28 22:31:12 +0100385 <goal>push</goal>
386 </goals>
387 </execution>
388 </executions>
Matthias Andreas Benkardf7bf7c42020-01-28 22:31:12 +0100389 </plugin>
390
Matthias Andreas Benkard7f4dacc2020-04-13 11:25:19 +0200391 <plugin>
392 <artifactId>maven-antrun-plugin</artifactId>
393 <version>${antrun-plugin.version}</version>
394 <executions>
395 <execution>
396 <phase>generate-resources</phase>
397 <configuration>
398 <target>
399 <ant target="web.resources" />
400 </target>
401 </configuration>
402 <goals>
403 <goal>run</goal>
404 </goals>
405 </execution>
406 </executions>
407 </plugin>
408
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100409 </plugins>
410
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100411 <resources>
412 <resource>
413 <directory>src/main/resources</directory>
414 <excludes>
415 <exclude>META-INF/resources/node_modules/**/*</exclude>
Matthias Andreas Benkard97130f92020-01-27 21:03:39 +0100416 <exclude>META-INF/resources/package.json</exclude>
417 <exclude>META-INF/resources/yarn.lock</exclude>
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100418 </excludes>
419 <filtering>false</filtering>
420 </resource>
421 </resources>
422
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100423 </build>
424
425 <profiles>
426
427 <profile>
428
429 <id>native</id>
430
431 <activation>
432 <property>
433 <name>native</name>
434 </property>
435 </activation>
436
437 <build>
438 <plugins>
439 <plugin>
440 <artifactId>maven-failsafe-plugin</artifactId>
441 <version>${surefire-plugin.version}</version>
442 <executions>
443 <execution>
444 <goals>
445 <goal>integration-test</goal>
446 <goal>verify</goal>
447 </goals>
448 <configuration>
449 <systemProperties>
450 <native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
451 </systemProperties>
452 </configuration>
453 </execution>
454 </executions>
455 </plugin>
456 </plugins>
457 </build>
458
459 <properties>
460 <quarkus.package.type>native</quarkus.package.type>
461 </properties>
462
463 </profile>
464
465 </profiles>
466
467</project>