Update to 1.6.7-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.7-SNAPSHOT</version>
9   </parent>
10
11   <artifactId>logging-filter-parent</artifactId>
12   <packaging>pom</packaging>
13
14   <name>logging-analytics :: ${project.artifactId}</name>
15
16   <modules>
17     <module>logging-filter-base</module>
18     <module>logging-filter-spring</module>
19   </modules>
20
21   <properties>
22     <format.skipValidate>false</format.skipValidate>
23     <format.skipExecute>true</format.skipExecute>
24     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
25   </properties>
26
27   <dependencyManagement>
28     <dependencies>
29       <dependency>
30         <groupId>org.aspectj</groupId>
31         <artifactId>aspectjrt</artifactId>
32         <version>1.9.5</version>
33           </dependency>
34       <dependency>
35         <groupId>javax.annotation</groupId>
36         <artifactId>javax.annotation-api</artifactId>
37         <version>1.2</version>
38         <scope>provided</scope>
39       </dependency>
40       <dependency>
41         <groupId>org.onap.logging-analytics</groupId>
42         <artifactId>logging-slf4j</artifactId>
43         <version>${project.version}</version>
44       </dependency>
45       <dependency>
46         <groupId>javax.servlet</groupId>
47         <artifactId>javax.servlet-api</artifactId>
48         <version>3.1.0</version>
49         <scope>provided</scope>
50       </dependency>
51       <dependency>
52         <groupId>javax.ws.rs</groupId>
53         <artifactId>javax.ws.rs-api</artifactId>
54         <version>2.0.1</version>
55         <scope>provided</scope>
56       </dependency>
57       <dependency>
58         <groupId>org.slf4j</groupId>
59         <artifactId>slf4j-api</artifactId>
60         <version>1.7.25</version>
61         <scope>provided</scope>
62       </dependency>
63       <dependency>
64         <groupId>org.apache.logging.log4j</groupId>
65         <artifactId>log4j-slf4j-impl</artifactId>
66         <version>2.11.2</version>
67         <scope>test</scope>
68       </dependency>
69     </dependencies>
70   </dependencyManagement>
71
72   <build>
73     <plugins>
74       <plugin>
75         <groupId>org.apache.maven.plugins</groupId>
76         <artifactId>maven-compiler-plugin</artifactId>
77       </plugin>
78       <!-- Plugin to identify root path of the project -->
79       <plugin>
80         <groupId>org.commonjava.maven.plugins</groupId>
81         <artifactId>directory-maven-plugin</artifactId>
82         <version>0.2</version>
83         <executions>
84           <execution>
85             <phase>validate</phase>
86             <id>directories</id>
87             <goals>
88               <goal>highest-basedir</goal>
89             </goals>
90             <configuration>
91               <property>baseDirPath</property>
92             </configuration>
93           </execution>
94         </executions>
95       </plugin>
96
97       <!-- Plugin to Generate/Validate Copyright License header -->
98       <!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>license-maven-plugin</artifactId> <version>1.20</version> <configuration> <processStartTag>============LICENSE_START=======================================================</processStartTag>
99         <sectionDelimiter>================================================================================</sectionDelimiter> <processEndTag>============LICENSE_END=========================================================</processEndTag>
100         <licenseName>apache_v2</licenseName> <inceptionYear>2019</inceptionYear> <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName> <projectName>ONAP
101         - Logging</projectName> <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage> <skipUpdateLicense>${format.skipExecute}</skipUpdateLicense> <skipCheckLicense>${format.skipValidate}</skipCheckLicense>
102         </configuration> <executions> <execution> <id>update-headers</id> <goals> <goal>update-file-header</goal> </goals> <phase>process-sources</phase> <configuration> <canUpdateCopyright>true</canUpdateCopyright>
103         <canUpdateDescription>true</canUpdateDescription> <canUpdateLicense>true</canUpdateLicense> <emptyLineAfterHeader>true</emptyLineAfterHeader> </configuration> </execution> <execution>
104         <id>check-headers</id> <goals> <goal>check-file-header</goal> </goals> <phase>validate</phase> <configuration> <failOnNotUptodateHeader>true</failOnNotUptodateHeader> <failOnMissingHeader>true</failOnMissingHeader>
105         </configuration> </execution> </executions> </plugin> -->
106
107       <!-- Plugin to Format/Validate Java Classes -->
108       <plugin>
109         <groupId>net.revelc.code.formatter</groupId>
110         <artifactId>formatter-maven-plugin</artifactId>
111         <version>2.10.0</version>
112         <executions>
113           <execution>
114             <id>format-java</id>
115             <goals>
116               <goal>format</goal>
117             </goals>
118             <phase>process-sources</phase>
119             <configuration>
120               <lineEnding>LF</lineEnding>
121               <skip>${format.skipExecute}</skip>
122               <sourceDirectory>${project.basedir}</sourceDirectory>
123               <configFile>${baseDirPath}/project-configs/code-tools/onap-java-format.xml</configFile>
124               <includes>
125                 <include>src/**/*.java</include>
126               </includes>
127             </configuration>
128           </execution>
129           <execution>
130             <id>validate-java</id>
131             <goals>
132               <goal>validate</goal>
133             </goals>
134             <phase>validate</phase>
135             <configuration>
136               <lineEnding>LF</lineEnding>
137               <skip>${format.skipValidate}</skip>
138               <sourceDirectory>${project.basedir}</sourceDirectory>
139               <configFile>${baseDirPath}/project-configs/code-tools/onap-java-format.xml</configFile>
140               <includes>
141                 <include>src/**/*.java</include>
142               </includes>
143             </configuration>
144           </execution>
145         </executions>
146         <dependencies>
147           <dependency>
148             <groupId>com.fasterxml.jackson.core</groupId>
149             <artifactId>jackson-annotations</artifactId>
150             <version>2.9.8</version>
151           </dependency>
152         </dependencies>
153       </plugin>
154
155       <!-- Plugin to Format/Validate POM Files -->
156       <plugin>
157         <groupId>org.codehaus.mojo</groupId>
158         <artifactId>tidy-maven-plugin</artifactId>
159         <version>1.1.0</version>
160         <executions>
161           <execution>
162             <id>format-pom</id>
163             <phase>process-sources</phase>
164             <goals>
165               <goal>pom</goal>
166             </goals>
167             <configuration>
168               <skip>${format.skipExecute}</skip>
169             </configuration>
170           </execution>
171           <execution>
172             <id>validate-pom</id>
173             <phase>validate</phase>
174             <goals>
175               <goal>check</goal>
176             </goals>
177             <configuration>
178               <skip>${format.skipValidate}</skip>
179             </configuration>
180           </execution>
181         </executions>
182       </plugin>
183     </plugins>
184   </build>
185
186   <profiles>
187     <profile>
188       <id>format</id>
189       <properties>
190         <format.skipValidate>true</format.skipValidate>
191         <format.skipExecute>false</format.skipExecute>
192       </properties>
193     </profile>
194   </profiles>
195 </project>