1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ================================================================================
4 ~ Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
5 ~ ================================================================================
6 ~ Licensed under the Apache License, Version 2.0 (the "License");
7 ~ you may not use this file except in compliance with the License.
8 ~ You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~ Unless required by applicable law or agreed to in writing, software
13 ~ distributed under the License is distributed on an "AS IS" BASIS,
14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ~ See the License for the specific language governing permissions and
16 ~ limitations under the License.
17 ~ ============LICENSE_END=========================================================
20 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xmlns="http://maven.apache.org/POM/4.0.0"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
28 <artifactId>tca-gen2-parent</artifactId>
29 <version>1.0.1-SNAPSHOT</version>
32 <artifactId>eelf-logger</artifactId>
33 <name>EELF Logger Parent</name>
34 <packaging>pom</packaging>
37 <module>eelf-logger-api</module>
38 <module>eelf-logger-model</module>
39 <module>eelf-logger-logback-impl</module>
46 <!-- PROJECT SETTINGS-->
47 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
49 <main.basedir>${project.basedir}</main.basedir>
52 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
54 <!-- PROJECT DEPENDENCIES -->
55 <slf4j.version>1.7.5</slf4j.version>
56 <logback.version>1.2.3</logback.version>
57 <lombok.version>1.16.10</lombok.version>
60 <!--TESTING DEPENDENCIES -->
61 <junit.version>4.12</junit.version>
62 <mockito.version>2.2.11</mockito.version>
63 <assertj-core.version>2.6.0</assertj-core.version>
66 <!-- PLUGINS VERSIONS -->
67 <compiler.plugin.version>3.3</compiler.plugin.version>
68 <surefire.plugin.version>2.19.1</surefire.plugin.version>
69 <failsafe.plugin.version>2.19.1</failsafe.plugin.version>
70 <findbugs.plugin.version>3.0.2</findbugs.plugin.version>
72 <pmd.plugin.version>3.5</pmd.plugin.version>
73 <javadoc.plugin.version>2.10.4</javadoc.plugin.version>
74 <source.plugin.version>2.4</source.plugin.version>
75 <jar.plugin.version>2.4</jar.plugin.version>
76 <deploy.plugin.version>2.8</deploy.plugin.version>
77 <lombok.plugin.version>1.16.10.0</lombok.plugin.version>
78 <maven.site.plugin>3.5.1</maven.site.plugin>
80 <!--PLUGIN SETTINGS -->
81 <compiler.source.version>1.7</compiler.source.version>
82 <compiler.target.version>1.7</compiler.target.version>
83 <unit.test.pattern>**/*Test.java</unit.test.pattern>
84 <skip.unit.tests>false</skip.unit.tests>
85 <integration.test.pattern>**/*IT.java</integration.test.pattern>
86 <skip.integration.tests>true</skip.integration.tests>
87 <pmd.violation.buildfail>true</pmd.violation.buildfail>
88 <findbugs.failOnError>true</findbugs.failOnError>
89 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
94 <dependencyManagement>
100 <groupId>org.slf4j</groupId>
101 <artifactId>slf4j-api</artifactId>
102 <version>${slf4j.version}</version>
106 <groupId>ch.qos.logback</groupId>
107 <artifactId>logback-classic</artifactId>
108 <version>${logback.version}</version>
111 <!-- CODE GENERATION -->
113 <groupId>org.projectlombok</groupId>
114 <artifactId>lombok</artifactId>
115 <version>${lombok.version}</version>
116 <scope>provided</scope>
120 <!-- TEST DEPENDENCIES -->
122 <groupId>junit</groupId>
123 <artifactId>junit</artifactId>
124 <version>${junit.version}</version>
129 <groupId>org.mockito</groupId>
130 <artifactId>mockito-core</artifactId>
131 <version>${mockito.version}</version>
136 <groupId>org.assertj</groupId>
137 <artifactId>assertj-core</artifactId>
138 <version>${assertj-core.version}</version>
144 </dependencyManagement>
147 <!-- COMMON DEPENDENCIES FOR ALL SUB-PROJECTS -->
149 <!-- TEST DEPENDENCIES -->
151 <groupId>junit</groupId>
152 <artifactId>junit</artifactId>
155 <groupId>org.mockito</groupId>
156 <artifactId>mockito-core</artifactId>
159 <groupId>org.assertj</groupId>
160 <artifactId>assertj-core</artifactId>
170 <!-- COMPILER PLUGIN -->
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-compiler-plugin</artifactId>
174 <version>${compiler.plugin.version}</version>
176 <source>${compiler.target.version}</source>
177 <target>${compiler.source.version}</target>
181 <!-- MAVEN SOURCE PLUGIN -->
183 <groupId>org.apache.maven.plugins</groupId>
184 <artifactId>maven-source-plugin</artifactId>
185 <version>${source.plugin.version}</version>
187 <excludeResources>true</excludeResources>
191 <id>attach-sources</id>
192 <phase>verify</phase>
194 <goal>jar-no-fork</goal>
201 <!-- MAVEN JAVADOC PLUGIN -->
203 <groupId>org.apache.maven.plugins</groupId>
204 <artifactId>maven-javadoc-plugin</artifactId>
205 <version>${javadoc.plugin.version}</version>
207 <!-- minimize console output messages -->
209 <verbose>false</verbose>
210 <useStandardDocletOptions>false</useStandardDocletOptions>
217 <goal>aggregate</goal>
221 <id>attach-javadoc</id>
230 <!-- SUREFIRE TEST PLUGIN -->
232 <groupId>org.apache.maven.plugins</groupId>
233 <artifactId>maven-surefire-plugin</artifactId>
234 <version>${surefire.plugin.version}</version>
236 <skipTests>${skip.unit.tests}</skipTests>
237 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
238 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError
240 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
241 <parallel>methods</parallel>
242 <threadCount>8</threadCount>
243 <forkCount>8</forkCount>
244 <reuseForks>true</reuseForks>
245 <reportFormat>xml</reportFormat>
246 <trimStackTrace>false</trimStackTrace>
247 <systemPropertyVariables>
248 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
249 <logback.configurationFile>
250 ${basedir}/src/test/resources/logback-test.xml
251 </logback.configurationFile>
252 </systemPropertyVariables>
254 <include>${unit.test.pattern}</include>
257 <exclude>${integration.test.pattern}</exclude>
259 <!-- Sets the VM argument line used when unit tests are run. -->
260 <argLine>${surefireArgLine}</argLine>
264 <groupId>org.apache.maven.surefire</groupId>
265 <artifactId>surefire-junit47</artifactId>
266 <version>${surefire.plugin.version}</version>
271 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
273 <groupId>org.apache.maven.plugins</groupId>
274 <artifactId>maven-failsafe-plugin</artifactId>
275 <version>${failsafe.plugin.version}</version>
278 <id>integration-tests</id>
280 <goal>integration-test</goal>
284 <skipTests>${skip.integration.tests}</skipTests>
285 <!-- Sets the VM argument line used when integration tests are run. -->
286 <!--suppress MavenModelInspection -->
287 <argLine>${failsafeArgLine}</argLine>
294 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
296 <groupId>org.codehaus.mojo</groupId>
297 <artifactId>findbugs-maven-plugin</artifactId>
298 <version>${findbugs.plugin.version}</version>
301 <threshold>Low</threshold>
302 <xmlOutput>true</xmlOutput>
303 <!-- BUILD FAIL ON FINDBUGS ERRORS -->
304 <failOnError>${findbugs.failOnError}</failOnError>
305 <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile>
306 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
307 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
308 </findbugsXmlOutputDirectory>
312 <id>analyze-compile</id>
313 <phase>compile</phase>
321 <!-- PMD PLUGIN SETUP -->
323 <groupId>org.apache.maven.plugins</groupId>
324 <artifactId>maven-pmd-plugin</artifactId>
325 <version>${pmd.plugin.version}</version>
327 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
328 <targetJdk>${compiler.target.version}</targetJdk>
329 <linkXRef>false</linkXRef>
330 <!-- BUILD FAIL ON PMD VIOLATION -->
331 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
332 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
333 <minimumTokens>200</minimumTokens>
342 <printFailingErrors>true</printFailingErrors>
343 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
349 <goal>cpd-check</goal>
352 <printFailingErrors>true</printFailingErrors>
353 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
362 <!-- LOMBOK PLUGIN -->
364 <groupId>org.projectlombok</groupId>
365 <artifactId>lombok-maven-plugin</artifactId>
366 <version>${lombok.plugin.version}</version>
370 <phase>generate-sources</phase>
372 <goal>delombok</goal>
375 <addOutputDirectory>false</addOutputDirectory>
376 <sourceDirectory>src/main/java</sourceDirectory>
384 <groupId>org.apache.maven.plugins</groupId>
385 <artifactId>maven-jar-plugin</artifactId>
386 <version>${jar.plugin.version}</version>
390 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
393 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
399 <!-- DEPLOY PLUGIN -->
401 <groupId>org.apache.maven.plugins</groupId>
402 <artifactId>maven-deploy-plugin</artifactId>
403 <version>${deploy.plugin.version}</version>
405 <deployAtEnd>true</deployAtEnd>
416 <groupId>org.apache.maven.plugins</groupId>
417 <artifactId>maven-compiler-plugin</artifactId>
421 <groupId>org.apache.maven.plugins</groupId>
422 <artifactId>maven-jar-plugin</artifactId>
426 <groupId>org.apache.maven.plugins</groupId>
427 <artifactId>maven-surefire-plugin</artifactId>
431 <groupId>org.apache.maven.plugins</groupId>
432 <artifactId>maven-failsafe-plugin</artifactId>
436 <groupId>org.apache.maven.plugins</groupId>
437 <artifactId>maven-deploy-plugin</artifactId>
441 <groupId>org.apache.maven.plugins</groupId>
442 <artifactId>maven-source-plugin</artifactId>
446 <groupId>org.apache.maven.plugins</groupId>
447 <artifactId>maven-javadoc-plugin</artifactId>
451 <groupId>org.apache.maven.plugins</groupId>
452 <artifactId>maven-pmd-plugin</artifactId>
456 <groupId>org.codehaus.mojo</groupId>
457 <artifactId>findbugs-maven-plugin</artifactId>
465 <id>disable-java8-doclint</id>
470 <additionalparam>-Xdoclint:none</additionalparam>