-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom.xml
263 lines (249 loc) · 7.87 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
<?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">
<!-- Packaging -->
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<!-- Versioning -->
<groupId>gr.codelearn</groupId>
<artifactId>java-path-core</artifactId>
<version>2021.1.0</version>
<!-- Meta-data -->
<name>[${project.artifactId}]</name>
<description>Project Future 7: Java Core module</description>
<organization>
<name>Code.Learn by Code.Hub</name>
<url>https://www.codehub.gr/codelearn/</url>
</organization>
<inceptionYear>2021</inceptionYear>
<!-- Modules -->
<modules>
<module>java-path-core-basic</module>
<module>java-path-core-maven</module>
<module>java-path-core-oop</module>
<module>java-path-core-databases</module>
<module>java-path-core-exceptions</module>
<module>java-path-core-despattern</module>
<module>java-path-core.generics</module>
</modules>
<!-- Properties/Variables -->
<properties>
<!-- Desired Maven version -->
<maven.version>3.6</maven.version>
<!-- Build JDK -->
<java.version>11</java.version>
<!-- Maven source encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- Library versions-->
<log4j.version>2.15.0</log4j.version>
<slf4j.version>1.7.32</slf4j.version>
<disruptor-maven-plugin.version>3.4.4</disruptor-maven-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<!--
Due to a break in compatibility in the SLF4J binding, as of Log4J2 release 2.11.1, we need to
use the following plugin in case of Java 1.8 or greater.
Log4j API and Core implementation along with Slf4j libraries required are implicit
dependencies.
-->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j18-impl</artifactId>
<version>${log4j.version}</version>
</dependency>
<!--
This is to stop receiving errors about failing to load class "org.slf4j.impl.StaticLoggerBinder"
-->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
<exclusions>
<exclusion>
<artifactId>slf4j-api</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
</exclusions>
</dependency>
<!--
Asynchronous Logging @see https://logging.apache.org/log4j/2.x/manual/async.html
Hint:
Don't forget to set system property
-Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
to make all loggers asynchronous
-->
<dependency>
<groupId>com.lmax</groupId>
<artifactId>disruptor</artifactId>
<version>${disruptor-maven-plugin.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<!-- Dependencies -->
<dependencies>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j18-impl</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
</dependency>
<dependency>
<groupId>com.lmax</groupId>
<artifactId>disruptor</artifactId>
</dependency>
</dependencies>
<build>
<!-- Plugins and corresponding configuration used by all modules -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>${java.version}</version>
</requireJavaVersion>
<requireMavenVersion>
<version>${maven.version}</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
<execution>
<id>ban-bad-log4j-versions</id>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedDependencies>
<excludes>
<exclude>org.apache.logging.log4j:log4j-core:(,2.15.0)</exclude>
</excludes>
</bannedDependencies>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<!--
In order to compile your project for Java 11 add the release configuration to the compiler
plugin, a new compiler parameter to replace the source and target version parameters
-->
<release>${java.version}</release>
</configuration>
</plugin>
<!--
- Scans a project's dependencies and produces a report of those dependencies which have newer
- versions available:
- mvn versions:display-dependency-updates
-
- Scans a project and produces a report of those properties which are used to control artifact
- versions and which properties have newer versions available:
- mvn versions:display-property-updates
-
- Scans a project's plugins and produces a report of those plugins which have newer versions
- available, taking care of Maven version prerequisites:
- mvn versions:display-plugin-updates
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<generateBackupPoms>false</generateBackupPoms>
<!-- In case we want to exclude a library from check -->
<!--
<excludes>
<exclude>org.apache.commons:commons-collections4</exclude>
</excludes>
-->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<argLine>
--illegal-access=permit
</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<argLine>
--illegal-access=permit
</argLine>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<!-- For this plugins, use the versions and configuration mentioned in the pluginManagement section -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
</plugins>
<!-- Resources -->
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.yml</include>
<include>**/*.xml</include>
<include>**/*.csv</include>
<include>**/*.sql</include>
<include>**/*.ftl</include>
<include>**/*.pem</include>
<include>**/*.txt</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
<defaultGoal>package</defaultGoal>
<directory>${basedir}/target</directory>
<finalName>${project.artifactId}-${project.version}</finalName>
</build>
</project>