synch version
[logging-analytics.git] / reference / logging-filter / pom.xml
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>
4
5   <parent>
6     <groupId>org.onap.logging-analytics</groupId>
7     <artifactId>logging-reference</artifactId>
8     <version>1.6.4-SNAPSHOT</version>
9   </parent>
10
11   <artifactId>logging-filter-parent</artifactId>
12   <packaging>pom</packaging>
13
14   <modules>
15     <module>logging-filter-base</module>
16     <module>logging-filter-spring</module>
17   </modules>
18
19   <properties>
20     <format.skipValidate>false</format.skipValidate>
21     <format.skipExecute>true</format.skipExecute>
22     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23   </properties>
24
25   <dependencyManagement>
26     <dependencies>
27       <dependency>
28         <groupId>javax.annotation</groupId>
29         <artifactId>javax.annotation-api</artifactId>
30         <version>1.2</version>
31         <scope>provided</scope>
32       </dependency>
33       <dependency>
34         <groupId>org.onap.logging-analytics</groupId>
35         <artifactId>logging-slf4j</artifactId>
36         <version>${project.version}</version>
37       </dependency>
38       <dependency>
39         <groupId>javax.servlet</groupId>
40         <artifactId>javax.servlet-api</artifactId>
41         <version>3.1.0</version>
42         <scope>provided</scope>
43       </dependency>
44       <dependency>
45         <groupId>javax.ws.rs</groupId>
46         <artifactId>javax.ws.rs-api</artifactId>
47         <version>2.0.1</version>
48         <scope>provided</scope>
49       </dependency>
50       <dependency>
51         <groupId>org.slf4j</groupId>
52         <artifactId>slf4j-api</artifactId>
53         <version>1.7.25</version>
54         <scope>provided</scope>
55       </dependency>
56       <dependency>
57         <groupId>org.apache.logging.log4j</groupId>
58         <artifactId>log4j-slf4j-impl</artifactId>
59         <version>2.11.2</version>
60         <scope>test</scope>
61       </dependency>
62       <dependency>
63         <groupId>junit</groupId>
64         <artifactId>junit</artifactId>
65         <version>4.11</version>
66         <scope>test</scope>
67       </dependency>
68       <dependency>
69         <groupId>org.mockito</groupId>
70         <artifactId>mockito-core</artifactId>
71         <version>2.15.0</version>
72         <scope>test</scope>
73       </dependency>
74     </dependencies>
75   </dependencyManagement>
76
77   <build>
78     <plugins>
79       <plugin>
80         <groupId>org.apache.maven.plugins</groupId>
81         <artifactId>maven-compiler-plugin</artifactId>
82       </plugin>
83       <!-- Plugin to identify root path of the project -->
84       <plugin>
85         <groupId>org.commonjava.maven.plugins</groupId>
86         <artifactId>directory-maven-plugin</artifactId>
87         <version>0.2</version>
88         <executions>
89           <execution>
90             <phase>validate</phase>
91             <id>directories</id>
92             <goals>
93               <goal>highest-basedir</goal>
94             </goals>
95             <configuration>
96               <property>baseDirPath</property>
97             </configuration>
98           </execution>
99         </executions>
100       </plugin>
101
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&amp;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> -->
111
112       <!-- Plugin to Format/Validate Java Classes -->
113       <plugin>
114         <groupId>net.revelc.code.formatter</groupId>
115         <artifactId>formatter-maven-plugin</artifactId>
116         <version>2.10.0</version>
117         <executions>
118           <execution>
119             <id>format-java</id>
120             <goals>
121               <goal>format</goal>
122             </goals>
123             <phase>process-sources</phase>
124             <configuration>
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>
129               <includes>
130                 <include>src/**/*.java</include>
131               </includes>
132             </configuration>
133           </execution>
134           <execution>
135             <id>validate-java</id>
136             <goals>
137               <goal>validate</goal>
138             </goals>
139             <phase>validate</phase>
140             <configuration>
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>
145               <includes>
146                 <include>src/**/*.java</include>
147               </includes>
148             </configuration>
149           </execution>
150         </executions>
151         <dependencies>
152           <dependency>
153             <groupId>com.fasterxml.jackson.core</groupId>
154             <artifactId>jackson-annotations</artifactId>
155             <version>2.9.8</version>
156           </dependency>
157         </dependencies>
158       </plugin>
159
160       <!-- Plugin to Format/Validate POM Files -->
161       <plugin>
162         <groupId>org.codehaus.mojo</groupId>
163         <artifactId>tidy-maven-plugin</artifactId>
164         <version>1.1.0</version>
165         <executions>
166           <execution>
167             <id>format-pom</id>
168             <phase>process-sources</phase>
169             <goals>
170               <goal>pom</goal>
171             </goals>
172             <configuration>
173               <skip>${format.skipExecute}</skip>
174             </configuration>
175           </execution>
176           <execution>
177             <id>validate-pom</id>
178             <phase>validate</phase>
179             <goals>
180               <goal>check</goal>
181             </goals>
182             <configuration>
183               <skip>${format.skipValidate}</skip>
184             </configuration>
185           </execution>
186         </executions>
187       </plugin>
188     </plugins>
189   </build>
190
191   <profiles>
192     <profile>
193       <id>format</id>
194       <properties>
195         <format.skipValidate>true</format.skipValidate>
196         <format.skipExecute>false</format.skipExecute>
197       </properties>
198     </profile>
199   </profiles>
200 </project>