1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.onap.logging-analytics</groupId>
7 <artifactId>logging-reference</artifactId>
8 <version>1.5.1-SNAPSHOT</version>
11 <artifactId>logging-filter-parent</artifactId>
12 <packaging>pom</packaging>
15 <module>logging-filter-base</module>
16 <module>logging-filter-spring</module>
20 <format.skipValidate>false</format.skipValidate>
21 <format.skipExecute>true</format.skipExecute>
22 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
25 <dependencyManagement>
28 <groupId>javax.annotation</groupId>
29 <artifactId>javax.annotation-api</artifactId>
30 <version>1.2</version>
31 <scope>provided</scope>
34 <groupId>org.onap.logging-analytics</groupId>
35 <artifactId>logging-slf4j</artifactId>
36 <version>1.5.0-SNAPSHOT</version>
39 <groupId>javax.servlet</groupId>
40 <artifactId>javax.servlet-api</artifactId>
41 <version>3.1.0</version>
42 <scope>provided</scope>
45 <groupId>javax.ws.rs</groupId>
46 <artifactId>javax.ws.rs-api</artifactId>
47 <version>2.0.1</version>
48 <scope>provided</scope>
51 <groupId>org.slf4j</groupId>
52 <artifactId>slf4j-api</artifactId>
53 <version>1.7.25</version>
54 <scope>provided</scope>
57 <groupId>org.apache.logging.log4j</groupId>
58 <artifactId>log4j-slf4j-impl</artifactId>
59 <version>2.11.2</version>
63 <groupId>junit</groupId>
64 <artifactId>junit</artifactId>
65 <version>4.11</version>
69 <groupId>org.mockito</groupId>
70 <artifactId>mockito-core</artifactId>
71 <version>2.15.0</version>
75 </dependencyManagement>
80 <artifactId>maven-compiler-plugin</artifactId>
81 <version>2.5.1</version>
84 <id>default-compile</id>
85 <phase>compile</phase>
91 <id>default-testCompile</id>
92 <phase>test-compile</phase>
94 <goal>testCompile</goal>
101 <showWarnings>true</showWarnings>
102 <compilerArgument>-parameters</compilerArgument>
103 <compilerArgument>-Xlint:deprecation</compilerArgument>
107 <!-- Plugin to identify root path of the project -->
109 <groupId>org.commonjava.maven.plugins</groupId>
110 <artifactId>directory-maven-plugin</artifactId>
111 <version>0.2</version>
114 <phase>validate</phase>
117 <goal>execution-root</goal>
120 <property>baseDirPath</property>
126 <!-- Plugin to Generate/Validate Copyright License header -->
129 <groupId>org.codehaus.mojo</groupId>
130 <artifactId>license-maven-plugin</artifactId>
131 <version>1.20</version>
133 <processStartTag>============LICENSE_START=======================================================</processStartTag>
134 <sectionDelimiter>================================================================================</sectionDelimiter>
135 <processEndTag>============LICENSE_END=========================================================</processEndTag>
137 <licenseName>apache_v2</licenseName>
138 <inceptionYear>2019</inceptionYear>
139 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
140 <projectName>ONAP - Logging</projectName>
142 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
143 <skipUpdateLicense>${format.skipExecute}</skipUpdateLicense>
144 <skipCheckLicense>${format.skipValidate}</skipCheckLicense>
148 <id>update-headers</id>
150 <goal>update-file-header</goal>
152 <phase>process-sources</phase>
154 <canUpdateCopyright>true</canUpdateCopyright>
155 <canUpdateDescription>true</canUpdateDescription>
156 <canUpdateLicense>true</canUpdateLicense>
157 <emptyLineAfterHeader>true</emptyLineAfterHeader>
161 <id>check-headers</id>
163 <goal>check-file-header</goal>
165 <phase>validate</phase>
167 <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
168 <failOnMissingHeader>true</failOnMissingHeader>
175 <!-- Plugin to Format/Validate Java Classes -->
177 <groupId>net.revelc.code.formatter</groupId>
178 <artifactId>formatter-maven-plugin</artifactId>
179 <version>2.10.0</version>
186 <phase>process-sources</phase>
188 <lineEnding>LF</lineEnding>
189 <skip>${format.skipExecute}</skip>
190 <sourceDirectory>${project.basedir}</sourceDirectory>
191 <configFile>${baseDirPath}/project-configs/code-tools/onap-java-format.xml</configFile>
193 <include>src/**/*.java</include>
198 <id>validate-java</id>
200 <goal>validate</goal>
202 <phase>validate</phase>
204 <lineEnding>LF</lineEnding>
205 <skip>${format.skipValidate}</skip>
206 <sourceDirectory>${project.basedir}</sourceDirectory>
207 <configFile>${baseDirPath}/project-configs/code-tools/onap-java-format.xml</configFile>
209 <include>src/**/*.java</include>
216 <groupId>com.fasterxml.jackson.core</groupId>
217 <artifactId>jackson-annotations</artifactId>
218 <version>2.9.8</version>
223 <!-- Plugin to Format/Validate POM Files -->
225 <groupId>org.codehaus.mojo</groupId>
226 <artifactId>tidy-maven-plugin</artifactId>
227 <version>1.1.0</version>
231 <phase>process-sources</phase>
236 <skip>${format.skipExecute}</skip>
240 <id>validate-pom</id>
241 <phase>validate</phase>
246 <skip>${format.skipValidate}</skip>
258 <format.skipValidate>true</format.skipValidate>
259 <format.skipExecute>false</format.skipExecute>