1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
4 ONAP Policy Engine - Drools PDP
5 ================================================================================
6 Copyright (C) 2017-2022 AT&T Intellectual Property. All rights reserved.
7 Modifications Copyright (C) 2020,2023 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"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
25 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.onap.policy.drools-pdp</groupId>
29 <artifactId>drools-pdp</artifactId>
30 <version>2.0.2</version>
33 <artifactId>policy-management</artifactId>
35 <name>policy-management</name>
36 <description>Policy Management</description>
41 <artifactId>maven-assembly-plugin</artifactId>
48 <phase>package</phase>
51 <finalName>${project.artifactId}-${project.version}</finalName>
53 <descriptor>src/assembly/assemble_zip.xml</descriptor>
55 <appendAssemblyId>false</appendAssemblyId>
61 <groupId>org.apache.maven.plugins</groupId>
62 <artifactId>maven-dependency-plugin</artifactId>
65 <id>copy-dependencies</id>
67 <goal>copy-dependencies</goal>
69 <phase>prepare-package</phase>
71 <outputDirectory>${project.build.directory}/assembly/lib</outputDirectory>
72 <overWriteReleases>false</overWriteReleases>
73 <overWriteSnapshots>true</overWriteSnapshots>
74 <overWriteIfNewer>true</overWriteIfNewer>
75 <useRepositoryLayout>false</useRepositoryLayout>
76 <addParentPoms>false</addParentPoms>
77 <copyPom>false</copyPom>
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>
126 <id>copy-swagger</id>
128 <goal>copy-resources</goal>
130 <phase>compile</phase>
132 <outputDirectory>src/main/resources/swagger</outputDirectory>
135 <directory>${basedir}/target/generated-sources/swagger</directory>
137 <include>swagger.json</include>
139 <filtering>true</filtering>
146 <!-- Controllers interfaces generation -->
148 <groupId>io.swagger.codegen.v3</groupId>
149 <artifactId>swagger-codegen-maven-plugin</artifactId>
154 <goal>generate</goal>
157 <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
158 <invokerPackage>org.onap.policy.drools.server.restful</invokerPackage>
159 <modelPackage>org.onap.policy.drools.server.restful.model</modelPackage>
160 <apiPackage>org.onap.policy.drools.server.restful</apiPackage>
161 <language>jaxrs-spec</language>
162 <generateModels>false</generateModels>
163 <generateSupportingFiles>false</generateSupportingFiles>
165 CoderFilters=org.onap.policy.drools.protocol.coders.EventProtocolCoder.CoderFilters,
166 CodingResult=org.onap.policy.drools.server.restful.RestManager.CodingResult,
167 ControllerConfiguration=org.onap.policy.drools.protocol.configuration.ControllerConfiguration,
168 DroolsController=org.onap.policy.drools.controller.DroolsController,
169 JsonProtocolFilter=org.onap.policy.drools.protocol.coders.JsonProtocolFilter,
170 PdpdConfiguration=org.onap.policy.drools.protocol.configuration.PdpdConfiguration,
171 PolicyController=org.onap.policy.drools.system.PolicyController,
172 PolicyControllerFeatureApi=org.onap.policy.drools.features.PolicyControllerFeatureApi,
173 PolicyEngine=org.onap.policy.drools.system.PolicyEngine,
174 PolicyEngineFeatureApi=org.onap.policy.drools.features.PolicyEngineFeatureApi,
175 PolicyTypeController=org.onap.policy.drools.lifecycle.PolicyTypeController,
176 Properties=java.util.Properties,
177 ProtocolCoderToolset=org.onap.policy.drools.protocol.coders.ProtocolCoderToolset,
178 Response=jakarta.ws.rs.core.Response,
179 TopicEndpoint=org.onap.policy.common.endpoints.event.comm.TopicEndpoint,
180 TopicSink=org.onap.policy.common.endpoints.event.comm.TopicSink,
181 TopicSource=org.onap.policy.common.endpoints.event.comm.TopicSource,
182 ToscaPolicy=org.onap.policy.models.tosca.authorative.concepts.ToscaPolicy
185 <typeMapping>boolean=boolean</typeMapping>
188 <sourceFolder>src/gen/java</sourceFolder>
189 <dateLibrary>java17</dateLibrary>
190 <interfaceOnly>true</interfaceOnly>
191 <useTags>true</useTags>
192 <skipIfSpecIsUnchanged>false</skipIfSpecIsUnchanged>
193 <jakarta>true</jakarta>
204 <groupId>org.onap.policy.drools-pdp</groupId>
205 <artifactId>policy-core</artifactId>
206 <version>${project.version}</version>
209 <groupId>org.onap.policy.drools-pdp</groupId>
210 <artifactId>policy-domains</artifactId>
211 <version>${project.version}</version>
215 <groupId>org.onap.policy.common</groupId>
216 <artifactId>policy-endpoints</artifactId>
217 <version>${policy.common.version}</version>
220 <groupId>org.onap.policy.common</groupId>
221 <artifactId>gson</artifactId>
222 <version>${policy.common.version}</version>
225 <groupId>org.onap.policy.common</groupId>
226 <artifactId>utils</artifactId>
227 <version>${policy.common.version}</version>
231 <groupId>org.onap.policy.models</groupId>
232 <artifactId>policy-models-pdp</artifactId>
233 <version>${policy.models.version}</version>
237 <groupId>org.eclipse.jetty</groupId>
238 <artifactId>jetty-server</artifactId>
241 <groupId>org.eclipse.jetty</groupId>
242 <artifactId>jetty-servlet</artifactId>
246 <groupId>com.google.code.gson</groupId>
247 <artifactId>gson</artifactId>
250 <groupId>com.fatboyindustrial.gson-javatime-serialisers</groupId>
251 <artifactId>gson-javatime-serialisers</artifactId>
252 <version>1.1.2</version>
255 <groupId>com.jayway.jsonpath</groupId>
256 <artifactId>json-path</artifactId>
259 <groupId>org.apache.commons</groupId>
260 <artifactId>commons-collections4</artifactId>
263 <!-- if we don't explicitly specify the version here, we seem to end up
264 with version 1.4 (as a dependency to drools-core). This version is
265 not compatible with 'saClientLibrary' version 1.2.1-oss
268 <groupId>commons-codec</groupId>
269 <artifactId>commons-codec</artifactId>
272 <groupId>ch.qos.logback</groupId>
273 <artifactId>logback-classic</artifactId>
276 <groupId>org.springframework</groupId>
277 <artifactId>spring-test</artifactId>
282 The following dependencies are for features and drools
287 <groupId>org.mariadb.jdbc</groupId>
288 <artifactId>mariadb-java-client</artifactId>
291 <groupId>org.hibernate.orm</groupId>
292 <artifactId>hibernate-core</artifactId>
295 <groupId>org.hibernate.common</groupId>
296 <artifactId>hibernate-commons-annotations</artifactId>
299 <groupId>commons-io</groupId>
300 <artifactId>commons-io</artifactId>
303 <groupId>io.prometheus</groupId>
304 <artifactId>simpleclient_logback</artifactId>
307 <!-- Swagger v3 annotations -->
309 <groupId>io.swagger.core.v3</groupId>
310 <artifactId>swagger-annotations</artifactId>