Release logging-analytics
[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</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       <dependency>
65         <groupId>junit</groupId>
66         <artifactId>junit</artifactId>
67         <version>4.11</version>
68         <scope>test</scope>
69       </dependency>
70       <dependency>
71         <groupId>org.mockito</groupId>
72         <artifactId>mockito-core</artifactId>
73         <version>2.15.0</version>
74         <scope>test</scope>
75       </dependency>
76     </dependencies>
77   </dependencyManagement>
78
79   <build>
80     <plugins>
81       <plugin>
82         <groupId>org.apache.maven.plugins</groupId>
83         <artifactId>maven-compiler-plugin</artifactId>
84       </plugin>
85       <!-- Plugin to identify root path of the project -->
86       <plugin>
87         <groupId>org.commonjava.maven.plugins</groupId>
88         <artifactId>directory-maven-plugin</artifactId>
89         <version>0.2</version>
90         <executions>
91           <execution>
92             <phase>validate</phase>
93             <id>directories</id>
94             <goals>
95               <goal>highest-basedir</goal>
96             </goals>
97             <configuration>
98               <property>baseDirPath</property>
99             </configuration>
100           </execution>
101         </executions>
102       </plugin>
103
104       <!-- Plugin to Generate/Validate Copyright License header -->
105       <!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>license-maven-plugin</artifactId> <version>1.20</version> <configuration> <processStartTag>============LICENSE_START=======================================================</processStartTag>
106         <sectionDelimiter>================================================================================</sectionDelimiter> <processEndTag>============LICENSE_END=========================================================</processEndTag>
107         <licenseName>apache_v2</licenseName> <inceptionYear>2019</inceptionYear> <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName> <projectName>ONAP
108         - Logging</projectName> <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage> <skipUpdateLicense>${format.skipExecute}</skipUpdateLicense> <skipCheckLicense>${format.skipValidate}</skipCheckLicense>
109         </configuration> <executions> <execution> <id>update-headers</id> <goals> <goal>update-file-header</goal> </goals> <phase>process-sources</phase> <configuration> <canUpdateCopyright>true</canUpdateCopyright>
110         <canUpdateDescription>true</canUpdateDescription> <canUpdateLicense>true</canUpdateLicense> <emptyLineAfterHeader>true</emptyLineAfterHeader> </configuration> </execution> <execution>
111         <id>check-headers</id> <goals> <goal>check-file-header</goal> </goals> <phase>validate</phase> <configuration> <failOnNotUptodateHeader>true</failOnNotUptodateHeader> <failOnMissingHeader>true</failOnMissingHeader>
112         </configuration> </execution> </executions> </plugin> -->
113
114       <!-- Plugin to Format/Validate Java Classes -->
115       <plugin>
116         <groupId>net.revelc.code.formatter</groupId>
117         <artifactId>formatter-maven-plugin</artifactId>
118         <version>2.10.0</version>
119         <executions>
120           <execution>
121             <id>format-java</id>
122             <goals>
123               <goal>format</goal>
124             </goals>
125             <phase>process-sources</phase>
126             <configuration>
127               <lineEnding>LF</lineEnding>
128               <skip>${format.skipExecute}</skip>
129               <sourceDirectory>${project.basedir}</sourceDirectory>
130               <configFile>${baseDirPath}/project-configs/code-tools/onap-java-format.xml</configFile>
131               <includes>
132                 <include>src/**/*.java</include>
133               </includes>
134             </configuration>
135           </execution>
136           <execution>
137             <id>validate-java</id>
138             <goals>
139               <goal>validate</goal>
140             </goals>
141             <phase>validate</phase>
142             <configuration>
143               <lineEnding>LF</lineEnding>
144               <skip>${format.skipValidate}</skip>
145               <sourceDirectory>${project.basedir}</sourceDirectory>
146               <configFile>${baseDirPath}/project-configs/code-tools/onap-java-format.xml</configFile>
147               <includes>
148                 <include>src/**/*.java</include>
149               </includes>
150             </configuration>
151           </execution>
152         </executions>
153         <dependencies>
154           <dependency>
155             <groupId>com.fasterxml.jackson.core</groupId>
156             <artifactId>jackson-annotations</artifactId>
157             <version>2.9.8</version>
158           </dependency>
159         </dependencies>
160       </plugin>
161
162       <!-- Plugin to Format/Validate POM Files -->
163       <plugin>
164         <groupId>org.codehaus.mojo</groupId>
165         <artifactId>tidy-maven-plugin</artifactId>
166         <version>1.1.0</version>
167         <executions>
168           <execution>
169             <id>format-pom</id>
170             <phase>process-sources</phase>
171             <goals>
172               <goal>pom</goal>
173             </goals>
174             <configuration>
175               <skip>${format.skipExecute}</skip>
176             </configuration>
177           </execution>
178           <execution>
179             <id>validate-pom</id>
180             <phase>validate</phase>
181             <goals>
182               <goal>check</goal>
183             </goals>
184             <configuration>
185               <skip>${format.skipValidate}</skip>
186             </configuration>
187           </execution>
188         </executions>
189       </plugin>
190     </plugins>
191   </build>
192
193   <profiles>
194     <profile>
195       <id>format</id>
196       <properties>
197         <format.skipValidate>true</format.skipValidate>
198         <format.skipExecute>false</format.skipExecute>
199       </properties>
200     </profile>
201   </profiles>
202 </project>