blob: a279481b222ed954cbe71119903bdc22f666ee99 [file] [log] [blame]
Pamela Dragoshbd6c4372018-02-16 10:30:56 -05001<!--
2 ============LICENSE_START=======================================================
3 ONAP Policy Engine - Drools PDP
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05004 ================================================================================
Pamela Dragosh54f5e122018-02-07 13:02:32 -05005 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05006 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
Temoc Rodriguez82ba9222017-08-17 08:24:55 -070010
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050011 http://www.apache.org/licenses/LICENSE-2.0
Temoc Rodriguez82ba9222017-08-17 08:24:55 -070012
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050013 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
Pamela Dragoshbd6c4372018-02-16 10:30:56 -050018 ============LICENSE_END=========================================================
19-->
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050020
21<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23 <modelVersion>4.0.0</modelVersion>
24
Guo Ruijing15be35a2017-08-03 11:32:09 +000025 <parent>
26 <groupId>org.onap.oparent</groupId>
27 <artifactId>oparent</artifactId>
Pamela Dragosh3358e1e2017-09-21 13:35:23 -040028 <version>0.1.1</version>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -050029 <relativePath />
Guo Ruijing15be35a2017-08-03 11:32:09 +000030 </parent>
31
Guo Ruijing6abeb292017-07-28 08:23:01 +000032 <groupId>org.onap.policy.drools-pdp</groupId>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050033 <artifactId>drools-pdp</artifactId>
Jessica Wagantall9de8f792017-11-18 18:47:57 -080034 <version>1.2.0-SNAPSHOT</version>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050035 <packaging>pom</packaging>
Jessica Wagantall0c625eb2017-09-08 13:34:37 -070036 <name>policy-drools-pdp</name>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050037
Guo Ruijing6abeb292017-07-28 08:23:01 +000038 <description>The ONAP Policy Engine drools-based PDP Project</description>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050039
40 <properties>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -050041 <!-- Project common build settings -->
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050042 <project.source.version>1.8</project.source.version>
43 <project.target.version>1.8</project.target.version>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -050044
45 <!-- Project path properties -->
46 <nexusproxy>https://nexus.onap.org</nexusproxy>
47 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
48 <releases.path>content/repositories/releases/</releases.path>
49 <snapshots.path>content/repositories/snapshots/</snapshots.path>
50 <staging.path>content/repositories/staging/</staging.path>
51
52 <!-- sonar/jacoco overrides -->
53 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports
54 into one file shared across sub-modules -->
55 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
56 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
57 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
58
59 <!-- Project common dependency versions -->
Magnusen, Drew (dm741q)95886e42017-11-21 10:56:05 -060060 <dmaap.version>1.0.0</dmaap.version>
Ralph Straubs5bd9ff42017-04-21 04:23:55 -050061 <cambria.version>0.0.1</cambria.version>
Jorge Hernandez1f2fff62017-09-13 14:48:05 -050062 <jersey.version>2.25.1</jersey.version>
Pamela Dragosh54f5e122018-02-07 13:02:32 -050063 <jersey.swagger.version>1.5.18</jersey.swagger.version>
Pamela Dragoshe7e2b092018-02-08 07:45:28 -050064 <jackson.version>2.9.4</jackson.version>
Pamela Dragosh54f5e122018-02-07 13:02:32 -050065 <http.client.version>4.5.5</http.client.version>
Jorge Hernandez8f61e182017-06-22 17:17:28 -050066 <http.core.version>4.4.4</http.core.version>
67 <logback.version>1.2.3</logback.version>
Jorge Hernandezf9f086c2017-08-15 19:12:25 -050068 <junit.version>4.12</junit.version>
Jorge Hernandezfb79f7a2017-08-31 00:09:45 -050069 <eclipselink.version>2.7.0</eclipselink.version>
Jorge Hernandezf9f086c2017-08-15 19:12:25 -050070 <mariadb.jdbc.version>2.1.0</mariadb.jdbc.version>
Jorge Hernandez0c409142017-08-16 12:41:11 -050071 <hibernate.core.version>5.2.10.Final</hibernate.core.version>
72 <hibernate.commons.annotations.version>5.0.1.Final</hibernate.commons.annotations.version>
Jorge Hernandezfb79f7a2017-08-31 00:09:45 -050073 <commons.io.version>2.5</commons.io.version>
Jorge Hernandez1f2fff62017-09-13 14:48:05 -050074 <guava.version>23.0</guava.version>
Jorge Hernandez7b245f02017-10-30 17:27:08 -050075 <xml.apis.version>1.4.01</xml.apis.version>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050076 </properties>
77
78 <modules>
79 <module>policy-utils</module>
80 <module>policy-core</module>
81 <module>policy-endpoints</module>
82 <module>policy-management</module>
Jorge Hernandez564f8182017-06-30 13:29:03 -050083 <module>feature-healthcheck</module>
Jorge Hernandez9e69cc22017-06-26 08:05:30 -050084 <module>feature-eelf</module>
Kevin McKiou36cf73f2017-08-22 16:08:06 -050085 <module>feature-session-persistence</module>
Magnusen, Drew (dm741q)ca5aaf02017-08-25 10:20:46 -050086 <module>feature-test-transaction</module>
Magnusen, Drew (dm741q)18253e52017-09-07 08:55:17 -050087 <module>api-state-management</module>
88 <module>feature-state-management</module>
Kevin McKiou4c539952017-09-14 12:31:02 -050089 <module>api-active-standby-management</module>
90 <module>feature-active-standby-management</module>
Charles Colec8e0ec62017-12-14 08:59:26 -060091 <module>feature-simulators</module>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050092 <module>packages</module>
93 </modules>
94
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -050095 <distributionManagement>
96 <repository>
Jorge Hernandez41ca2182017-07-31 15:35:01 -050097 <id>ecomp-releases</id>
Guo Ruijing6abeb292017-07-28 08:23:01 +000098 <name>ONAP Release Repository</name>
Anaël Closson8f7e5de2017-04-12 11:09:25 +020099 <url>${nexusproxy}/${releases.path}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -0500100 </repository>
101 <snapshotRepository>
Jorge Hernandez41ca2182017-07-31 15:35:01 -0500102 <id>ecomp-snapshots</id>
Guo Ruijing6abeb292017-07-28 08:23:01 +0000103 <name>ONAP Snapshot Repository</name>
Anaël Closson8f7e5de2017-04-12 11:09:25 +0200104 <url>${nexusproxy}/${snapshots.path}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -0500105 </snapshotRepository>
106 <site>
Jorge Hernandez41ca2182017-07-31 15:35:01 -0500107 <id>ecomp-site</id>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400108 <url>dav:${nexusproxy}${sitePath}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -0500109 </site>
110 </distributionManagement>
111
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500112 <repositories>
113 <!-- LF repositories -->
114 <repository>
115 <id>ecomp-releases</id>
116 <name>Release Repository</name>
117 <url>${nexusproxy}/content/repositories/releases/</url>
118 </repository>
119 <repository>
120 <id>ecomp-staging</id>
121 <name>Staging Repository</name>
122 <url>${nexusproxy}/content/repositories/staging/</url>
123 </repository>
124 <repository>
125 <id>ecomp-snapshots</id>
126 <name>Snapshots Repository</name>
127 <url>${nexusproxy}/content/repositories/snapshots/</url>
128 </repository>
129 <repository>
130 <id>ecomp-public</id>
131 <name>Public Repository</name>
132 <url>${nexusproxy}/content/repositories/public/</url>
133 </repository>
134 <!-- LF repositories END -->
135 </repositories>
Pamela Dragoshd78b5302017-11-10 20:07:52 -0500136
Ralph Straubs5bd9ff42017-04-21 04:23:55 -0500137 <dependencyManagement>
138 <dependencies>
139 <dependency>
140 <groupId>com.google.guava</groupId>
141 <artifactId>guava</artifactId>
Jorge Hernandezfb79f7a2017-08-31 00:09:45 -0500142 <version>${guava.version}</version>
Ralph Straubs5bd9ff42017-04-21 04:23:55 -0500143 </dependency>
144 <dependency>
145 <groupId>javax.ws.rs</groupId>
146 <artifactId>javax.ws.rs-api</artifactId>
147 <version>2.0.1</version>
148 </dependency>
149 <dependency>
150 <groupId>org.glassfish.hk2.external</groupId>
151 <artifactId>javax.inject</artifactId>
152 <version>2.4.0-b31</version>
153 </dependency>
154 <dependency>
155 <groupId>com.fasterxml.jackson.jaxrs</groupId>
156 <artifactId>jackson-jaxrs-base</artifactId>
157 <version>${jackson.version}</version>
158 </dependency>
159 <dependency>
160 <groupId>com.fasterxml.jackson.jaxrs</groupId>
161 <artifactId>jackson-jaxrs-json-provider</artifactId>
162 <version>${jackson.version}</version>
163 </dependency>
164 <dependency>
165 <groupId>com.fasterxml.jackson.dataformat</groupId>
166 <artifactId>jackson-dataformat-xml</artifactId>
167 <version>${jackson.version}</version>
168 </dependency>
169 <dependency>
170 <groupId>com.fasterxml.jackson.dataformat</groupId>
171 <artifactId>jackson-dataformat-yaml</artifactId>
172 <version>${jackson.version}</version>
173 </dependency>
174 <dependency>
175 <groupId>com.fasterxml.jackson.datatype</groupId>
176 <artifactId>jackson-datatype-joda</artifactId>
177 <version>${jackson.version}</version>
178 </dependency>
179 <dependency>
180 <groupId>org.glassfish.jersey.containers</groupId>
181 <artifactId>jersey-common</artifactId>
182 <version>${jersey.version}</version>
183 </dependency>
184 <dependency>
185 <groupId>org.glassfish.jersey.containers</groupId>
186 <artifactId>jersey-container-servlet-core</artifactId>
187 <version>${jersey.version}</version>
188 </dependency>
Jorge Hernandez881c32e2017-05-25 16:44:15 -0500189 <dependency>
190 <groupId>io.swagger</groupId>
191 <artifactId>swagger-jersey2-jaxrs</artifactId>
192 <version>${jersey.swagger.version}</version>
193 </dependency>
Jorge Hernandez85e12562017-06-05 09:51:55 -0500194 <dependency>
195 <groupId>org.apache.httpcomponents</groupId>
196 <artifactId>httpclient</artifactId>
Jorge Hernandez8f61e182017-06-22 17:17:28 -0500197 <version>${http.client.version}</version>
Jorge Hernandez85e12562017-06-05 09:51:55 -0500198 </dependency>
199 <dependency>
200 <groupId>org.apache.httpcomponents</groupId>
201 <artifactId>httpcore</artifactId>
Jorge Hernandez8f61e182017-06-22 17:17:28 -0500202 <version>${http.core.version}</version>
203 </dependency>
204 <dependency>
205 <groupId>ch.qos.logback</groupId>
206 <artifactId>logback-classic</artifactId>
207 <version>${logback.version}</version>
Jorge Hernandez85e12562017-06-05 09:51:55 -0500208 </dependency>
Jorge Hernandezf9f086c2017-08-15 19:12:25 -0500209 <dependency>
210 <groupId>junit</groupId>
211 <artifactId>junit</artifactId>
212 <version>${junit.version}</version>
213 </dependency>
214 <dependency>
215 <groupId>org.eclipse.persistence</groupId>
216 <artifactId>eclipselink</artifactId>
217 <version>${eclipselink.version}</version>
218 </dependency>
219 <dependency>
Jorge Hernandezfb79f7a2017-08-31 00:09:45 -0500220 <groupId>org.eclipse.persistence</groupId>
221 <artifactId>org.eclipse.persistence.jpa</artifactId>
222 <version>${eclipselink.version}</version>
223 </dependency>
224 <dependency>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500225 <groupId>org.mariadb.jdbc</groupId>
226 <artifactId>mariadb-java-client</artifactId>
227 <version>${mariadb.jdbc.version}</version>
Jorge Hernandezf9f086c2017-08-15 19:12:25 -0500228 </dependency>
Jorge Hernandez0c409142017-08-16 12:41:11 -0500229 <dependency>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500230 <groupId>org.hibernate</groupId>
231 <artifactId>hibernate-core</artifactId>
232 <version>${hibernate.core.version}</version>
Jorge Hernandez0c409142017-08-16 12:41:11 -0500233 </dependency>
234 <dependency>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500235 <groupId>org.hibernate.common</groupId>
236 <artifactId>hibernate-commons-annotations</artifactId>
237 <version>${hibernate.commons.annotations.version}</version>
Temoc Rodriguez82ba9222017-08-17 08:24:55 -0700238 </dependency>
Jorge Hernandezfb79f7a2017-08-31 00:09:45 -0500239 <dependency>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500240 <groupId>commons-io</groupId>
241 <artifactId>commons-io</artifactId>
242 <version>${commons.io.version}</version>
Jorge Hernandezfb79f7a2017-08-31 00:09:45 -0500243 </dependency>
Jorge Hernandez7b245f02017-10-30 17:27:08 -0500244 <dependency>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500245 <groupId>xml-apis</groupId>
246 <artifactId>xml-apis</artifactId>
247 <version>${xml.apis.version}</version>
Jorge Hernandez7b245f02017-10-30 17:27:08 -0500248 </dependency>
Ralph Straubs5bd9ff42017-04-21 04:23:55 -0500249 </dependencies>
250 </dependencyManagement>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500251
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500252 <build>
253 <plugins>
254 <plugin>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500255 <groupId>org.jacoco</groupId>
256 <artifactId>jacoco-maven-plugin</artifactId>
257 <executions>
258 <execution>
259 <id>pre-unit-test</id>
260 <goals>
261 <goal>prepare-agent</goal>
262 </goals>
263 <configuration>
264 <destFile>${sonar.jacoco.reportPath}</destFile>
265 <append>true</append>
266 </configuration>
267 </execution>
268 <execution>
269 <id>post-unit-test</id>
270 <phase>test</phase>
271 <goals>
272 <goal>report</goal>
273 </goals>
274 <configuration>
275 <dataFile>${sonar.jacoco.reportPath}</dataFile>
276 </configuration>
277 </execution>
278 </executions>
279 </plugin>
280 <plugin>
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500281 <groupId>org.sonatype.plugins</groupId>
282 <artifactId>nexus-staging-maven-plugin</artifactId>
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500283 <extensions>true</extensions>
284 <configuration>
285 <nexusUrl>${nexusproxy}</nexusUrl>
286 <stagingProfileId>176c31dfe190a</stagingProfileId>
Pamela Dragosh96265942017-07-31 21:31:31 -0400287 <serverId>ecomp-staging</serverId>
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500288 </configuration>
289 </plugin>
290 <plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500291 <groupId>org.apache.maven.plugins</groupId>
292 <artifactId>maven-deploy-plugin</artifactId>
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500293 <configuration>
294 <skip />
295 </configuration>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500296 </plugin>
297 <plugin>
298 <groupId>org.apache.maven.plugins</groupId>
299 <artifactId>maven-compiler-plugin</artifactId>
300 <version>3.0</version>
301 <configuration>
302 <encoding>${project.encoding}</encoding>
303 <source>${project.source.version}</source>
304 <target>${project.target.version}</target>
305 </configuration>
306 </plugin>
307 <plugin>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-resources-plugin</artifactId>
310 <version>2.6</version>
311 <configuration>
312 <encoding>${project.encoding}</encoding>
313 </configuration>
314 </plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500315
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400316 <plugin>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500317 <groupId>org.apache.maven.plugins</groupId>
318 <artifactId>maven-site-plugin</artifactId>
319 <dependencies>
320 <dependency>
321 <groupId>org.apache.maven.wagon</groupId>
322 <artifactId>wagon-webdav-jackrabbit</artifactId>
323 <version>2.10</version>
324 </dependency>
325 </dependencies>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400326 </plugin>
Jorge Hernandez1550fa82017-07-26 19:00:54 -0500327
328 <plugin>
329 <groupId>org.jacoco</groupId>
330 <artifactId>jacoco-maven-plugin</artifactId>
331 </plugin>
332
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500333
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500334 </plugins>
335 <pluginManagement>
336 <plugins>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500337 <plugin>
338 <groupId>org.jacoco</groupId>
339 <artifactId>jacoco-maven-plugin</artifactId>
340 <version>${jacoco.version}</version>
341 <configuration>
342 <!-- Note: This exclusion list should match <sonar.exclusions> property
343 above -->
344 <excludes>
345 <exclude>**/gen/**</exclude>
346 <exclude>**/generated-sources/**</exclude>
347 <exclude>**/yang-gen/**</exclude>
348 <exclude>**/pax/**</exclude>
349 </excludes>
350 </configuration>
351 <executions>
352 <!-- Prepares the property pointing to the JaCoCo runtime agent which
353 is passed as VM argument when Maven the Surefire plugin is executed. -->
354 <execution>
355 <id>pre-unit-test</id>
356 <goals>
357 <goal>prepare-agent</goal>
358 </goals>
359 <configuration>
360 <destFile>${sonar.jacoco.reportPath}</destFile>
361 </configuration>
362 </execution>
363 <!-- Ensures that the code coverage report for unit tests is created
364 after unit tests have been run. -->
365 <execution>
366 <id>post-unit-test</id>
367 <phase>test</phase>
368 <goals>
369 <goal>report</goal>
370 </goals>
371 <configuration>
372 <dataFile>${sonar.jacoco.reportPath}</dataFile>
373 </configuration>
374 </execution>
375 </executions>
376 </plugin>
377 <plugin>
378 <groupId>org.eclipse.m2e</groupId>
379 <artifactId>lifecycle-mapping</artifactId>
380 <version>1.0.0</version>
381 <configuration>
382 <lifecycleMappingMetadata>
383 <pluginExecutions>
384 <pluginExecution>
385 <pluginExecutionFilter>
386 <groupId>org.apache.maven.plugins</groupId>
387 <artifactId>maven-checkstyle-plugin</artifactId>
388 <versionRange>2.17,)</versionRange>
389 <goals>
390 <goal>check</goal>
391 </goals>
392 </pluginExecutionFilter>
393 <action>
394 <ignore />
395 </action>
396 </pluginExecution>
397 </pluginExecutions>
398 </lifecycleMappingMetadata>
399 </configuration>
400 </plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500401 </plugins>
402 </pluginManagement>
403 </build>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400404 <reporting>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500405 <plugins>
406 <plugin>
407 <groupId>org.apache.maven.plugins</groupId>
408 <artifactId>maven-javadoc-plugin</artifactId>
409 <version>2.10.4</version>
410 <configuration>
411 <failOnError>false</failOnError>
412 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
413 <docletArtifact>
414 <groupId>org.umlgraph</groupId>
415 <artifactId>umlgraph</artifactId>
416 <version>5.6</version>
417 </docletArtifact>
418 <additionalparam>-views</additionalparam>
419 <useStandardDocletOptions>true</useStandardDocletOptions>
420 </configuration>
421 </plugin>
422 </plugins>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400423 </reporting>
424
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500425</project>