blob: 6055f408a69a906ce4b84c104808dd0389653a1c [file] [log] [blame]
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
Guo Ruijing6abeb292017-07-28 08:23:01 +00004 ONAP Policy Engine - Drools PDP
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05005 ================================================================================
Jim Hahn50497072019-02-08 13:22:06 -05006 Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05007 ================================================================================
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
Jim Hahn50497072019-02-08 13:22:06 -050011
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050012 http://www.apache.org/licenses/LICENSE-2.0
Jim Hahn50497072019-02-08 13:22:06 -050013
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050014 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
liamfallon99200202018-10-31 16:00:08 +000022<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">
Pamela Dragoshfd307be2018-08-28 18:10:51 -040023 <modelVersion>4.0.0</modelVersion>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050024
Pamela Dragoshfd307be2018-08-28 18:10:51 -040025 <parent>
26 <groupId>org.onap.policy.drools-pdp</groupId>
27 <artifactId>drools-pdp</artifactId>
Pamela Dragosh55d77dd2019-06-28 13:49:05 -040028 <version>1.5.1-SNAPSHOT</version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040029 </parent>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050030
Pamela Dragoshfd307be2018-08-28 18:10:51 -040031 <artifactId>policy-management</artifactId>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050032
Pamela Dragoshfd307be2018-08-28 18:10:51 -040033 <name>policy-management</name>
34 <description>Policy Management</description>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050035
Jim Hahn2b13a1c2019-02-18 11:59:42 -050036 <properties>
37 <jackson.version>2.9.5</jackson.version>
38 </properties>
39
Pamela Dragoshfd307be2018-08-28 18:10:51 -040040 <build>
41 <plugins>
42 <plugin>
43 <artifactId>maven-assembly-plugin</artifactId>
44 <executions>
45 <execution>
46 <id>zipfile</id>
47 <goals>
48 <goal>single</goal>
49 </goals>
50 <phase>package</phase>
51 <configuration>
52 <attach>true</attach>
53 <finalName>${project.artifactId}-${project.version}</finalName>
54 <descriptors>
55 <descriptor>src/assembly/assemble_zip.xml</descriptor>
56 </descriptors>
57 <appendAssemblyId>false</appendAssemblyId>
58 </configuration>
59 </execution>
60 </executions>
61 </plugin>
62 <plugin>
63 <groupId>org.apache.maven.plugins</groupId>
64 <artifactId>maven-dependency-plugin</artifactId>
65 <executions>
66 <execution>
67 <id>copy-dependencies</id>
68 <goals>
69 <goal>copy-dependencies</goal>
70 </goals>
71 <phase>prepare-package</phase>
72 <configuration>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040073 <outputDirectory>${project.build.directory}/assembly/lib</outputDirectory>
74 <overWriteReleases>false</overWriteReleases>
75 <overWriteSnapshots>true</overWriteSnapshots>
76 <overWriteIfNewer>true</overWriteIfNewer>
77 <useRepositoryLayout>false</useRepositoryLayout>
78 <addParentPoms>false</addParentPoms>
79 <copyPom>false</copyPom>
80 <excludeGroupIds>javax.inject</excludeGroupIds>
81 <includeScope>runtime</includeScope>
82 </configuration>
83 </execution>
84 </executions>
85 </plugin>
86 <plugin>
87 <artifactId>maven-resources-plugin</artifactId>
88 <executions>
89 <execution>
90 <id>copy-version</id>
91 <goals>
92 <goal>copy-resources</goal>
93 </goals>
94 <phase>validate</phase>
95 <configuration>
96 <outputDirectory>${basedir}/target/versions</outputDirectory>
97 <resources>
98 <resource>
99 <directory>src/main/resources/versions</directory>
100 <includes>
101 <include>version.properties</include>
102 </includes>
103 <filtering>true</filtering>
104 </resource>
105 </resources>
106 </configuration>
107 </execution>
108 <execution>
109 <id>copy-resources</id>
110 <goals>
111 <goal>copy-resources</goal>
112 </goals>
113 <phase>validate</phase>
114 <configuration>
115 <outputDirectory>${basedir}/target/etc/bvc-extensions</outputDirectory>
116 <resources>
117 <resource>
118 <directory>src/main/resources/etc/bvc-extensions</directory>
119 <includes>
120 <include>feature_config_template.cfg</include>
121 <include>feature_custom.install</include>
122 </includes>
123 <filtering>true</filtering>
124 </resource>
125 </resources>
126 </configuration>
127 </execution>
128 </executions>
129 </plugin>
Pamela Dragosha0e0c782018-09-28 04:58:26 -0400130 <plugin>
131 <artifactId>maven-checkstyle-plugin</artifactId>
132 <executions>
133 <execution>
134 <id>onap-java-style</id>
135 <goals>
136 <goal>check</goal>
137 </goals>
138 <phase>process-sources</phase>
139 <configuration>
Jim Hahn50497072019-02-08 13:22:06 -0500140 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
Pamela Dragosha0e0c782018-09-28 04:58:26 -0400141 with minor changes -->
142 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
143 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
144 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
145 <includeResources>true</includeResources>
146 <includeTestSourceDirectory>true</includeTestSourceDirectory>
147 <includeTestResources>true</includeTestResources>
148 <excludes>
149 </excludes>
150 <suppressionsLocation>${project.baseUri}checkstyle-suppressions.xml</suppressionsLocation>
151 <consoleOutput>true</consoleOutput>
Pamela Dragosha0e0c782018-09-28 04:58:26 -0400152 <violationSeverity>warning</violationSeverity>
153 </configuration>
154 </execution>
155 </executions>
156 <dependencies>
157 <dependency>
158 <groupId>org.onap.oparent</groupId>
159 <artifactId>checkstyle</artifactId>
160 <version>${oparent.version}</version>
161 <scope>compile</scope>
162 </dependency>
163 </dependencies>
164 </plugin>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400165 </plugins>
166 </build>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500167
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400168 <dependencies>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500169
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400170 <dependency>
171 <groupId>org.onap.policy.drools-pdp</groupId>
172 <artifactId>policy-core</artifactId>
173 <version>${project.version}</version>
174 </dependency>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500175
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400176 <dependency>
177 <groupId>org.onap.policy.common</groupId>
178 <artifactId>policy-endpoints</artifactId>
ramverma5bf84862018-10-24 19:35:48 +0100179 <version>${policy.common.version}</version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400180 </dependency>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500181
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400182 <dependency>
Jorge Hernandez964b1272019-03-28 01:12:10 -0500183 <groupId>org.onap.policy.models</groupId>
184 <artifactId>policy-models-pdp</artifactId>
185 <version>${policy.models.version}</version>
186 </dependency>
187
188 <dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400189 <groupId>org.eclipse.jetty</groupId>
190 <artifactId>jetty-server</artifactId>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400191 </dependency>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500192
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400193 <dependency>
194 <groupId>org.eclipse.jetty</groupId>
195 <artifactId>jetty-servlet</artifactId>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400196 </dependency>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500197
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400198 <dependency>
199 <groupId>org.glassfish.jersey.core</groupId>
200 <artifactId>jersey-server</artifactId>
201 <version>${jersey.version}</version>
202 </dependency>
Jorge Hernandez0c409142017-08-16 12:41:11 -0500203
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400204 <dependency>
205 <groupId>org.glassfish.jersey.containers</groupId>
206 <artifactId>jersey-container-servlet-core</artifactId>
207 </dependency>
Jorge Hernandez0c409142017-08-16 12:41:11 -0500208
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400209 <dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400210 <groupId>org.glassfish.jersey.containers</groupId>
211 <artifactId>jersey-container-jetty-http</artifactId>
212 <version>${jersey.version}</version>
213 <exclusions>
214 <exclusion>
215 <groupId>org.eclipse.jetty</groupId>
216 <artifactId>jetty-util</artifactId>
217 </exclusion>
218 </exclusions>
219 </dependency>
220
221 <dependency>
222 <groupId>io.swagger</groupId>
223 <artifactId>swagger-jersey2-jaxrs</artifactId>
224 </dependency>
225
226 <dependency>
227 <groupId>com.fasterxml.jackson.core</groupId>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400228 <artifactId>jackson-annotations</artifactId>
229 <version>${jackson.version}</version>
230 </dependency>
231
232 <dependency>
Jim Hahncb8557e2019-02-15 12:24:14 -0500233 <groupId>org.onap.policy.common</groupId>
234 <artifactId>gson</artifactId>
235 <version>${policy.common.version}</version>
236 </dependency>
237
238 <dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400239 <groupId>com.google.code.gson</groupId>
240 <artifactId>gson</artifactId>
241 </dependency>
242
243 <dependency>
244 <groupId>com.fatboyindustrial.gson-javatime-serialisers</groupId>
245 <artifactId>gson-javatime-serialisers</artifactId>
246 <version>1.1.1</version>
247 </dependency>
Daniel Cruzfa2a5a42019-02-14 00:42:45 -0600248
249 <dependency>
250 <groupId>com.jayway.jsonpath</groupId>
251 <artifactId>json-path</artifactId>
252 </dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400253
254 <dependency>
255 <groupId>org.apache.commons</groupId>
256 <artifactId>commons-collections4</artifactId>
257 <version>4.1</version>
258 </dependency>
Jim Hahn50497072019-02-08 13:22:06 -0500259
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400260 <!-- if we don't explicitly specify the version here, we seem to end up
261 with version 1.4 (as a dependency to drools-core). This version is
Jim Hahn50497072019-02-08 13:22:06 -0500262 not compatible with 'saClientLibrary' version 1.2.1-oss
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400263 -->
264 <dependency>
265 <groupId>commons-codec</groupId>
266 <artifactId>commons-codec</artifactId>
267 </dependency>
268
269 <dependency>
270 <groupId>ch.qos.logback</groupId>
271 <artifactId>logback-classic</artifactId>
272 </dependency>
273
274 <dependency>
275 <groupId>junit</groupId>
276 <artifactId>junit</artifactId>
277 <scope>test</scope>
278 </dependency>
Jim Hahn50497072019-02-08 13:22:06 -0500279
Jim Hahn08dc9c32018-10-02 16:46:57 -0400280 <dependency>
281 <groupId>org.powermock</groupId>
282 <artifactId>powermock-api-mockito</artifactId>
283 <scope>test</scope>
284 </dependency>
285
286 <dependency>
287 <groupId>org.onap.policy.common</groupId>
288 <artifactId>utils-test</artifactId>
ramverma5bf84862018-10-24 19:35:48 +0100289 <version>${policy.common.version}</version>
Jim Hahn08dc9c32018-10-02 16:46:57 -0400290 <scope>test</scope>
291 </dependency>
Jim Hahn50497072019-02-08 13:22:06 -0500292
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400293 <!--
294 The following dependencies are for features and drools
295 applications usage
296 -->
297
298 <dependency>
299 <groupId>org.eclipse.persistence</groupId>
300 <artifactId>eclipselink</artifactId>
301 </dependency>
302
303 <dependency>
304 <groupId>org.eclipse.persistence</groupId>
305 <artifactId>org.eclipse.persistence.jpa</artifactId>
306 </dependency>
307
308 <dependency>
309 <groupId>org.mariadb.jdbc</groupId>
310 <artifactId>mariadb-java-client</artifactId>
311 </dependency>
312
313 <dependency>
314 <groupId>org.hibernate</groupId>
315 <artifactId>hibernate-core</artifactId>
316 </dependency>
317
318 <dependency>
319 <groupId>org.hibernate.common</groupId>
320 <artifactId>hibernate-commons-annotations</artifactId>
321 </dependency>
322
323 <dependency>
324 <groupId>commons-io</groupId>
325 <artifactId>commons-io</artifactId>
326 </dependency>
327
Jim Hahn50497072019-02-08 13:22:06 -0500328 <dependency>
329 <groupId>org.assertj</groupId>
330 <artifactId>assertj-core</artifactId>
331 <scope>test</scope>
332 </dependency>
333
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400334 </dependencies>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500335</project>