blob: 8c7bfdaddc99aac4eb0547012750a658ff4a5648 [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>
liamfallonceeadde2018-03-14 21:39:40 +000028 <version>1.1.0</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 -->
Pamela Dragosh22a23352018-03-14 08:18:29 -040060 <dmaap.version>1.1.3</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
Ralph Straubs5bd9ff42017-04-21 04:23:55 -0500112 <dependencyManagement>
113 <dependencies>
114 <dependency>
115 <groupId>com.google.guava</groupId>
116 <artifactId>guava</artifactId>
Jorge Hernandezfb79f7a2017-08-31 00:09:45 -0500117 <version>${guava.version}</version>
Ralph Straubs5bd9ff42017-04-21 04:23:55 -0500118 </dependency>
119 <dependency>
120 <groupId>javax.ws.rs</groupId>
121 <artifactId>javax.ws.rs-api</artifactId>
122 <version>2.0.1</version>
123 </dependency>
124 <dependency>
125 <groupId>org.glassfish.hk2.external</groupId>
126 <artifactId>javax.inject</artifactId>
127 <version>2.4.0-b31</version>
128 </dependency>
129 <dependency>
130 <groupId>com.fasterxml.jackson.jaxrs</groupId>
131 <artifactId>jackson-jaxrs-base</artifactId>
132 <version>${jackson.version}</version>
133 </dependency>
134 <dependency>
135 <groupId>com.fasterxml.jackson.jaxrs</groupId>
136 <artifactId>jackson-jaxrs-json-provider</artifactId>
137 <version>${jackson.version}</version>
138 </dependency>
139 <dependency>
140 <groupId>com.fasterxml.jackson.dataformat</groupId>
141 <artifactId>jackson-dataformat-xml</artifactId>
142 <version>${jackson.version}</version>
143 </dependency>
144 <dependency>
145 <groupId>com.fasterxml.jackson.dataformat</groupId>
146 <artifactId>jackson-dataformat-yaml</artifactId>
147 <version>${jackson.version}</version>
148 </dependency>
149 <dependency>
150 <groupId>com.fasterxml.jackson.datatype</groupId>
151 <artifactId>jackson-datatype-joda</artifactId>
152 <version>${jackson.version}</version>
153 </dependency>
154 <dependency>
155 <groupId>org.glassfish.jersey.containers</groupId>
156 <artifactId>jersey-common</artifactId>
157 <version>${jersey.version}</version>
158 </dependency>
159 <dependency>
160 <groupId>org.glassfish.jersey.containers</groupId>
161 <artifactId>jersey-container-servlet-core</artifactId>
162 <version>${jersey.version}</version>
163 </dependency>
Jorge Hernandez881c32e2017-05-25 16:44:15 -0500164 <dependency>
165 <groupId>io.swagger</groupId>
166 <artifactId>swagger-jersey2-jaxrs</artifactId>
167 <version>${jersey.swagger.version}</version>
168 </dependency>
Jorge Hernandez85e12562017-06-05 09:51:55 -0500169 <dependency>
170 <groupId>org.apache.httpcomponents</groupId>
171 <artifactId>httpclient</artifactId>
Jorge Hernandez8f61e182017-06-22 17:17:28 -0500172 <version>${http.client.version}</version>
Jorge Hernandez85e12562017-06-05 09:51:55 -0500173 </dependency>
174 <dependency>
175 <groupId>org.apache.httpcomponents</groupId>
176 <artifactId>httpcore</artifactId>
Jorge Hernandez8f61e182017-06-22 17:17:28 -0500177 <version>${http.core.version}</version>
178 </dependency>
179 <dependency>
180 <groupId>ch.qos.logback</groupId>
181 <artifactId>logback-classic</artifactId>
182 <version>${logback.version}</version>
Jorge Hernandez85e12562017-06-05 09:51:55 -0500183 </dependency>
Jorge Hernandezf9f086c2017-08-15 19:12:25 -0500184 <dependency>
185 <groupId>junit</groupId>
186 <artifactId>junit</artifactId>
187 <version>${junit.version}</version>
188 </dependency>
189 <dependency>
190 <groupId>org.eclipse.persistence</groupId>
191 <artifactId>eclipselink</artifactId>
192 <version>${eclipselink.version}</version>
193 </dependency>
194 <dependency>
Jorge Hernandezfb79f7a2017-08-31 00:09:45 -0500195 <groupId>org.eclipse.persistence</groupId>
196 <artifactId>org.eclipse.persistence.jpa</artifactId>
197 <version>${eclipselink.version}</version>
198 </dependency>
199 <dependency>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500200 <groupId>org.mariadb.jdbc</groupId>
201 <artifactId>mariadb-java-client</artifactId>
202 <version>${mariadb.jdbc.version}</version>
Jorge Hernandezf9f086c2017-08-15 19:12:25 -0500203 </dependency>
Jorge Hernandez0c409142017-08-16 12:41:11 -0500204 <dependency>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500205 <groupId>org.hibernate</groupId>
206 <artifactId>hibernate-core</artifactId>
207 <version>${hibernate.core.version}</version>
Jorge Hernandez0c409142017-08-16 12:41:11 -0500208 </dependency>
209 <dependency>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500210 <groupId>org.hibernate.common</groupId>
211 <artifactId>hibernate-commons-annotations</artifactId>
212 <version>${hibernate.commons.annotations.version}</version>
Temoc Rodriguez82ba9222017-08-17 08:24:55 -0700213 </dependency>
Jorge Hernandezfb79f7a2017-08-31 00:09:45 -0500214 <dependency>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500215 <groupId>commons-io</groupId>
216 <artifactId>commons-io</artifactId>
217 <version>${commons.io.version}</version>
Jorge Hernandezfb79f7a2017-08-31 00:09:45 -0500218 </dependency>
Jorge Hernandez7b245f02017-10-30 17:27:08 -0500219 <dependency>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500220 <groupId>xml-apis</groupId>
221 <artifactId>xml-apis</artifactId>
222 <version>${xml.apis.version}</version>
Jorge Hernandez7b245f02017-10-30 17:27:08 -0500223 </dependency>
Ralph Straubs5bd9ff42017-04-21 04:23:55 -0500224 </dependencies>
225 </dependencyManagement>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500226
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500227 <build>
228 <plugins>
229 <plugin>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500230 <groupId>org.jacoco</groupId>
231 <artifactId>jacoco-maven-plugin</artifactId>
232 <executions>
233 <execution>
234 <id>pre-unit-test</id>
235 <goals>
236 <goal>prepare-agent</goal>
237 </goals>
238 <configuration>
239 <destFile>${sonar.jacoco.reportPath}</destFile>
240 <append>true</append>
241 </configuration>
242 </execution>
243 <execution>
244 <id>post-unit-test</id>
245 <phase>test</phase>
246 <goals>
247 <goal>report</goal>
248 </goals>
249 <configuration>
250 <dataFile>${sonar.jacoco.reportPath}</dataFile>
251 </configuration>
252 </execution>
253 </executions>
254 </plugin>
255 <plugin>
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500256 <groupId>org.sonatype.plugins</groupId>
257 <artifactId>nexus-staging-maven-plugin</artifactId>
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500258 <extensions>true</extensions>
259 <configuration>
260 <nexusUrl>${nexusproxy}</nexusUrl>
261 <stagingProfileId>176c31dfe190a</stagingProfileId>
Pamela Dragosh96265942017-07-31 21:31:31 -0400262 <serverId>ecomp-staging</serverId>
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500263 </configuration>
264 </plugin>
265 <plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500266 <groupId>org.apache.maven.plugins</groupId>
267 <artifactId>maven-deploy-plugin</artifactId>
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500268 <configuration>
269 <skip />
270 </configuration>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500271 </plugin>
272 <plugin>
273 <groupId>org.apache.maven.plugins</groupId>
274 <artifactId>maven-compiler-plugin</artifactId>
275 <version>3.0</version>
276 <configuration>
277 <encoding>${project.encoding}</encoding>
278 <source>${project.source.version}</source>
279 <target>${project.target.version}</target>
280 </configuration>
281 </plugin>
282 <plugin>
283 <groupId>org.apache.maven.plugins</groupId>
284 <artifactId>maven-resources-plugin</artifactId>
285 <version>2.6</version>
286 <configuration>
287 <encoding>${project.encoding}</encoding>
288 </configuration>
289 </plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500290
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400291 <plugin>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500292 <groupId>org.apache.maven.plugins</groupId>
293 <artifactId>maven-site-plugin</artifactId>
294 <dependencies>
295 <dependency>
296 <groupId>org.apache.maven.wagon</groupId>
297 <artifactId>wagon-webdav-jackrabbit</artifactId>
298 <version>2.10</version>
299 </dependency>
300 </dependencies>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400301 </plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500302 </plugins>
303 <pluginManagement>
304 <plugins>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500305 <plugin>
306 <groupId>org.jacoco</groupId>
307 <artifactId>jacoco-maven-plugin</artifactId>
308 <version>${jacoco.version}</version>
309 <configuration>
310 <!-- Note: This exclusion list should match <sonar.exclusions> property
311 above -->
312 <excludes>
313 <exclude>**/gen/**</exclude>
314 <exclude>**/generated-sources/**</exclude>
315 <exclude>**/yang-gen/**</exclude>
316 <exclude>**/pax/**</exclude>
317 </excludes>
318 </configuration>
319 <executions>
320 <!-- Prepares the property pointing to the JaCoCo runtime agent which
321 is passed as VM argument when Maven the Surefire plugin is executed. -->
322 <execution>
323 <id>pre-unit-test</id>
324 <goals>
325 <goal>prepare-agent</goal>
326 </goals>
327 <configuration>
328 <destFile>${sonar.jacoco.reportPath}</destFile>
329 </configuration>
330 </execution>
331 <!-- Ensures that the code coverage report for unit tests is created
332 after unit tests have been run. -->
333 <execution>
334 <id>post-unit-test</id>
335 <phase>test</phase>
336 <goals>
337 <goal>report</goal>
338 </goals>
339 <configuration>
340 <dataFile>${sonar.jacoco.reportPath}</dataFile>
341 </configuration>
342 </execution>
343 </executions>
344 </plugin>
345 <plugin>
346 <groupId>org.eclipse.m2e</groupId>
347 <artifactId>lifecycle-mapping</artifactId>
348 <version>1.0.0</version>
349 <configuration>
350 <lifecycleMappingMetadata>
351 <pluginExecutions>
352 <pluginExecution>
353 <pluginExecutionFilter>
354 <groupId>org.apache.maven.plugins</groupId>
355 <artifactId>maven-checkstyle-plugin</artifactId>
356 <versionRange>2.17,)</versionRange>
357 <goals>
358 <goal>check</goal>
359 </goals>
360 </pluginExecutionFilter>
361 <action>
362 <ignore />
363 </action>
364 </pluginExecution>
365 </pluginExecutions>
366 </lifecycleMappingMetadata>
367 </configuration>
368 </plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500369 </plugins>
370 </pluginManagement>
371 </build>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400372 <reporting>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500373 <plugins>
374 <plugin>
375 <groupId>org.apache.maven.plugins</groupId>
376 <artifactId>maven-javadoc-plugin</artifactId>
377 <version>2.10.4</version>
378 <configuration>
379 <failOnError>false</failOnError>
380 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
381 <docletArtifact>
382 <groupId>org.umlgraph</groupId>
383 <artifactId>umlgraph</artifactId>
384 <version>5.6</version>
385 </docletArtifact>
386 <additionalparam>-views</additionalparam>
387 <useStandardDocletOptions>true</useStandardDocletOptions>
388 </configuration>
389 </plugin>
390 </plugins>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400391 </reporting>
392
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500393</project>