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