Rolling Project Version to 1.6.2-SNAPSHOT
[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.2-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                 <artifactId>maven-compiler-plugin</artifactId>
81                 <version>2.5.1</version>
82                 <executions>
83                     <execution>
84                         <id>default-compile</id>
85                         <phase>compile</phase>
86                         <goals>
87                             <goal>compile</goal>
88                         </goals>
89                     </execution>
90                     <execution>
91                         <id>default-testCompile</id>
92                         <phase>test-compile</phase>
93                         <goals>
94                             <goal>testCompile</goal>
95                         </goals>
96                     </execution>
97                 </executions>
98                 <configuration>
99                     <source>1.8</source>
100                     <target>1.8</target>
101                     <showWarnings>true</showWarnings>
102                     <compilerArgument>-parameters</compilerArgument>
103                     <compilerArgument>-Xlint:deprecation</compilerArgument>
104                 </configuration>
105             </plugin>
106
107             <!-- Plugin to identify root path of the project -->
108             <plugin>
109                 <groupId>org.commonjava.maven.plugins</groupId>
110                 <artifactId>directory-maven-plugin</artifactId>
111                 <version>0.2</version>
112                 <executions>
113                     <execution>
114                         <phase>validate</phase>
115                         <id>directories</id>
116                         <goals>
117                             <goal>highest-basedir</goal>
118                         </goals>
119                         <configuration>
120                             <property>baseDirPath</property>
121                         </configuration>
122                     </execution>
123                 </executions>
124             </plugin>
125
126             <!-- Plugin to Generate/Validate Copyright License header -->
127             <!--
128             <plugin>
129                 <groupId>org.codehaus.mojo</groupId>
130                 <artifactId>license-maven-plugin</artifactId>
131                 <version>1.20</version>
132                 <configuration>
133                     <processStartTag>============LICENSE_START=======================================================</processStartTag>
134                     <sectionDelimiter>================================================================================</sectionDelimiter>
135                     <processEndTag>============LICENSE_END=========================================================</processEndTag>
136
137                     <licenseName>apache_v2</licenseName>
138                     <inceptionYear>2019</inceptionYear>
139                     <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
140                     <projectName>ONAP - Logging</projectName>
141
142                     <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
143                     <skipUpdateLicense>${format.skipExecute}</skipUpdateLicense>
144                     <skipCheckLicense>${format.skipValidate}</skipCheckLicense>
145                 </configuration>
146                 <executions>
147                     <execution>
148                         <id>update-headers</id>
149                         <goals>
150                             <goal>update-file-header</goal>
151                         </goals>
152                         <phase>process-sources</phase>
153                         <configuration>
154                             <canUpdateCopyright>true</canUpdateCopyright>
155                             <canUpdateDescription>true</canUpdateDescription>
156                             <canUpdateLicense>true</canUpdateLicense>
157                             <emptyLineAfterHeader>true</emptyLineAfterHeader>
158                         </configuration>
159                     </execution>
160                     <execution>
161                         <id>check-headers</id>
162                         <goals>
163                             <goal>check-file-header</goal>
164                         </goals>
165                         <phase>validate</phase>
166                         <configuration>
167                             <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
168                             <failOnMissingHeader>true</failOnMissingHeader>
169                         </configuration>
170                     </execution>
171                 </executions>
172             </plugin>
173             -->
174
175             <!-- Plugin to Format/Validate Java Classes -->
176             <plugin>
177                 <groupId>net.revelc.code.formatter</groupId>
178                 <artifactId>formatter-maven-plugin</artifactId>
179                 <version>2.10.0</version>
180                 <executions>
181                     <execution>
182                         <id>format-java</id>
183                         <goals>
184                             <goal>format</goal>
185                         </goals>
186                         <phase>process-sources</phase>
187                         <configuration>
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>
192                             <includes>
193                                 <include>src/**/*.java</include>
194                             </includes>
195                         </configuration>
196                     </execution>
197                     <execution>
198                         <id>validate-java</id>
199                         <goals>
200                             <goal>validate</goal>
201                         </goals>
202                         <phase>validate</phase>
203                         <configuration>
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>
208                             <includes>
209                                 <include>src/**/*.java</include>
210                             </includes>
211                         </configuration>
212                     </execution>
213                 </executions>
214                 <dependencies>
215                     <dependency>
216                         <groupId>com.fasterxml.jackson.core</groupId>
217                         <artifactId>jackson-annotations</artifactId>
218                         <version>2.9.8</version>
219                     </dependency>
220                 </dependencies>
221             </plugin>
222
223             <!-- Plugin to Format/Validate POM Files -->
224             <plugin>
225                 <groupId>org.codehaus.mojo</groupId>
226                 <artifactId>tidy-maven-plugin</artifactId>
227                 <version>1.1.0</version>
228                 <executions>
229                     <execution>
230                         <id>format-pom</id>
231                         <phase>process-sources</phase>
232                         <goals>
233                             <goal>pom</goal>
234                         </goals>
235                         <configuration>
236                             <skip>${format.skipExecute}</skip>
237                         </configuration>
238                     </execution>
239                     <execution>
240                         <id>validate-pom</id>
241                         <phase>validate</phase>
242                         <goals>
243                             <goal>check</goal>
244                         </goals>
245                         <configuration>
246                             <skip>${format.skipValidate}</skip>
247                         </configuration>
248                     </execution>
249                 </executions>
250             </plugin>
251         </plugins>
252     </build>
253
254     <profiles>
255         <profile>
256             <id>format</id>
257             <properties>
258                 <format.skipValidate>true</format.skipValidate>
259                 <format.skipExecute>false</format.skipExecute>
260             </properties>
261         </profile>
262     </profiles>
263 </project>