1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ================================================================================
4 ~ Copyright (c) 2018 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>3.0.0-SNAPSHOT</version>
32 <artifactId>eelf-logger</artifactId>
33 <version>3.0.0-SNAPSHOT</version>
35 <name>EELF Logger Parent</name>
36 <packaging>pom</packaging>
39 <module>eelf-logger-api</module>
40 <module>eelf-logger-model</module>
41 <module>eelf-logger-logback-impl</module>
48 <!-- PROJECT SETTINGS-->
49 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
50 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
51 <main.basedir>${project.basedir}</main.basedir>
54 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
56 <!-- PROJECT DEPENDENCIES -->
57 <slf4j.version>1.7.5</slf4j.version>
58 <logback.version>1.2.3</logback.version>
59 <lombok.version>1.16.10</lombok.version>
62 <!--TESTING DEPENDENCIES -->
63 <junit.version>4.12</junit.version>
64 <mockito.version>2.2.11</mockito.version>
65 <assertj-core.version>2.6.0</assertj-core.version>
68 <!-- PLUGINS VERSIONS -->
69 <compiler.plugin.version>3.3</compiler.plugin.version>
70 <surefire.plugin.version>2.19.1</surefire.plugin.version>
71 <failsafe.plugin.version>2.19.1</failsafe.plugin.version>
72 <findbugs.plugin.version>3.0.2</findbugs.plugin.version>
74 <pmd.plugin.version>3.5</pmd.plugin.version>
75 <javadoc.plugin.version>2.10.4</javadoc.plugin.version>
76 <source.plugin.version>2.4</source.plugin.version>
77 <jar.plugin.version>2.4</jar.plugin.version>
78 <deploy.plugin.version>2.8</deploy.plugin.version>
79 <lombok.plugin.version>1.16.10.0</lombok.plugin.version>
80 <maven.site.plugin>3.5.1</maven.site.plugin>
82 <!--PLUGIN SETTINGS -->
83 <compiler.source.version>1.7</compiler.source.version>
84 <compiler.target.version>1.7</compiler.target.version>
85 <unit.test.pattern>**/*Test.java</unit.test.pattern>
86 <skip.unit.tests>false</skip.unit.tests>
87 <integration.test.pattern>**/*IT.java</integration.test.pattern>
88 <skip.integration.tests>true</skip.integration.tests>
89 <pmd.violation.buildfail>true</pmd.violation.buildfail>
90 <findbugs.failOnError>true</findbugs.failOnError>
95 <dependencyManagement>
101 <groupId>org.slf4j</groupId>
102 <artifactId>slf4j-api</artifactId>
103 <version>${slf4j.version}</version>
107 <groupId>ch.qos.logback</groupId>
108 <artifactId>logback-classic</artifactId>
109 <version>${logback.version}</version>
112 <!-- CODE GENERATION -->
114 <groupId>org.projectlombok</groupId>
115 <artifactId>lombok</artifactId>
116 <version>${lombok.version}</version>
117 <scope>provided</scope>
121 <!-- TEST DEPENDENCIES -->
123 <groupId>junit</groupId>
124 <artifactId>junit</artifactId>
125 <version>${junit.version}</version>
130 <groupId>org.mockito</groupId>
131 <artifactId>mockito-core</artifactId>
132 <version>${mockito.version}</version>
137 <groupId>org.assertj</groupId>
138 <artifactId>assertj-core</artifactId>
139 <version>${assertj-core.version}</version>
145 </dependencyManagement>
148 <!-- COMMON DEPENDENCIES FOR ALL SUB-PROJECTS -->
150 <!-- TEST DEPENDENCIES -->
152 <groupId>junit</groupId>
153 <artifactId>junit</artifactId>
156 <groupId>org.mockito</groupId>
157 <artifactId>mockito-core</artifactId>
160 <groupId>org.assertj</groupId>
161 <artifactId>assertj-core</artifactId>
171 <!-- COMPILER PLUGIN -->
173 <groupId>org.apache.maven.plugins</groupId>
174 <artifactId>maven-compiler-plugin</artifactId>
175 <version>${compiler.plugin.version}</version>
177 <source>${compiler.target.version}</source>
178 <target>${compiler.source.version}</target>
182 <!-- MAVEN SOURCE PLUGIN -->
184 <groupId>org.apache.maven.plugins</groupId>
185 <artifactId>maven-source-plugin</artifactId>
186 <version>${source.plugin.version}</version>
188 <excludeResources>true</excludeResources>
192 <id>attach-sources</id>
193 <phase>verify</phase>
195 <goal>jar-no-fork</goal>
202 <!-- MAVEN JAVADOC PLUGIN -->
204 <groupId>org.apache.maven.plugins</groupId>
205 <artifactId>maven-javadoc-plugin</artifactId>
206 <version>${javadoc.plugin.version}</version>
208 <!-- minimize console output messages -->
210 <verbose>false</verbose>
211 <useStandardDocletOptions>false</useStandardDocletOptions>
218 <goal>aggregate</goal>
222 <id>attach-javadoc</id>
231 <!-- SUREFIRE TEST PLUGIN -->
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-surefire-plugin</artifactId>
235 <version>${surefire.plugin.version}</version>
237 <skipTests>${skip.unit.tests}</skipTests>
238 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
239 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError
241 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
242 <parallel>methods</parallel>
243 <threadCount>8</threadCount>
244 <forkCount>8</forkCount>
245 <reuseForks>true</reuseForks>
246 <reportFormat>xml</reportFormat>
247 <trimStackTrace>false</trimStackTrace>
248 <systemPropertyVariables>
249 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
250 <logback.configurationFile>
251 ${basedir}/src/test/resources/logback-test.xml
252 </logback.configurationFile>
253 </systemPropertyVariables>
255 <include>${unit.test.pattern}</include>
258 <exclude>${integration.test.pattern}</exclude>
260 <!-- Sets the VM argument line used when unit tests are run. -->
261 <argLine>${surefireArgLine}</argLine>
265 <groupId>org.apache.maven.surefire</groupId>
266 <artifactId>surefire-junit47</artifactId>
267 <version>${surefire.plugin.version}</version>
272 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
274 <groupId>org.apache.maven.plugins</groupId>
275 <artifactId>maven-failsafe-plugin</artifactId>
276 <version>${failsafe.plugin.version}</version>
279 <id>integration-tests</id>
281 <goal>integration-test</goal>
285 <skipTests>${skip.integration.tests}</skipTests>
286 <!-- Sets the VM argument line used when integration tests are run. -->
287 <!--suppress MavenModelInspection -->
288 <argLine>${failsafeArgLine}</argLine>
295 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
297 <groupId>org.codehaus.mojo</groupId>
298 <artifactId>findbugs-maven-plugin</artifactId>
299 <version>${findbugs.plugin.version}</version>
302 <threshold>Low</threshold>
303 <xmlOutput>true</xmlOutput>
304 <!-- BUILD FAIL ON FINDBUGS ERRORS -->
305 <failOnError>${findbugs.failOnError}</failOnError>
306 <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile>
307 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
308 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
309 </findbugsXmlOutputDirectory>
313 <id>analyze-compile</id>
314 <phase>compile</phase>
322 <!-- PMD PLUGIN SETUP -->
324 <groupId>org.apache.maven.plugins</groupId>
325 <artifactId>maven-pmd-plugin</artifactId>
326 <version>${pmd.plugin.version}</version>
328 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
329 <targetJdk>${compiler.target.version}</targetJdk>
330 <linkXRef>false</linkXRef>
331 <!-- BUILD FAIL ON PMD VIOLATION -->
332 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
333 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
334 <minimumTokens>200</minimumTokens>
343 <printFailingErrors>true</printFailingErrors>
344 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
350 <goal>cpd-check</goal>
353 <printFailingErrors>true</printFailingErrors>
354 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
363 <!-- LOMBOK PLUGIN -->
365 <groupId>org.projectlombok</groupId>
366 <artifactId>lombok-maven-plugin</artifactId>
367 <version>${lombok.plugin.version}</version>
371 <phase>generate-sources</phase>
373 <goal>delombok</goal>
376 <addOutputDirectory>false</addOutputDirectory>
377 <sourceDirectory>src/main/java</sourceDirectory>
385 <groupId>org.apache.maven.plugins</groupId>
386 <artifactId>maven-jar-plugin</artifactId>
387 <version>${jar.plugin.version}</version>
391 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
394 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
400 <!-- DEPLOY PLUGIN -->
402 <groupId>org.apache.maven.plugins</groupId>
403 <artifactId>maven-deploy-plugin</artifactId>
404 <version>${deploy.plugin.version}</version>
406 <deployAtEnd>true</deployAtEnd>
417 <groupId>org.apache.maven.plugins</groupId>
418 <artifactId>maven-compiler-plugin</artifactId>
422 <groupId>org.apache.maven.plugins</groupId>
423 <artifactId>maven-jar-plugin</artifactId>
427 <groupId>org.apache.maven.plugins</groupId>
428 <artifactId>maven-surefire-plugin</artifactId>
432 <groupId>org.apache.maven.plugins</groupId>
433 <artifactId>maven-failsafe-plugin</artifactId>
437 <groupId>org.apache.maven.plugins</groupId>
438 <artifactId>maven-deploy-plugin</artifactId>
443 <groupId>org.apache.maven.plugins</groupId>
444 <artifactId>maven-source-plugin</artifactId>
448 <groupId>org.apache.maven.plugins</groupId>
449 <artifactId>maven-javadoc-plugin</artifactId>
453 <groupId>org.apache.maven.plugins</groupId>
454 <artifactId>maven-pmd-plugin</artifactId>
458 <groupId>org.codehaus.mojo</groupId>
459 <artifactId>findbugs-maven-plugin</artifactId>
467 <id>disable-java8-doclint</id>
472 <additionalparam>-Xdoclint:none</additionalparam>