blob: 7d3ac12f88aabecf628acf98eda35f0212632348 [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 ================================================================================
Hockla, Ali (ah999m)956a7b52020-01-13 14:11:46 -06006 Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved.
liamfalloneb70ba32019-11-01 12:01:13 +00007 Modifications Copyright (C) 2019 Nordix Foundation.
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05008 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
Jim Hahn50497072019-02-08 13:22:06 -050012
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050013 http://www.apache.org/licenses/LICENSE-2.0
Jim Hahn50497072019-02-08 13:22:06 -050014
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050015 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END=========================================================
21 -->
22
liamfallon99200202018-10-31 16:00:08 +000023<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 -040024 <modelVersion>4.0.0</modelVersion>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050025
Pamela Dragoshfd307be2018-08-28 18:10:51 -040026 <parent>
27 <groupId>org.onap.policy.drools-pdp</groupId>
28 <artifactId>drools-pdp</artifactId>
Jim Hahn89a8e322019-09-10 11:22:40 -040029 <version>1.6.0-SNAPSHOT</version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040030 </parent>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050031
Pamela Dragoshfd307be2018-08-28 18:10:51 -040032 <artifactId>policy-management</artifactId>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050033
Pamela Dragoshfd307be2018-08-28 18:10:51 -040034 <name>policy-management</name>
35 <description>Policy Management</description>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050036
Jim Hahn2b13a1c2019-02-18 11:59:42 -050037 <properties>
38 <jackson.version>2.9.5</jackson.version>
39 </properties>
40
Pamela Dragoshfd307be2018-08-28 18:10:51 -040041 <build>
42 <plugins>
43 <plugin>
44 <artifactId>maven-assembly-plugin</artifactId>
45 <executions>
46 <execution>
47 <id>zipfile</id>
48 <goals>
49 <goal>single</goal>
50 </goals>
51 <phase>package</phase>
52 <configuration>
53 <attach>true</attach>
54 <finalName>${project.artifactId}-${project.version}</finalName>
55 <descriptors>
56 <descriptor>src/assembly/assemble_zip.xml</descriptor>
57 </descriptors>
58 <appendAssemblyId>false</appendAssemblyId>
59 </configuration>
60 </execution>
61 </executions>
62 </plugin>
63 <plugin>
64 <groupId>org.apache.maven.plugins</groupId>
65 <artifactId>maven-dependency-plugin</artifactId>
66 <executions>
67 <execution>
68 <id>copy-dependencies</id>
69 <goals>
70 <goal>copy-dependencies</goal>
71 </goals>
72 <phase>prepare-package</phase>
73 <configuration>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040074 <outputDirectory>${project.build.directory}/assembly/lib</outputDirectory>
75 <overWriteReleases>false</overWriteReleases>
76 <overWriteSnapshots>true</overWriteSnapshots>
77 <overWriteIfNewer>true</overWriteIfNewer>
78 <useRepositoryLayout>false</useRepositoryLayout>
79 <addParentPoms>false</addParentPoms>
80 <copyPom>false</copyPom>
81 <excludeGroupIds>javax.inject</excludeGroupIds>
82 <includeScope>runtime</includeScope>
83 </configuration>
84 </execution>
85 </executions>
86 </plugin>
87 <plugin>
88 <artifactId>maven-resources-plugin</artifactId>
89 <executions>
90 <execution>
91 <id>copy-version</id>
92 <goals>
93 <goal>copy-resources</goal>
94 </goals>
95 <phase>validate</phase>
96 <configuration>
97 <outputDirectory>${basedir}/target/versions</outputDirectory>
98 <resources>
99 <resource>
100 <directory>src/main/resources/versions</directory>
101 <includes>
102 <include>version.properties</include>
103 </includes>
104 <filtering>true</filtering>
105 </resource>
106 </resources>
107 </configuration>
108 </execution>
109 <execution>
110 <id>copy-resources</id>
111 <goals>
112 <goal>copy-resources</goal>
113 </goals>
114 <phase>validate</phase>
115 <configuration>
116 <outputDirectory>${basedir}/target/etc/bvc-extensions</outputDirectory>
117 <resources>
118 <resource>
119 <directory>src/main/resources/etc/bvc-extensions</directory>
120 <includes>
121 <include>feature_config_template.cfg</include>
122 <include>feature_custom.install</include>
123 </includes>
124 <filtering>true</filtering>
125 </resource>
126 </resources>
127 </configuration>
128 </execution>
129 </executions>
130 </plugin>
Pamela Dragosha0e0c782018-09-28 04:58:26 -0400131 <plugin>
132 <artifactId>maven-checkstyle-plugin</artifactId>
133 <executions>
134 <execution>
135 <id>onap-java-style</id>
136 <goals>
137 <goal>check</goal>
138 </goals>
139 <phase>process-sources</phase>
140 <configuration>
Jim Hahn50497072019-02-08 13:22:06 -0500141 <!-- 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 -0400142 with minor changes -->
143 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
144 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
Hockla, Ali (ah999m)956a7b52020-01-13 14:11:46 -0600145 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
Pamela Dragosha0e0c782018-09-28 04:58:26 -0400146 <includeResources>true</includeResources>
147 <includeTestSourceDirectory>true</includeTestSourceDirectory>
148 <includeTestResources>true</includeTestResources>
149 <excludes>
150 </excludes>
Pamela Dragosha0e0c782018-09-28 04:58:26 -0400151 <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>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400199 <groupId>com.fasterxml.jackson.core</groupId>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400200 <artifactId>jackson-annotations</artifactId>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400201 </dependency>
202
203 <dependency>
Jim Hahncb8557e2019-02-15 12:24:14 -0500204 <groupId>org.onap.policy.common</groupId>
205 <artifactId>gson</artifactId>
206 <version>${policy.common.version}</version>
207 </dependency>
208
209 <dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400210 <groupId>com.google.code.gson</groupId>
211 <artifactId>gson</artifactId>
212 </dependency>
213
214 <dependency>
215 <groupId>com.fatboyindustrial.gson-javatime-serialisers</groupId>
216 <artifactId>gson-javatime-serialisers</artifactId>
217 <version>1.1.1</version>
218 </dependency>
Daniel Cruzfa2a5a42019-02-14 00:42:45 -0600219
220 <dependency>
221 <groupId>com.jayway.jsonpath</groupId>
222 <artifactId>json-path</artifactId>
223 </dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400224
225 <dependency>
226 <groupId>org.apache.commons</groupId>
227 <artifactId>commons-collections4</artifactId>
228 <version>4.1</version>
229 </dependency>
Jim Hahn50497072019-02-08 13:22:06 -0500230
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400231 <!-- if we don't explicitly specify the version here, we seem to end up
232 with version 1.4 (as a dependency to drools-core). This version is
Jim Hahn50497072019-02-08 13:22:06 -0500233 not compatible with 'saClientLibrary' version 1.2.1-oss
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400234 -->
235 <dependency>
236 <groupId>commons-codec</groupId>
237 <artifactId>commons-codec</artifactId>
238 </dependency>
239
240 <dependency>
241 <groupId>ch.qos.logback</groupId>
242 <artifactId>logback-classic</artifactId>
243 </dependency>
244
245 <dependency>
246 <groupId>junit</groupId>
247 <artifactId>junit</artifactId>
248 <scope>test</scope>
249 </dependency>
Jim Hahn50497072019-02-08 13:22:06 -0500250
Jim Hahn08dc9c32018-10-02 16:46:57 -0400251 <dependency>
252 <groupId>org.powermock</groupId>
Hockla, Ali (ah999m)956a7b52020-01-13 14:11:46 -0600253 <artifactId>powermock-api-mockito2</artifactId>
Jim Hahn08dc9c32018-10-02 16:46:57 -0400254 <scope>test</scope>
255 </dependency>
256
257 <dependency>
258 <groupId>org.onap.policy.common</groupId>
259 <artifactId>utils-test</artifactId>
ramverma5bf84862018-10-24 19:35:48 +0100260 <version>${policy.common.version}</version>
Jim Hahn08dc9c32018-10-02 16:46:57 -0400261 <scope>test</scope>
262 </dependency>
Jim Hahn50497072019-02-08 13:22:06 -0500263
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400264 <!--
265 The following dependencies are for features and drools
266 applications usage
267 -->
268
269 <dependency>
270 <groupId>org.eclipse.persistence</groupId>
271 <artifactId>eclipselink</artifactId>
272 </dependency>
273
274 <dependency>
275 <groupId>org.eclipse.persistence</groupId>
276 <artifactId>org.eclipse.persistence.jpa</artifactId>
277 </dependency>
278
279 <dependency>
280 <groupId>org.mariadb.jdbc</groupId>
281 <artifactId>mariadb-java-client</artifactId>
282 </dependency>
283
284 <dependency>
285 <groupId>org.hibernate</groupId>
286 <artifactId>hibernate-core</artifactId>
287 </dependency>
288
289 <dependency>
290 <groupId>org.hibernate.common</groupId>
291 <artifactId>hibernate-commons-annotations</artifactId>
292 </dependency>
293
294 <dependency>
295 <groupId>commons-io</groupId>
296 <artifactId>commons-io</artifactId>
297 </dependency>
298
Jim Hahn50497072019-02-08 13:22:06 -0500299 <dependency>
300 <groupId>org.assertj</groupId>
301 <artifactId>assertj-core</artifactId>
302 <scope>test</scope>
303 </dependency>
304
Jim Hahn59e9b9a2019-08-14 17:31:50 -0400305 <dependency>
306 <groupId>org.awaitility</groupId>
307 <artifactId>awaitility</artifactId>
Jim Hahn59e9b9a2019-08-14 17:31:50 -0400308 <scope>test</scope>
309 </dependency>
310
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400311 </dependencies>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500312</project>