policy routing and reorg into policy-domains
[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-2020 AT&T Intellectual Property. All rights reserved.
7   Modifications Copyright (C) 2019 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
12
13        http://www.apache.org/licenses/LICENSE-2.0
14
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=========================================================
21   -->
22
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>
25
26     <parent>
27         <groupId>org.onap.policy.drools-pdp</groupId>
28         <artifactId>drools-pdp</artifactId>
29         <version>1.6.0-SNAPSHOT</version>
30     </parent>
31
32     <artifactId>policy-management</artifactId>
33
34     <name>policy-management</name>
35     <description>Policy Management</description>
36
37     <properties>
38         <jackson.version>2.9.5</jackson.version>
39     </properties>
40
41     <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>
74                             <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>
131             <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>
141                             <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
142                                 with minor changes -->
143                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
144                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
145                             <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
146                             <includeResources>true</includeResources>
147                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
148                             <includeTestResources>true</includeTestResources>
149                             <excludes>
150                             </excludes>
151                             <consoleOutput>true</consoleOutput>
152                             <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>
165         </plugins>
166     </build>
167
168     <dependencies>
169
170         <dependency>
171             <groupId>org.onap.policy.drools-pdp</groupId>
172             <artifactId>policy-core</artifactId>
173             <version>${project.version}</version>
174         </dependency>
175
176         <dependency>
177             <groupId>org.onap.policy.drools-pdp</groupId>
178             <artifactId>policy-domains</artifactId>
179             <version>${project.version}</version>
180         </dependency>
181
182         <dependency>
183             <groupId>org.onap.policy.common</groupId>
184             <artifactId>policy-endpoints</artifactId>
185             <version>${policy.common.version}</version>
186         </dependency>
187
188         <dependency>
189             <groupId>org.onap.policy.models</groupId>
190             <artifactId>policy-models-pdp</artifactId>
191             <version>${policy.models.version}</version>
192         </dependency>
193
194         <dependency>
195             <groupId>org.eclipse.jetty</groupId>
196             <artifactId>jetty-server</artifactId>
197         </dependency>
198
199         <dependency>
200             <groupId>org.eclipse.jetty</groupId>
201             <artifactId>jetty-servlet</artifactId>
202         </dependency>
203
204         <dependency>
205             <groupId>com.fasterxml.jackson.core</groupId>
206             <artifactId>jackson-annotations</artifactId>
207         </dependency>
208
209         <dependency>
210             <groupId>org.onap.policy.common</groupId>
211             <artifactId>gson</artifactId>
212             <version>${policy.common.version}</version>
213         </dependency>
214
215         <dependency>
216             <groupId>com.google.code.gson</groupId>
217             <artifactId>gson</artifactId>
218         </dependency>
219
220         <dependency>
221             <groupId>com.fatboyindustrial.gson-javatime-serialisers</groupId>
222             <artifactId>gson-javatime-serialisers</artifactId>
223             <version>1.1.1</version>
224         </dependency>
225         
226         <dependency>
227             <groupId>com.jayway.jsonpath</groupId>
228             <artifactId>json-path</artifactId>
229         </dependency>
230
231         <dependency>
232             <groupId>org.apache.commons</groupId>
233             <artifactId>commons-collections4</artifactId>
234             <version>4.1</version>
235         </dependency>
236
237         <!-- if we don't explicitly specify the version here, we seem to end up
238         with version 1.4 (as a dependency to drools-core). This version is
239         not compatible with 'saClientLibrary' version 1.2.1-oss
240         -->
241         <dependency>
242             <groupId>commons-codec</groupId>
243             <artifactId>commons-codec</artifactId>
244         </dependency>
245
246         <dependency>
247             <groupId>ch.qos.logback</groupId>
248             <artifactId>logback-classic</artifactId>
249         </dependency>
250
251         <dependency>
252             <groupId>junit</groupId>
253             <artifactId>junit</artifactId>
254             <scope>test</scope>
255         </dependency>
256
257         <dependency>
258             <groupId>org.powermock</groupId>
259             <artifactId>powermock-api-mockito2</artifactId>
260             <scope>test</scope>
261         </dependency>
262
263         <dependency>
264             <groupId>org.onap.policy.common</groupId>
265             <artifactId>utils-test</artifactId>
266             <version>${policy.common.version}</version>
267             <scope>test</scope>
268         </dependency>
269
270         <!--
271         The following dependencies are for features and drools
272         applications usage
273         -->
274
275         <dependency>
276             <groupId>org.eclipse.persistence</groupId>
277             <artifactId>eclipselink</artifactId>
278         </dependency>
279
280         <dependency>
281             <groupId>org.eclipse.persistence</groupId>
282             <artifactId>org.eclipse.persistence.jpa</artifactId>
283         </dependency>
284
285         <dependency>
286             <groupId>org.mariadb.jdbc</groupId>
287             <artifactId>mariadb-java-client</artifactId>
288         </dependency>
289
290         <dependency>
291             <groupId>org.hibernate</groupId>
292             <artifactId>hibernate-core</artifactId>
293         </dependency>
294
295         <dependency>
296             <groupId>org.hibernate.common</groupId>
297             <artifactId>hibernate-commons-annotations</artifactId>
298         </dependency>
299
300         <dependency>
301             <groupId>commons-io</groupId>
302             <artifactId>commons-io</artifactId>
303         </dependency>
304
305         <dependency>
306             <groupId>org.assertj</groupId>
307             <artifactId>assertj-core</artifactId>
308             <scope>test</scope>
309         </dependency>
310
311         <dependency>
312             <groupId>org.awaitility</groupId>
313             <artifactId>awaitility</artifactId>
314             <scope>test</scope>
315         </dependency>
316
317     </dependencies>
318 </project>