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