1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
4 ONAP Policy Engine - Drools PDP
5 ================================================================================
6 Copyright (C) 2017-2021 AT&T Intellectual Property. All rights reserved.
7 Modifications Copyright (C) 2020 Nordix Foundation.
8 ================================================================================
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
13 http://www.apache.org/licenses/LICENSE-2.0
15 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=========================================================
23 <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">
24 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.policy.drools-pdp</groupId>
28 <artifactId>drools-pdp</artifactId>
29 <version>1.8.2-SNAPSHOT</version>
32 <artifactId>policy-management</artifactId>
34 <name>policy-management</name>
35 <description>Policy Management</description>
40 <artifactId>maven-assembly-plugin</artifactId>
47 <phase>package</phase>
50 <finalName>${project.artifactId}-${project.version}</finalName>
52 <descriptor>src/assembly/assemble_zip.xml</descriptor>
54 <appendAssemblyId>false</appendAssemblyId>
60 <groupId>org.apache.maven.plugins</groupId>
61 <artifactId>maven-dependency-plugin</artifactId>
64 <id>copy-dependencies</id>
66 <goal>copy-dependencies</goal>
68 <phase>prepare-package</phase>
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>
84 <artifactId>maven-resources-plugin</artifactId>
89 <goal>copy-resources</goal>
91 <phase>validate</phase>
93 <outputDirectory>${basedir}/target/versions</outputDirectory>
96 <directory>src/main/resources/versions</directory>
98 <include>version.properties</include>
100 <filtering>true</filtering>
106 <id>copy-resources</id>
108 <goal>copy-resources</goal>
110 <phase>validate</phase>
112 <outputDirectory>${basedir}/target/etc/bvc-extensions</outputDirectory>
115 <directory>src/main/resources/etc/bvc-extensions</directory>
117 <include>feature_config_template.cfg</include>
118 <include>feature_custom.install</include>
120 <filtering>true</filtering>
128 <artifactId>maven-checkstyle-plugin</artifactId>
131 <id>onap-java-style</id>
135 <phase>process-sources</phase>
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 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
142 <includeResources>true</includeResources>
143 <includeTestSourceDirectory>true</includeTestSourceDirectory>
144 <includeTestResources>true</includeTestResources>
147 <consoleOutput>true</consoleOutput>
148 <violationSeverity>warning</violationSeverity>
154 <groupId>org.onap.oparent</groupId>
155 <artifactId>checkstyle</artifactId>
156 <version>${oparent.version}</version>
157 <scope>compile</scope>
167 <groupId>org.onap.policy.drools-pdp</groupId>
168 <artifactId>policy-core</artifactId>
169 <version>${project.version}</version>
173 <groupId>org.onap.policy.drools-pdp</groupId>
174 <artifactId>policy-domains</artifactId>
175 <version>${project.version}</version>
179 <groupId>org.onap.policy.common</groupId>
180 <artifactId>policy-endpoints</artifactId>
181 <version>${policy.common.version}</version>
185 <groupId>org.onap.policy.models</groupId>
186 <artifactId>policy-models-pdp</artifactId>
187 <version>${policy.models.version}</version>
191 <groupId>org.eclipse.jetty</groupId>
192 <artifactId>jetty-server</artifactId>
196 <groupId>org.eclipse.jetty</groupId>
197 <artifactId>jetty-servlet</artifactId>
201 <groupId>org.onap.policy.common</groupId>
202 <artifactId>gson</artifactId>
203 <version>${policy.common.version}</version>
207 <groupId>com.google.code.gson</groupId>
208 <artifactId>gson</artifactId>
212 <groupId>com.fatboyindustrial.gson-javatime-serialisers</groupId>
213 <artifactId>gson-javatime-serialisers</artifactId>
214 <version>1.1.1</version>
218 <groupId>com.jayway.jsonpath</groupId>
219 <artifactId>json-path</artifactId>
223 <groupId>org.apache.commons</groupId>
224 <artifactId>commons-collections4</artifactId>
225 <version>4.4</version>
228 <!-- if we don't explicitly specify the version here, we seem to end up
229 with version 1.4 (as a dependency to drools-core). This version is
230 not compatible with 'saClientLibrary' version 1.2.1-oss
233 <groupId>commons-codec</groupId>
234 <artifactId>commons-codec</artifactId>
238 <groupId>ch.qos.logback</groupId>
239 <artifactId>logback-classic</artifactId>
243 <groupId>junit</groupId>
244 <artifactId>junit</artifactId>
249 <groupId>org.powermock</groupId>
250 <artifactId>powermock-api-mockito2</artifactId>
255 <groupId>org.onap.policy.common</groupId>
256 <artifactId>utils-test</artifactId>
257 <version>${policy.common.version}</version>
262 The following dependencies are for features and drools
267 <groupId>org.eclipse.persistence</groupId>
268 <artifactId>eclipselink</artifactId>
272 <groupId>org.eclipse.persistence</groupId>
273 <artifactId>org.eclipse.persistence.jpa</artifactId>
277 <groupId>org.mariadb.jdbc</groupId>
278 <artifactId>mariadb-java-client</artifactId>
282 <groupId>org.hibernate</groupId>
283 <artifactId>hibernate-core</artifactId>
285 Exclude this because it's incompatible with eclipselink, which already
286 includes the same classes.
290 <groupId>javax.persistence</groupId>
291 <artifactId>javax.persistence-api</artifactId>
297 <groupId>org.hibernate.common</groupId>
298 <artifactId>hibernate-commons-annotations</artifactId>
302 <groupId>commons-io</groupId>
303 <artifactId>commons-io</artifactId>
307 <groupId>org.assertj</groupId>
308 <artifactId>assertj-core</artifactId>
313 <groupId>org.awaitility</groupId>
314 <artifactId>awaitility</artifactId>