blob: 061c5b06ff31331a3aa9ddde17fe320ead7a1be8 [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 Hahn4390de52018-04-13 16:34:35 -04006 Copyright (C) 2017-2018 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
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 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
Pamela Dragoshfd307be2018-08-28 18:10:51 -040036 <build>
37 <plugins>
38 <plugin>
39 <artifactId>maven-assembly-plugin</artifactId>
40 <executions>
41 <execution>
42 <id>zipfile</id>
43 <goals>
44 <goal>single</goal>
45 </goals>
46 <phase>package</phase>
47 <configuration>
48 <attach>true</attach>
49 <finalName>${project.artifactId}-${project.version}</finalName>
50 <descriptors>
51 <descriptor>src/assembly/assemble_zip.xml</descriptor>
52 </descriptors>
53 <appendAssemblyId>false</appendAssemblyId>
54 </configuration>
55 </execution>
56 </executions>
57 </plugin>
58 <plugin>
59 <groupId>org.apache.maven.plugins</groupId>
60 <artifactId>maven-dependency-plugin</artifactId>
61 <executions>
62 <execution>
63 <id>copy-dependencies</id>
64 <goals>
65 <goal>copy-dependencies</goal>
66 </goals>
67 <phase>prepare-package</phase>
68 <configuration>
69 <transitive>false</transitive>
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>
79 </configuration>
80 </execution>
81 </executions>
82 </plugin>
83 <plugin>
84 <artifactId>maven-resources-plugin</artifactId>
85 <executions>
86 <execution>
87 <id>copy-version</id>
88 <goals>
89 <goal>copy-resources</goal>
90 </goals>
91 <phase>validate</phase>
92 <configuration>
93 <outputDirectory>${basedir}/target/versions</outputDirectory>
94 <resources>
95 <resource>
96 <directory>src/main/resources/versions</directory>
97 <includes>
98 <include>version.properties</include>
99 </includes>
100 <filtering>true</filtering>
101 </resource>
102 </resources>
103 </configuration>
104 </execution>
105 <execution>
106 <id>copy-resources</id>
107 <goals>
108 <goal>copy-resources</goal>
109 </goals>
110 <phase>validate</phase>
111 <configuration>
112 <outputDirectory>${basedir}/target/etc/bvc-extensions</outputDirectory>
113 <resources>
114 <resource>
115 <directory>src/main/resources/etc/bvc-extensions</directory>
116 <includes>
117 <include>feature_config_template.cfg</include>
118 <include>feature_custom.install</include>
119 </includes>
120 <filtering>true</filtering>
121 </resource>
122 </resources>
123 </configuration>
124 </execution>
125 </executions>
126 </plugin>
Pamela Dragosha0e0c782018-09-28 04:58:26 -0400127 <plugin>
128 <artifactId>maven-checkstyle-plugin</artifactId>
129 <executions>
130 <execution>
131 <id>onap-java-style</id>
132 <goals>
133 <goal>check</goal>
134 </goals>
135 <phase>process-sources</phase>
136 <configuration>
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 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
142 <includeResources>true</includeResources>
143 <includeTestSourceDirectory>true</includeTestSourceDirectory>
144 <includeTestResources>true</includeTestResources>
145 <excludes>
146 </excludes>
147 <suppressionsLocation>${project.baseUri}checkstyle-suppressions.xml</suppressionsLocation>
148 <consoleOutput>true</consoleOutput>
149 <failsOnViolation>true</failsOnViolation>
150 <violationSeverity>warning</violationSeverity>
151 </configuration>
152 </execution>
153 </executions>
154 <dependencies>
155 <dependency>
156 <groupId>org.onap.oparent</groupId>
157 <artifactId>checkstyle</artifactId>
158 <version>${oparent.version}</version>
159 <scope>compile</scope>
160 </dependency>
161 </dependencies>
162 </plugin>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400163 </plugins>
164 </build>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500165
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400166 <dependencies>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500167
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400168 <dependency>
169 <groupId>org.onap.policy.drools-pdp</groupId>
170 <artifactId>policy-core</artifactId>
171 <version>${project.version}</version>
172 </dependency>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500173
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400174 <dependency>
175 <groupId>org.onap.policy.common</groupId>
176 <artifactId>policy-endpoints</artifactId>
ramverma5bf84862018-10-24 19:35:48 +0100177 <version>${policy.common.version}</version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400178 </dependency>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500179
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400180 <dependency>
181 <groupId>org.eclipse.jetty</groupId>
182 <artifactId>jetty-server</artifactId>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400183 </dependency>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500184
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400185 <dependency>
186 <groupId>org.eclipse.jetty</groupId>
187 <artifactId>jetty-servlet</artifactId>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400188 </dependency>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500189
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400190 <dependency>
191 <groupId>org.glassfish.jersey.core</groupId>
192 <artifactId>jersey-server</artifactId>
193 <version>${jersey.version}</version>
194 </dependency>
Jorge Hernandez0c409142017-08-16 12:41:11 -0500195
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400196 <dependency>
197 <groupId>org.glassfish.jersey.containers</groupId>
198 <artifactId>jersey-container-servlet-core</artifactId>
199 </dependency>
Jorge Hernandez0c409142017-08-16 12:41:11 -0500200
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400201 <dependency>
202 <groupId>org.glassfish.jersey.media</groupId>
203 <artifactId>jersey-media-json-jackson</artifactId>
204 <version>${jersey.version}</version>
205 </dependency>
206
207 <dependency>
208 <groupId>org.glassfish.jersey.containers</groupId>
209 <artifactId>jersey-container-jetty-http</artifactId>
210 <version>${jersey.version}</version>
211 <exclusions>
212 <exclusion>
213 <groupId>org.eclipse.jetty</groupId>
214 <artifactId>jetty-util</artifactId>
215 </exclusion>
216 </exclusions>
217 </dependency>
218
219 <dependency>
220 <groupId>io.swagger</groupId>
221 <artifactId>swagger-jersey2-jaxrs</artifactId>
222 </dependency>
223
224 <dependency>
225 <groupId>com.fasterxml.jackson.core</groupId>
226 <artifactId>jackson-databind</artifactId>
227 <version>${jackson.version}</version>
228 </dependency>
229
230 <dependency>
231 <groupId>com.fasterxml.jackson.datatype</groupId>
232 <artifactId>jackson-datatype-jsr310</artifactId>
233 <version>${jackson.version}</version>
234 </dependency>
235
236 <dependency>
237 <groupId>com.fasterxml.jackson.core</groupId>
238 <artifactId>jackson-annotations</artifactId>
239 <version>${jackson.version}</version>
240 </dependency>
241
242 <dependency>
243 <groupId>com.google.code.gson</groupId>
244 <artifactId>gson</artifactId>
245 </dependency>
246
247 <dependency>
248 <groupId>com.fatboyindustrial.gson-javatime-serialisers</groupId>
249 <artifactId>gson-javatime-serialisers</artifactId>
250 <version>1.1.1</version>
251 </dependency>
252
253 <dependency>
254 <groupId>org.apache.commons</groupId>
255 <artifactId>commons-collections4</artifactId>
256 <version>4.1</version>
257 </dependency>
Jorge Hernandezfb79f7a2017-08-31 00:09:45 -0500258
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400259 <!-- if we don't explicitly specify the version here, we seem to end up
260 with version 1.4 (as a dependency to drools-core). This version is
261 not compatible with 'saClientLibrary' version 1.2.1-oss
262 -->
263 <dependency>
264 <groupId>commons-codec</groupId>
265 <artifactId>commons-codec</artifactId>
266 </dependency>
267
268 <dependency>
269 <groupId>ch.qos.logback</groupId>
270 <artifactId>logback-classic</artifactId>
271 </dependency>
272
273 <dependency>
274 <groupId>junit</groupId>
275 <artifactId>junit</artifactId>
276 <scope>test</scope>
277 </dependency>
Jim Hahn08dc9c32018-10-02 16:46:57 -0400278
279 <dependency>
280 <groupId>org.powermock</groupId>
281 <artifactId>powermock-api-mockito</artifactId>
282 <scope>test</scope>
283 </dependency>
284
285 <dependency>
286 <groupId>org.onap.policy.common</groupId>
287 <artifactId>utils-test</artifactId>
ramverma5bf84862018-10-24 19:35:48 +0100288 <version>${policy.common.version}</version>
Jim Hahn08dc9c32018-10-02 16:46:57 -0400289 <scope>test</scope>
290 </dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400291
292 <!--
293 The following dependencies are for features and drools
294 applications usage
295 -->
296
297 <dependency>
298 <groupId>org.eclipse.persistence</groupId>
299 <artifactId>eclipselink</artifactId>
300 </dependency>
301
302 <dependency>
303 <groupId>org.eclipse.persistence</groupId>
304 <artifactId>org.eclipse.persistence.jpa</artifactId>
305 </dependency>
306
307 <dependency>
308 <groupId>org.mariadb.jdbc</groupId>
309 <artifactId>mariadb-java-client</artifactId>
310 </dependency>
311
312 <dependency>
313 <groupId>org.hibernate</groupId>
314 <artifactId>hibernate-core</artifactId>
315 </dependency>
316
317 <dependency>
318 <groupId>org.hibernate.common</groupId>
319 <artifactId>hibernate-commons-annotations</artifactId>
320 </dependency>
321
322 <dependency>
323 <groupId>commons-io</groupId>
324 <artifactId>commons-io</artifactId>
325 </dependency>
326
327 </dependencies>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500328
329</project>