1f77af82c3cfe16f5c7a39a8c91e95e85526e3fa
[policy/engine.git] / LogParser / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP Policy Engine
5   ================================================================================
6   Copyright (C) 2017-2018, 2020 AT&T Intellectual Property. All rights reserved.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11   
12        http://www.apache.org/licenses/LICENSE-2.0
13   
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19   ============LICENSE_END=========================================================
20   -->
21
22 <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">
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.onap.policy.engine</groupId>
26         <artifactId>PolicyEngineSuite</artifactId>
27         <version>1.6.1-SNAPSHOT</version>
28     </parent>
29     <artifactId>LogParser</artifactId>
30     <dependencies>
31         <dependency>
32             <groupId>com.h2database</groupId>
33             <artifactId>h2</artifactId>
34         </dependency>
35         <dependency>
36             <groupId>org.mariadb.jdbc</groupId>
37             <artifactId>mariadb-java-client</artifactId>
38         </dependency>
39         <dependency>
40             <groupId>org.onap.policy.common</groupId>
41             <artifactId>ONAP-Logging</artifactId>
42             <version>${version.policy.common}</version>
43         </dependency>
44         <dependency>
45             <groupId>org.onap.policy.common</groupId>
46             <artifactId>integrity-monitor</artifactId>
47             <version>${version.policy.common}</version>
48         </dependency>
49         <dependency>
50             <groupId>org.apache.logging.log4j</groupId>
51             <artifactId>log4j-api</artifactId>
52             <version>2.8.2</version>
53         </dependency>
54         <dependency>
55             <groupId>org.apache.logging.log4j</groupId>
56             <artifactId>log4j-core</artifactId>
57             <version>2.8.2</version>
58         </dependency>
59         <dependency>
60             <groupId>org.eclipse.persistence</groupId>
61             <artifactId>javax.persistence</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>org.eclipse.persistence</groupId>
65             <artifactId>eclipselink</artifactId>
66         </dependency>
67         <dependency>
68             <groupId>org.onap.policy.engine</groupId>
69             <artifactId>PolicyEngineUtils</artifactId>
70             <version>${project.version}</version>
71             <exclusions>
72                 <exclusion>
73                     <groupId>com.att.aft</groupId>
74                     <artifactId>dme2</artifactId>
75                 </exclusion>
76                 <exclusion>
77                     <groupId>org.json</groupId>
78                     <artifactId>json</artifactId>
79                 </exclusion>
80                 <exclusion>
81                     <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
82                     <artifactId>dmaapClient</artifactId>
83                 </exclusion>
84                 <exclusion>
85                     <groupId>com.att.nsa</groupId>
86                     <artifactId>cambriaClient</artifactId>
87                 </exclusion>
88                 <exclusion>
89                     <groupId>org.onap.aaf.cadi</groupId>
90                     <artifactId>cadi-aaf</artifactId>
91                 </exclusion>
92             </exclusions>
93         </dependency>
94     </dependencies>
95     <build>
96         <plugins>
97             <plugin> 
98                 <!-- Build an executable JAR -->
99                 <groupId>org.apache.maven.plugins</groupId>
100                 <artifactId>maven-assembly-plugin</artifactId>
101                 <configuration>
102                     <archive>
103                         <manifest>
104                             <addClasspath>true</addClasspath>
105                             <classpathPrefix>lib/</classpathPrefix>
106                             <mainClass>org.onap.xacml.parser.ParseLog</mainClass>
107                         </manifest>
108                     </archive>
109                     <descriptorRefs>
110                         <descriptorRef>jar-with-dependencies</descriptorRef>
111                     </descriptorRefs>
112                 </configuration>
113                 <executions>
114                     <execution>
115                         <id>make-assembly</id>
116                         <phase>package</phase>
117                         <goals>
118                             <goal>single</goal>
119                         </goals>
120                     </execution>
121                 </executions>
122             </plugin>
123             <plugin>
124                 <artifactId>maven-checkstyle-plugin</artifactId>
125                 <executions>
126                     <execution>
127                         <id>onap-java-style</id>
128                         <goals>
129                             <goal>check</goal>
130                         </goals>
131                         <phase>process-sources</phase>
132                         <configuration>
133                             <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml 
134                                 with minor changes -->
135                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
136                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated 
137                                 sources directory -->
138                             <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
139                             <includeResources>true</includeResources>
140                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
141                             <includeTestResources>true</includeTestResources>
142                             <excludes>
143                             </excludes>
144                             <consoleOutput>true</consoleOutput>
145                             <failOnViolation>true</failOnViolation>
146                             <violationSeverity>warning</violationSeverity>
147                         </configuration>
148                     </execution>
149                 </executions>
150                 <dependencies>
151                     <dependency>
152                         <groupId>org.onap.oparent</groupId>
153                         <artifactId>checkstyle</artifactId>
154                         <version>${oparent.version}</version>
155                         <scope>compile</scope>
156                     </dependency>
157                 </dependencies>
158             </plugin>
159         </plugins>
160     </build>
161 </project>