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.6.4-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>${project.version}</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 <groupId>org.apache.maven.plugins</groupId>
81 <artifactId>maven-compiler-plugin</artifactId>
83 <!-- Plugin to identify root path of the project -->
85 <groupId>org.commonjava.maven.plugins</groupId>
86 <artifactId>directory-maven-plugin</artifactId>
87 <version>0.2</version>
90 <phase>validate</phase>
93 <goal>highest-basedir</goal>
96 <property>baseDirPath</property>
102 <!-- Plugin to Generate/Validate Copyright License header -->
103 <!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>license-maven-plugin</artifactId> <version>1.20</version> <configuration> <processStartTag>============LICENSE_START=======================================================</processStartTag>
104 <sectionDelimiter>================================================================================</sectionDelimiter> <processEndTag>============LICENSE_END=========================================================</processEndTag>
105 <licenseName>apache_v2</licenseName> <inceptionYear>2019</inceptionYear> <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName> <projectName>ONAP
106 - Logging</projectName> <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage> <skipUpdateLicense>${format.skipExecute}</skipUpdateLicense> <skipCheckLicense>${format.skipValidate}</skipCheckLicense>
107 </configuration> <executions> <execution> <id>update-headers</id> <goals> <goal>update-file-header</goal> </goals> <phase>process-sources</phase> <configuration> <canUpdateCopyright>true</canUpdateCopyright>
108 <canUpdateDescription>true</canUpdateDescription> <canUpdateLicense>true</canUpdateLicense> <emptyLineAfterHeader>true</emptyLineAfterHeader> </configuration> </execution> <execution>
109 <id>check-headers</id> <goals> <goal>check-file-header</goal> </goals> <phase>validate</phase> <configuration> <failOnNotUptodateHeader>true</failOnNotUptodateHeader> <failOnMissingHeader>true</failOnMissingHeader>
110 </configuration> </execution> </executions> </plugin> -->
112 <!-- Plugin to Format/Validate Java Classes -->
114 <groupId>net.revelc.code.formatter</groupId>
115 <artifactId>formatter-maven-plugin</artifactId>
116 <version>2.10.0</version>
123 <phase>process-sources</phase>
125 <lineEnding>LF</lineEnding>
126 <skip>${format.skipExecute}</skip>
127 <sourceDirectory>${project.basedir}</sourceDirectory>
128 <configFile>${baseDirPath}/project-configs/code-tools/onap-java-format.xml</configFile>
130 <include>src/**/*.java</include>
135 <id>validate-java</id>
137 <goal>validate</goal>
139 <phase>validate</phase>
141 <lineEnding>LF</lineEnding>
142 <skip>${format.skipValidate}</skip>
143 <sourceDirectory>${project.basedir}</sourceDirectory>
144 <configFile>${baseDirPath}/project-configs/code-tools/onap-java-format.xml</configFile>
146 <include>src/**/*.java</include>
153 <groupId>com.fasterxml.jackson.core</groupId>
154 <artifactId>jackson-annotations</artifactId>
155 <version>2.9.8</version>
160 <!-- Plugin to Format/Validate POM Files -->
162 <groupId>org.codehaus.mojo</groupId>
163 <artifactId>tidy-maven-plugin</artifactId>
164 <version>1.1.0</version>
168 <phase>process-sources</phase>
173 <skip>${format.skipExecute}</skip>
177 <id>validate-pom</id>
178 <phase>validate</phase>
183 <skip>${format.skipValidate}</skip>
195 <format.skipValidate>true</format.skipValidate>
196 <format.skipExecute>false</format.skipExecute>