a7c3d7c4a8c2b976cce3c262dc83903877d8113a
[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 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"
23     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.onap.policy.engine</groupId>
28         <artifactId>PolicyEngineSuite</artifactId>
29         <version>1.3.1-SNAPSHOT</version>
30     </parent>
31     <artifactId>LogParser</artifactId>
32     <dependencies>
33         <dependency>
34             <groupId>com.h2database</groupId>
35             <artifactId>h2</artifactId>
36         </dependency>
37         <dependency>
38             <groupId>org.mariadb.jdbc</groupId>
39             <artifactId>mariadb-java-client</artifactId>
40         </dependency>
41         <dependency>
42             <groupId>org.onap.policy.common</groupId>
43             <artifactId>ONAP-Logging</artifactId>
44             <version>${version.policy.common}</version>
45         </dependency>
46         <dependency>
47             <groupId>org.onap.policy.common</groupId>
48             <artifactId>integrity-monitor</artifactId>
49             <version>${version.policy.common}</version>
50         </dependency>
51         <dependency>
52             <groupId>org.apache.logging.log4j</groupId>
53             <artifactId>log4j-api</artifactId>
54             <version>2.8.2</version>
55         </dependency>
56         <dependency>
57             <groupId>org.apache.logging.log4j</groupId>
58             <artifactId>log4j-core</artifactId>
59             <version>2.8.2</version>
60         </dependency>
61         <dependency>
62             <groupId>org.eclipse.persistence</groupId>
63             <artifactId>javax.persistence</artifactId>
64             <version>2.1.0</version>
65         </dependency>
66         <dependency>
67             <groupId>org.eclipse.persistence</groupId>
68             <artifactId>eclipselink</artifactId>
69             <version>2.6.0</version>
70         </dependency>
71         <dependency>
72             <groupId>org.onap.policy.engine</groupId>
73             <artifactId>PolicyEngineUtils</artifactId>
74             <version>${project.version}</version>
75             <exclusions>
76                 <exclusion>
77                     <groupId>com.att.aft</groupId>
78                     <artifactId>dme2</artifactId>
79                 </exclusion>
80                 <exclusion>
81                     <groupId>org.json</groupId>
82                     <artifactId>json</artifactId>
83                 </exclusion>
84                 <exclusion>
85                     <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
86                     <artifactId>dmaapClient</artifactId>
87                 </exclusion>
88                 <exclusion>
89                     <groupId>com.att.nsa</groupId>
90                     <artifactId>cambriaClient</artifactId>
91                 </exclusion>
92                 <exclusion>
93                     <groupId>org.onap.aaf.cadi</groupId>
94                     <artifactId>cadi-aaf</artifactId>
95                 </exclusion>
96             </exclusions>
97         </dependency>
98     </dependencies>
99     <build>
100         <plugins>
101             <plugin> 
102                 <!-- Build an executable JAR -->
103                 <groupId>org.apache.maven.plugins</groupId>
104                 <artifactId>maven-assembly-plugin</artifactId>
105                 <configuration>
106                     <archive>
107                         <manifest>
108                             <addClasspath>true</addClasspath>
109                             <classpathPrefix>lib/</classpathPrefix>
110                             <mainClass>org.onap.xacml.parser.ParseLog</mainClass>
111                         </manifest>
112                     </archive>
113                     <descriptorRefs>
114                         <descriptorRef>jar-with-dependencies</descriptorRef>
115                     </descriptorRefs>
116                 </configuration>
117                 <executions>
118                     <execution>
119                         <id>make-assembly</id>
120                         <phase>package</phase>
121                         <goals>
122                             <goal>single</goal>
123                         </goals>
124                     </execution>
125                 </executions>
126             </plugin>
127             <plugin>
128                 <artifactId>maven-checkstyle-plugin</artifactId>
129                 <executions>
130                     <execution>
131                         <id>onap-java-style</id>
132                         <goals>
133                             <goal>check</goal>
134                         </goals>
135                         <phase>process-sources</phase>
136                         <configuration>
137                             <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml 
138                                 with minor changes -->
139                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
140                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated 
141                                 sources directory -->
142                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
143                             <includeResources>true</includeResources>
144                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
145                             <includeTestResources>true</includeTestResources>
146                             <excludes>
147                             </excludes>
148                             <consoleOutput>true</consoleOutput>
149                             <failOnViolation>true</failOnViolation>
150                             <violationSeverity>warning</violationSeverity>
151                         </configuration>
152                     </execution>
153                 </executions>
154                 <dependencies>
155                     <dependency>
156                         <groupId>org.onap.oparent</groupId>
157                         <artifactId>checkstyle</artifactId>
158                         <version>${oparent.version}</version>
159                         <scope>compile</scope>
160                     </dependency>
161                 </dependencies>
162             </plugin>
163         </plugins>
164     </build>
165 </project>