Test gson in policy-management
[policy/drools-pdp.git] / policy-management / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP Policy Engine - Drools PDP
5   ================================================================================
6   Copyright (C) 2017-2019 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/maven-v4_0_0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24
25     <parent>
26         <groupId>org.onap.policy.drools-pdp</groupId>
27         <artifactId>drools-pdp</artifactId>
28         <version>1.4.0-SNAPSHOT</version>
29     </parent>
30
31     <artifactId>policy-management</artifactId>
32
33     <name>policy-management</name>
34     <description>Policy Management</description>
35
36     <build>
37         <plugins>
38             <plugin>
39                 <artifactId>maven-assembly-plugin</artifactId>
40                 <executions>
41                     <execution>
42                         <id>zipfile</id>
43                         <goals>
44                             <goal>single</goal>
45                         </goals>
46                         <phase>package</phase>
47                         <configuration>
48                             <attach>true</attach>
49                             <finalName>${project.artifactId}-${project.version}</finalName>
50                             <descriptors>
51                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
52                             </descriptors>
53                             <appendAssemblyId>false</appendAssemblyId>
54                         </configuration>
55                     </execution>
56                 </executions>
57             </plugin>
58             <plugin>
59                 <groupId>org.apache.maven.plugins</groupId>
60                 <artifactId>maven-dependency-plugin</artifactId>
61                 <executions>
62                     <execution>
63                         <id>copy-dependencies</id>
64                         <goals>
65                             <goal>copy-dependencies</goal>
66                         </goals>
67                         <phase>prepare-package</phase>
68                         <configuration>
69                             <transitive>false</transitive>
70                             <outputDirectory>${project.build.directory}/assembly/lib</outputDirectory>
71                             <overWriteReleases>false</overWriteReleases>
72                             <overWriteSnapshots>true</overWriteSnapshots>
73                             <overWriteIfNewer>true</overWriteIfNewer>
74                             <useRepositoryLayout>false</useRepositoryLayout>
75                             <addParentPoms>false</addParentPoms>
76                             <copyPom>false</copyPom>
77                             <excludeGroupIds>javax.inject</excludeGroupIds>
78                             <includeScope>runtime</includeScope>
79                         </configuration>
80                     </execution>
81                 </executions>
82             </plugin>
83             <plugin>
84                 <artifactId>maven-resources-plugin</artifactId>
85                 <executions>
86                     <execution>
87                         <id>copy-version</id>
88                         <goals>
89                             <goal>copy-resources</goal>
90                         </goals>
91                         <phase>validate</phase>
92                         <configuration>
93                             <outputDirectory>${basedir}/target/versions</outputDirectory>
94                             <resources>
95                                 <resource>
96                                     <directory>src/main/resources/versions</directory>
97                                     <includes>
98                                         <include>version.properties</include>
99                                     </includes>
100                                     <filtering>true</filtering>
101                                 </resource>
102                             </resources>
103                         </configuration>
104                     </execution>
105                     <execution>
106                         <id>copy-resources</id>
107                         <goals>
108                             <goal>copy-resources</goal>
109                         </goals>
110                         <phase>validate</phase>
111                         <configuration>
112                             <outputDirectory>${basedir}/target/etc/bvc-extensions</outputDirectory>
113                             <resources>
114                                 <resource>
115                                     <directory>src/main/resources/etc/bvc-extensions</directory>
116                                     <includes>
117                                         <include>feature_config_template.cfg</include>
118                                         <include>feature_custom.install</include>
119                                     </includes>
120                                     <filtering>true</filtering>
121                                 </resource>
122                             </resources>
123                         </configuration>
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 sources directory -->
141                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
142                             <includeResources>true</includeResources>
143                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
144                             <includeTestResources>true</includeTestResources>
145                             <excludes>
146                             </excludes>
147                             <suppressionsLocation>${project.baseUri}checkstyle-suppressions.xml</suppressionsLocation>
148                             <consoleOutput>true</consoleOutput>
149                             <failsOnViolation>true</failsOnViolation>
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
166     <dependencies>
167
168         <dependency>
169             <groupId>org.onap.policy.drools-pdp</groupId>
170             <artifactId>policy-core</artifactId>
171             <version>${project.version}</version>
172         </dependency>
173
174         <dependency>
175             <groupId>org.onap.policy.common</groupId>
176             <artifactId>policy-endpoints</artifactId>
177             <version>${policy.common.version}</version>
178         </dependency>
179
180         <dependency>
181             <groupId>org.eclipse.jetty</groupId>
182             <artifactId>jetty-server</artifactId>
183         </dependency>
184
185         <dependency>
186             <groupId>org.eclipse.jetty</groupId>
187             <artifactId>jetty-servlet</artifactId>
188         </dependency>
189
190         <dependency>
191             <groupId>org.glassfish.jersey.core</groupId>
192             <artifactId>jersey-server</artifactId>
193             <version>${jersey.version}</version>
194         </dependency>
195
196         <dependency>
197             <groupId>org.glassfish.jersey.containers</groupId>
198             <artifactId>jersey-container-servlet-core</artifactId>
199         </dependency>
200
201         <dependency>
202             <groupId>org.glassfish.jersey.containers</groupId>
203             <artifactId>jersey-container-jetty-http</artifactId>
204             <version>${jersey.version}</version>
205             <exclusions>
206                 <exclusion>
207                     <groupId>org.eclipse.jetty</groupId>
208                     <artifactId>jetty-util</artifactId>
209                 </exclusion>
210             </exclusions>
211         </dependency>
212
213         <dependency>
214             <groupId>io.swagger</groupId>
215             <artifactId>swagger-jersey2-jaxrs</artifactId>
216         </dependency>
217
218         <dependency>
219             <groupId>com.fasterxml.jackson.core</groupId>
220             <artifactId>jackson-annotations</artifactId>
221             <version>${jackson.version}</version>
222         </dependency>
223
224         <dependency>
225             <groupId>org.onap.policy.common</groupId>
226             <artifactId>gson</artifactId>
227             <version>${policy.common.version}</version>
228         </dependency>
229
230         <dependency>
231             <groupId>com.google.code.gson</groupId>
232             <artifactId>gson</artifactId>
233         </dependency>
234
235         <dependency>
236             <groupId>com.fatboyindustrial.gson-javatime-serialisers</groupId>
237             <artifactId>gson-javatime-serialisers</artifactId>
238             <version>1.1.1</version>
239         </dependency>
240
241         <dependency>
242             <groupId>org.apache.commons</groupId>
243             <artifactId>commons-collections4</artifactId>
244             <version>4.1</version>
245         </dependency>
246
247         <!-- if we don't explicitly specify the version here, we seem to end up
248         with version 1.4 (as a dependency to drools-core). This version is
249         not compatible with 'saClientLibrary' version 1.2.1-oss
250         -->
251         <dependency>
252             <groupId>commons-codec</groupId>
253             <artifactId>commons-codec</artifactId>
254         </dependency>
255
256         <dependency>
257             <groupId>ch.qos.logback</groupId>
258             <artifactId>logback-classic</artifactId>
259         </dependency>
260
261         <dependency>
262             <groupId>junit</groupId>
263             <artifactId>junit</artifactId>
264             <scope>test</scope>
265         </dependency>
266
267         <dependency>
268             <groupId>org.powermock</groupId>
269             <artifactId>powermock-api-mockito</artifactId>
270             <scope>test</scope>
271         </dependency>
272
273         <dependency>
274             <groupId>org.onap.policy.common</groupId>
275             <artifactId>utils-test</artifactId>
276             <version>${policy.common.version}</version>
277             <scope>test</scope>
278         </dependency>
279
280         <!--
281         The following dependencies are for features and drools
282         applications usage
283         -->
284
285         <dependency>
286             <groupId>org.eclipse.persistence</groupId>
287             <artifactId>eclipselink</artifactId>
288         </dependency>
289
290         <dependency>
291             <groupId>org.eclipse.persistence</groupId>
292             <artifactId>org.eclipse.persistence.jpa</artifactId>
293         </dependency>
294
295         <dependency>
296             <groupId>org.mariadb.jdbc</groupId>
297             <artifactId>mariadb-java-client</artifactId>
298         </dependency>
299
300         <dependency>
301             <groupId>org.hibernate</groupId>
302             <artifactId>hibernate-core</artifactId>
303         </dependency>
304
305         <dependency>
306             <groupId>org.hibernate.common</groupId>
307             <artifactId>hibernate-commons-annotations</artifactId>
308         </dependency>
309
310         <dependency>
311             <groupId>commons-io</groupId>
312             <artifactId>commons-io</artifactId>
313         </dependency>
314
315         <dependency>
316             <groupId>org.assertj</groupId>
317             <artifactId>assertj-core</artifactId>
318             <scope>test</scope>
319         </dependency>
320
321     </dependencies>
322
323 </project>