-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
504 lines (459 loc) · 18.9 KB
/
pom.xml
File metadata and controls
504 lines (459 loc) · 18.9 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
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
<?xml version="1.0" encoding="UTF-8"?>
<!--
_____ __ __ ______ _
/ ___// /_ ___ / /________ ____ / ____/__ ______________ ______(_)
\__ \/ __ \/ _ \/ / ___/ __ \/ __ \ / /_ / _ \/ ___/ ___/ __ `/ ___/ /
___/ / / / / __/ (__ ) /_/ / / / / / __/ / __/ / / / / /_/ / / / /
/____/_/ /_/\___/_/____/\____/_/ /_/ /_/ \___/_/ /_/ \__,_/_/ /_/
Currency Conversion API - POM.xml
This file configures the Maven project for the Currency Conversion API application.
Includes:
- Dependency definitions for various libraries and frameworks such as Apache Camel, Spring Boot,
and Hibernate.
- Plugins for building, testing, and documenting the project.
- Build profiles for different environments and use cases.
- Project properties including Java version and encoding settings.
Manages:
- Spring Boot dependencies for web and data access.
- Testing tools including JUnit, Mockito, and AssertJ.
- Validation using Hibernate Validator.
- JSON handling with Jackson and other libraries.
Configures:
- Plugins for code style checking (Checkstyle) to ensure consistent code quality.
- Rule enforcement using the Maven Enforcer Plugin.
- Javadoc generation for creating project documentation.
-->
<!-- Maven project definition -->
<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">
<!-- POM model version -->
<modelVersion>4.0.0</modelVersion>
<!-- Project identification -->
<groupId>com.shelson</groupId> <!-- Project group -->
<artifactId>java_base</artifactId> <!-- Artifact identifier -->
<version>${PROJECT_VERSION}</version>
<!-- Project version -->
<packaging>jar</packaging>
<!-- Packaging type -->
<!-- Additional project information -->
<name>java_base</name> <!-- Project name -->
<description>Project for Currency Conversion API</description> <!-- Project description -->
<url>https://github.com/33mestre/java_base</url> <!-- Project URL -->
<!-- Parent project definition -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.2</version> <!-- Spring Boot version -->
<relativePath /> <!-- Relative path to parent project -->
</parent>
<!-- Project properties -->
<properties>
<!-- Defining a single property for the Java version -->
<java.version>17</java.version>
<!-- Using java.version property to define compile and run versions -->
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<!-- Other general project properties -->
<project.phase>Development</project.phase>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<!-- Project dependencies -->
<dependencies>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>layout</artifactId>
<version>7.1.1</version>
</dependency>
<!-- Thanks for using https://jar-download.com -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.30</version>
</dependency>
<!-- apache commons -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.15.0</version>
</dependency>
<!-- Apache Camel dependencies para testes -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test-spring-junit5</artifactId>
<version>4.0.2</version>
<scope>test</scope>
</dependency>
<!-- Dependência do WireMock para simular respostas de API -->
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<version>2.31.0</version>
<scope>test</scope>
</dependency>
<!-- Apache Camel dependencies -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-http</artifactId>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-spring-boot-starter</artifactId>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-servlet-starter</artifactId>
<version>4.0.2</version>
</dependency>
<!-- Springdoc dependencies -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.3.0</version>
</dependency>
<!-- Spring Boot dependencies -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- H2 database dependency -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>2.1.214</version>
</dependency>
<!-- OpenAPI documentation dependency -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.8.0</version>
</dependency>
<!-- Spring Boot testing dependency -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Spring Security -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<!-- Testing dependencies -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<!-- Hibernate Validator -->
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
</dependency>
<!-- JSON handling dependency -->
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20231013</version>
</dependency>
<!-- FlatLaf (Look and Feel) dependency -->
<dependency>
<groupId>com.formdev</groupId>
<artifactId>flatlaf</artifactId>
<version>2.1</version>
</dependency>
<!-- JAXB dependencies -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.1</version>
</dependency>
<!-- Swagger dependencies -->
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.21</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
<version>1.5.21</version>
</dependency>
</dependencies>
<!-- Build configuration -->
<build>
<plugins>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>1.9.20</version>
<configuration>
<outputDir>${project.basedir}/docs/site</outputDir>
<dokkaPlugins>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>gfm-plugin</artifactId>
<version>1.9.20</version>
</plugin>
</dokkaPlugins>
</configuration>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>dokka</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.kongchen</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>3.1.8</version>
<configuration>
<apiSources>
<apiSource>
<springmvc>true</springmvc>
<locations>com.shelson.application</locations>
<schemes>http,https</schemes>
<host>localhost:8080</host>
<basePath>/api-doc</basePath>
<info>
<title>Currency Conversion API</title>
<version>v1</version>
<description>API for converting currency rates</description>
<contact>
<email>shelson@gmail.com</email>
<name>Shelson Ferrari</name>
<url>https://about.me/shelson</url>
</contact>
<license>
<url>https://github.com/33mestre/java_base/blob/master/LICENSES</url>
<name>Dual Licence - MIT License and Apache License 2.0</name>
</license>
</info>
<outputFormats>json,yaml</outputFormats>
<outputPath>sys/swagger</outputPath>
<swaggerDirectory>sys</swaggerDirectory>
<securityDefinitions>
<securityDefinition>
<name>basicAuth</name>
<type>basic</type>
</securityDefinition>
</securityDefinitions>
</apiSource>
</apiSources>
</configuration>
</plugin>
<!-- Plugin for reading .env file -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>.env</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
<!-- Spring Boot plugin -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!-- Plugin for code style checking -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<configLocation>src/main/resources/checkstyle.xml</configLocation> <!-- Location
of Checkstyle configuration file -->
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput> <!-- Console output -->
<failsOnError>true</failsOnError> <!-- Fail on errors -->
</configuration>
<executions>
<execution>
<id>checkstyle</id>
<phase>none</phase> <!-- Ignore execution -->
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Plugin for Maven rule enforcement -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>17</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!-- Maven compiler plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<!-- Maven Site Plugin with Port Configuration -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.9.1</version>
<configuration>
<port>3000</port> <!-- Sets port to 3000 -->
</configuration>
</plugin>
<!-- Maven Javadoc Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<useStandardDocletOptions>false</useStandardDocletOptions>
<detectLinks>false</detectLinks>
<detectJavaApiLink>false</detectJavaApiLink>
<encoding>UTF-8</encoding>
<docencoding>UTF-8</docencoding>
<charset>UTF-8</charset>
<source>17</source>
<show>protected</show>
<linksource>true</linksource>
<breakiterator>true</breakiterator>
<doclint>none</doclint>
<links>
<link>https://docs.oracle.com/javase/17/docs/api/</link>
</links>
</configuration>
</plugin>
</plugins>
</build>
<!-- Profile configuration -->
<profiles>
<profile>
<id>ci-cd</id> <!-- Profile identifier -->
<build>
<plugins>
<!-- Ant plugin for running tasks during the build -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<delete dir="src/main/java/com/shelson/swing" /> <!-- Example
of using Ant to delete a directory -->
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<!-- Developer information -->
<developers>
<developer>
<id>shelson</id>
<name>Shelson Ferrari</name>
<email>shelson@gmail.com</email>
<organization>shelson</organization>
<roles>
<role>Developer</role>
</roles>
</developer>
</developers>
<!-- Project licenses -->
<licenses>
<license>
<name>MIT License</name>
<url>https://github.com/33mestre/java_base/blob/master/LICENSE-MIT</url>
<distribution>repo</distribution>
<comments>MIT License</comments>
</license>
<license>
<name>Apache License</name>
<url>https://github.com/33mestre/java_base/blob/master/LICENSE-APACHE</url>
<distribution>repo</distribution>
<comments>Apache License</comments>
</license>
</licenses>
<!-- SCM (Source Code Management) configuration -->
<scm>
<connection>scm:git:git://github.com/33mestre/java_base.git</connection>
<developerConnection>scm:git:ssh://github.com:33mestre/java_base.git</developerConnection>
<url>https://github.com/33mestre/java_base</url>
</scm>
</project>