1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ================================================================================
4 ~ Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
5 ~ Copyright (c) 2021 Samsung Electronics. All rights reserved.
6 ~ ================================================================================
7 ~ Licensed under the Apache License, Version 2.0 (the "License");
8 ~ you may not use this file except in compliance with the License.
9 ~ You may obtain a copy of the License at
11 ~ http://www.apache.org/licenses/LICENSE-2.0
13 ~ Unless required by applicable law or agreed to in writing, software
14 ~ distributed under the License is distributed on an "AS IS" BASIS,
15 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 ~ See the License for the specific language governing permissions and
17 ~ limitations under the License.
18 ~ ============LICENSE_END=========================================================
21 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xmlns="http://maven.apache.org/POM/4.0.0"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
29 <artifactId>tca-gen2-parent</artifactId>
30 <version>1.3.1-SNAPSHOT</version>
33 <artifactId>eelf-logger</artifactId>
34 <name>EELF Logger Parent</name>
35 <packaging>pom</packaging>
38 <module>eelf-logger-api</module>
39 <module>eelf-logger-model</module>
40 <module>eelf-logger-logback-impl</module>
44 <!-- PROJECT SETTINGS-->
45 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
47 <main.basedir>${project.basedir}</main.basedir>
50 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
52 <!-- PROJECT DEPENDENCIES -->
53 <slf4j.version>1.7.5</slf4j.version>
54 <logback.version>1.2.3</logback.version>
55 <lombok.version>1.18.12</lombok.version>
57 <!--TESTING DEPENDENCIES -->
58 <junit.version>4.12</junit.version>
59 <mockito.version>2.22.0</mockito.version>
60 <assertj-core.version>2.6.0</assertj-core.version>
63 <!-- PLUGINS VERSIONS -->
64 <compiler.plugin.version>3.8.0</compiler.plugin.version>
65 <surefire.plugin.version>2.19.1</surefire.plugin.version>
66 <failsafe.plugin.version>2.19.1</failsafe.plugin.version>
68 <pmd.plugin.version>3.11.0</pmd.plugin.version>
69 <javadoc.plugin.version>3.0.0</javadoc.plugin.version>
70 <source.plugin.version>3.2.1</source.plugin.version>
71 <jar.plugin.version>2.4</jar.plugin.version>
72 <deploy.plugin.version>2.8</deploy.plugin.version>
73 <lombok.plugin.version>1.18.0.0</lombok.plugin.version>
74 <maven.site.plugin>3.5.1</maven.site.plugin>
76 <!--PLUGIN SETTINGS -->
77 <compiler.source.version>11</compiler.source.version>
78 <compiler.target.version>11</compiler.target.version>
79 <unit.test.pattern>**/*Test.java</unit.test.pattern>
80 <skip.unit.tests>false</skip.unit.tests>
81 <integration.test.pattern>**/*IT.java</integration.test.pattern>
82 <skip.integration.tests>true</skip.integration.tests>
83 <pmd.violation.buildfail>true</pmd.violation.buildfail>
84 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
89 <dependencyManagement>
95 <groupId>org.slf4j</groupId>
96 <artifactId>slf4j-api</artifactId>
97 <version>${slf4j.version}</version>
101 <groupId>ch.qos.logback</groupId>
102 <artifactId>logback-classic</artifactId>
103 <version>${logback.version}</version>
106 <!-- CODE GENERATION -->
108 <groupId>org.projectlombok</groupId>
109 <artifactId>lombok</artifactId>
110 <version>${lombok.version}</version>
111 <scope>provided</scope>
115 <!-- TEST DEPENDENCIES -->
117 <groupId>junit</groupId>
118 <artifactId>junit</artifactId>
119 <version>${junit.version}</version>
124 <groupId>org.mockito</groupId>
125 <artifactId>mockito-core</artifactId>
126 <version>${mockito.version}</version>
131 <groupId>org.assertj</groupId>
132 <artifactId>assertj-core</artifactId>
133 <version>${assertj-core.version}</version>
139 </dependencyManagement>
142 <!-- COMMON DEPENDENCIES FOR ALL SUB-PROJECTS -->
144 <!-- TEST DEPENDENCIES -->
146 <groupId>junit</groupId>
147 <artifactId>junit</artifactId>
150 <groupId>org.mockito</groupId>
151 <artifactId>mockito-core</artifactId>
154 <groupId>org.assertj</groupId>
155 <artifactId>assertj-core</artifactId>
165 <!-- COMPILER PLUGIN -->
167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-compiler-plugin</artifactId>
169 <version>${compiler.plugin.version}</version>
171 <source>${compiler.target.version}</source>
172 <target>${compiler.source.version}</target>
176 <!-- MAVEN SOURCE PLUGIN -->
178 <groupId>org.apache.maven.plugins</groupId>
179 <artifactId>maven-source-plugin</artifactId>
180 <version>${source.plugin.version}</version>
182 <excludeResources>true</excludeResources>
186 <id>attach-sources</id>
187 <phase>verify</phase>
189 <goal>jar-no-fork</goal>
196 <!-- MAVEN JAVADOC PLUGIN -->
198 <groupId>org.apache.maven.plugins</groupId>
199 <artifactId>maven-javadoc-plugin</artifactId>
200 <version>${javadoc.plugin.version}</version>
202 <!-- minimize console output messages -->
204 <verbose>false</verbose>
205 <useStandardDocletOptions>false</useStandardDocletOptions>
212 <goal>aggregate</goal>
216 <id>attach-javadoc</id>
225 <!-- SUREFIRE TEST PLUGIN -->
227 <groupId>org.apache.maven.plugins</groupId>
228 <artifactId>maven-surefire-plugin</artifactId>
229 <version>${surefire.plugin.version}</version>
231 <skipTests>${skip.unit.tests}</skipTests>
232 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
233 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError
235 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
236 <parallel>methods</parallel>
237 <threadCount>8</threadCount>
238 <forkCount>8</forkCount>
239 <reuseForks>true</reuseForks>
240 <reportFormat>xml</reportFormat>
241 <trimStackTrace>false</trimStackTrace>
242 <systemPropertyVariables>
243 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
244 <logback.configurationFile>
245 ${basedir}/src/test/resources/logback-test.xml
246 </logback.configurationFile>
247 </systemPropertyVariables>
249 <include>${unit.test.pattern}</include>
252 <exclude>${integration.test.pattern}</exclude>
254 <!-- Sets the VM argument line used when unit tests are run. -->
255 <argLine>${surefireArgLine}</argLine>
259 <groupId>org.apache.maven.surefire</groupId>
260 <artifactId>surefire-junit47</artifactId>
261 <version>${surefire.plugin.version}</version>
266 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
268 <groupId>org.apache.maven.plugins</groupId>
269 <artifactId>maven-failsafe-plugin</artifactId>
270 <version>${failsafe.plugin.version}</version>
273 <id>integration-tests</id>
275 <goal>integration-test</goal>
279 <skipTests>${skip.integration.tests}</skipTests>
280 <!-- Sets the VM argument line used when integration tests are run. -->
281 <!--suppress MavenModelInspection -->
282 <argLine>${failsafeArgLine}</argLine>
288 <!-- PMD PLUGIN SETUP -->
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-pmd-plugin</artifactId>
292 <version>${pmd.plugin.version}</version>
294 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
295 <targetJdk>${compiler.target.version}</targetJdk>
296 <linkXRef>false</linkXRef>
297 <!-- BUILD FAIL ON PMD VIOLATION -->
298 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
299 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
300 <minimumTokens>200</minimumTokens>
309 <printFailingErrors>true</printFailingErrors>
310 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
316 <goal>cpd-check</goal>
319 <printFailingErrors>true</printFailingErrors>
320 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
329 <!-- LOMBOK PLUGIN -->
331 <groupId>org.projectlombok</groupId>
332 <artifactId>lombok-maven-plugin</artifactId>
333 <version>${lombok.plugin.version}</version>
337 <phase>generate-sources</phase>
339 <goal>delombok</goal>
342 <addOutputDirectory>false</addOutputDirectory>
343 <sourceDirectory>src/main/java</sourceDirectory>
351 <groupId>org.apache.maven.plugins</groupId>
352 <artifactId>maven-jar-plugin</artifactId>
353 <version>${jar.plugin.version}</version>
357 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
360 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
366 <!-- DEPLOY PLUGIN -->
368 <groupId>org.apache.maven.plugins</groupId>
369 <artifactId>maven-deploy-plugin</artifactId>
370 <version>${deploy.plugin.version}</version>
372 <deployAtEnd>true</deployAtEnd>
383 <groupId>org.apache.maven.plugins</groupId>
384 <artifactId>maven-compiler-plugin</artifactId>
388 <groupId>org.apache.maven.plugins</groupId>
389 <artifactId>maven-jar-plugin</artifactId>
393 <groupId>org.apache.maven.plugins</groupId>
394 <artifactId>maven-surefire-plugin</artifactId>
398 <groupId>org.apache.maven.plugins</groupId>
399 <artifactId>maven-failsafe-plugin</artifactId>
403 <groupId>org.apache.maven.plugins</groupId>
404 <artifactId>maven-deploy-plugin</artifactId>
408 <groupId>org.apache.maven.plugins</groupId>
409 <artifactId>maven-source-plugin</artifactId>
413 <groupId>org.apache.maven.plugins</groupId>
414 <artifactId>maven-javadoc-plugin</artifactId>
418 <groupId>org.apache.maven.plugins</groupId>
419 <artifactId>maven-pmd-plugin</artifactId>
428 <id>disable-java8-doclint</id>
433 <additionalparam>-Xdoclint:none</additionalparam>