blob: d48d3ffbaa902461c9c935a68593d28855fc2fc1 [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>
liamfallon99200202018-10-31 16:00:08 +000028 <version>1.4.0-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>
73 <transitive>false</transitive>
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>
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 -->
145 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
146 <includeResources>true</includeResources>
147 <includeTestSourceDirectory>true</includeTestSourceDirectory>
148 <includeTestResources>true</includeTestResources>
149 <excludes>
150 </excludes>
151 <suppressionsLocation>${project.baseUri}checkstyle-suppressions.xml</suppressionsLocation>
152 <consoleOutput>true</consoleOutput>
153 <failsOnViolation>true</failsOnViolation>
154 <violationSeverity>warning</violationSeverity>
155 </configuration>
156 </execution>
157 </executions>
158 <dependencies>
159 <dependency>
160 <groupId>org.onap.oparent</groupId>
161 <artifactId>checkstyle</artifactId>
162 <version>${oparent.version}</version>
163 <scope>compile</scope>
164 </dependency>
165 </dependencies>
166 </plugin>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400167 </plugins>
168 </build>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500169
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400170 <dependencies>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500171
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400172 <dependency>
173 <groupId>org.onap.policy.drools-pdp</groupId>
174 <artifactId>policy-core</artifactId>
175 <version>${project.version}</version>
176 </dependency>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500177
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400178 <dependency>
179 <groupId>org.onap.policy.common</groupId>
180 <artifactId>policy-endpoints</artifactId>
ramverma5bf84862018-10-24 19:35:48 +0100181 <version>${policy.common.version}</version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400182 </dependency>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500183
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400184 <dependency>
185 <groupId>org.eclipse.jetty</groupId>
186 <artifactId>jetty-server</artifactId>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400187 </dependency>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500188
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400189 <dependency>
190 <groupId>org.eclipse.jetty</groupId>
191 <artifactId>jetty-servlet</artifactId>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400192 </dependency>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500193
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400194 <dependency>
195 <groupId>org.glassfish.jersey.core</groupId>
196 <artifactId>jersey-server</artifactId>
197 <version>${jersey.version}</version>
198 </dependency>
Jorge Hernandez0c409142017-08-16 12:41:11 -0500199
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400200 <dependency>
201 <groupId>org.glassfish.jersey.containers</groupId>
202 <artifactId>jersey-container-servlet-core</artifactId>
203 </dependency>
Jorge Hernandez0c409142017-08-16 12:41:11 -0500204
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400205 <dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400206 <groupId>org.glassfish.jersey.containers</groupId>
207 <artifactId>jersey-container-jetty-http</artifactId>
208 <version>${jersey.version}</version>
209 <exclusions>
210 <exclusion>
211 <groupId>org.eclipse.jetty</groupId>
212 <artifactId>jetty-util</artifactId>
213 </exclusion>
214 </exclusions>
215 </dependency>
216
217 <dependency>
218 <groupId>io.swagger</groupId>
219 <artifactId>swagger-jersey2-jaxrs</artifactId>
220 </dependency>
221
222 <dependency>
223 <groupId>com.fasterxml.jackson.core</groupId>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400224 <artifactId>jackson-annotations</artifactId>
225 <version>${jackson.version}</version>
226 </dependency>
227
228 <dependency>
Jim Hahncb8557e2019-02-15 12:24:14 -0500229 <groupId>org.onap.policy.common</groupId>
230 <artifactId>gson</artifactId>
231 <version>${policy.common.version}</version>
232 </dependency>
233
234 <dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400235 <groupId>com.google.code.gson</groupId>
236 <artifactId>gson</artifactId>
237 </dependency>
238
239 <dependency>
240 <groupId>com.fatboyindustrial.gson-javatime-serialisers</groupId>
241 <artifactId>gson-javatime-serialisers</artifactId>
242 <version>1.1.1</version>
243 </dependency>
Daniel Cruzfa2a5a42019-02-14 00:42:45 -0600244
245 <dependency>
246 <groupId>com.jayway.jsonpath</groupId>
247 <artifactId>json-path</artifactId>
248 </dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400249
250 <dependency>
251 <groupId>org.apache.commons</groupId>
252 <artifactId>commons-collections4</artifactId>
253 <version>4.1</version>
254 </dependency>
Jim Hahn50497072019-02-08 13:22:06 -0500255
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400256 <!-- if we don't explicitly specify the version here, we seem to end up
257 with version 1.4 (as a dependency to drools-core). This version is
Jim Hahn50497072019-02-08 13:22:06 -0500258 not compatible with 'saClientLibrary' version 1.2.1-oss
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400259 -->
260 <dependency>
261 <groupId>commons-codec</groupId>
262 <artifactId>commons-codec</artifactId>
263 </dependency>
264
265 <dependency>
266 <groupId>ch.qos.logback</groupId>
267 <artifactId>logback-classic</artifactId>
268 </dependency>
269
270 <dependency>
271 <groupId>junit</groupId>
272 <artifactId>junit</artifactId>
273 <scope>test</scope>
274 </dependency>
Jim Hahn50497072019-02-08 13:22:06 -0500275
Jim Hahn08dc9c32018-10-02 16:46:57 -0400276 <dependency>
277 <groupId>org.powermock</groupId>
278 <artifactId>powermock-api-mockito</artifactId>
279 <scope>test</scope>
280 </dependency>
281
282 <dependency>
283 <groupId>org.onap.policy.common</groupId>
284 <artifactId>utils-test</artifactId>
ramverma5bf84862018-10-24 19:35:48 +0100285 <version>${policy.common.version}</version>
Jim Hahn08dc9c32018-10-02 16:46:57 -0400286 <scope>test</scope>
287 </dependency>
Jim Hahn50497072019-02-08 13:22:06 -0500288
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400289 <!--
290 The following dependencies are for features and drools
291 applications usage
292 -->
293
294 <dependency>
295 <groupId>org.eclipse.persistence</groupId>
296 <artifactId>eclipselink</artifactId>
297 </dependency>
298
299 <dependency>
300 <groupId>org.eclipse.persistence</groupId>
301 <artifactId>org.eclipse.persistence.jpa</artifactId>
302 </dependency>
303
304 <dependency>
305 <groupId>org.mariadb.jdbc</groupId>
306 <artifactId>mariadb-java-client</artifactId>
307 </dependency>
308
309 <dependency>
310 <groupId>org.hibernate</groupId>
311 <artifactId>hibernate-core</artifactId>
312 </dependency>
313
314 <dependency>
315 <groupId>org.hibernate.common</groupId>
316 <artifactId>hibernate-commons-annotations</artifactId>
317 </dependency>
318
319 <dependency>
320 <groupId>commons-io</groupId>
321 <artifactId>commons-io</artifactId>
322 </dependency>
323
Jim Hahn50497072019-02-08 13:22:06 -0500324 <dependency>
325 <groupId>org.assertj</groupId>
326 <artifactId>assertj-core</artifactId>
327 <scope>test</scope>
328 </dependency>
329
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400330 </dependencies>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500331</project>