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