Peyton Puckett | dbdfc63 | 2019-09-30 14:28:14 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | ONAP Policy Engine - Drools PDP |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 5 | ================================================================================ |
Hockla, Ali (ah999m) | 7c924cf | 2020-01-10 15:31:03 -0600 | [diff] [blame^] | 6 | Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved. |
liamfallon | eb70ba3 | 2019-11-01 12:01:13 +0000 | [diff] [blame] | 7 | Modifications Copyright (C) 2019 Nordix Foundation. |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 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 |
Temoc Rodriguez | 82ba922 | 2017-08-17 08:24:55 -0700 | [diff] [blame] | 12 | |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 13 | http://www.apache.org/licenses/LICENSE-2.0 |
Temoc Rodriguez | 82ba922 | 2017-08-17 08:24:55 -0700 | [diff] [blame] | 14 | |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 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. |
Peyton Puckett | dbdfc63 | 2019-09-30 14:28:14 -0500 | [diff] [blame] | 20 | ============LICENSE_END========================================================= |
Pamela Dragosh | bd6c437 | 2018-02-16 10:30:56 -0500 | [diff] [blame] | 21 | --> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 22 | |
liamfallon | 9920020 | 2018-10-31 16:00:08 +0000 | [diff] [blame] | 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"> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 24 | <modelVersion>4.0.0</modelVersion> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 25 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 26 | <parent> |
| 27 | <groupId>org.onap.policy.parent</groupId> |
| 28 | <artifactId>integration</artifactId> |
Hockla, Ali (ah999m) | e364a5b | 2019-12-05 12:21:48 -0600 | [diff] [blame] | 29 | <version>3.1.0</version> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 30 | <relativePath /> |
| 31 | </parent> |
Guo Ruijing | 15be35a | 2017-08-03 11:32:09 +0000 | [diff] [blame] | 32 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 33 | <groupId>org.onap.policy.drools-pdp</groupId> |
| 34 | <artifactId>drools-pdp</artifactId> |
Jim Hahn | 89a8e32 | 2019-09-10 11:22:40 -0400 | [diff] [blame] | 35 | <version>1.6.0-SNAPSHOT</version> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 36 | <packaging>pom</packaging> |
| 37 | <name>policy-drools-pdp</name> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 38 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 39 | <description>The ONAP Policy Engine drools-based PDP Project</description> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 40 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 41 | <properties> |
| 42 | <!-- Project common build settings --> |
| 43 | <project.source.version>1.8</project.source.version> |
| 44 | <project.target.version>1.8</project.target.version> |
Pamela Dragosh | bd6c437 | 2018-02-16 10:30:56 -0500 | [diff] [blame] | 45 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 46 | <!-- Project path properties --> |
| 47 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 48 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath> |
| 49 | <releases.path>content/repositories/releases/</releases.path> |
| 50 | <snapshots.path>content/repositories/snapshots/</snapshots.path> |
| 51 | <staging.path>content/repositories/staging/</staging.path> |
Pamela Dragosh | bd6c437 | 2018-02-16 10:30:56 -0500 | [diff] [blame] | 52 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 53 | <!-- sonar/jacoco overrides --> |
Peyton Puckett | dbdfc63 | 2019-09-30 14:28:14 -0500 | [diff] [blame] | 54 | <!-- Overriding oparent default sonar/jacoco settings Combine all our reports |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 55 | into one file shared across sub-modules --> |
| 56 | <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 57 | <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 58 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> |
Pamela Dragosh | bd6c437 | 2018-02-16 10:30:56 -0500 | [diff] [blame] | 59 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 60 | <!-- Project common dependency versions --> |
Daniel Cruz | fa2a5a4 | 2019-02-14 00:42:45 -0600 | [diff] [blame] | 61 | <json.path.version>2.4.0</json.path.version> |
Jim Hahn | 0e6b16b | 2018-09-11 10:11:29 -0400 | [diff] [blame] | 62 | <hibernate.core.version>5.2.10.Final</hibernate.core.version> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 63 | <hibernate.commons.annotations.version>5.0.1.Final</hibernate.commons.annotations.version> |
| 64 | <commons.io.version>2.5</commons.io.version> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 65 | <xml.apis.version>1.4.01</xml.apis.version> |
Hockla, Ali (ah999m) | e364a5b | 2019-12-05 12:21:48 -0600 | [diff] [blame] | 66 | <policy.common.version>1.6.1</policy.common.version> |
Hockla, Ali (ah999m) | 7c924cf | 2020-01-10 15:31:03 -0600 | [diff] [blame^] | 67 | <policy.models.version>2.2.0</policy.models.version> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 68 | </properties> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 69 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 70 | <modules> |
| 71 | <module>policy-utils</module> |
| 72 | <module>policy-core</module> |
| 73 | <module>policy-management</module> |
| 74 | <module>feature-healthcheck</module> |
| 75 | <module>feature-eelf</module> |
Jim Hahn | a3fa1c6 | 2018-03-26 16:48:31 -0400 | [diff] [blame] | 76 | <module>feature-pooling-dmaap</module> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 77 | <module>feature-session-persistence</module> |
| 78 | <module>feature-test-transaction</module> |
| 79 | <module>api-state-management</module> |
| 80 | <module>feature-state-management</module> |
| 81 | <module>api-active-standby-management</module> |
| 82 | <module>feature-active-standby-management</module> |
| 83 | <module>feature-simulators</module> |
| 84 | <module>feature-distributed-locking</module> |
Daniel Cruz | 62e4281 | 2019-02-22 11:31:17 -0600 | [diff] [blame] | 85 | <module>feature-controller-logging</module> |
Daniel Cruz | 89d3441 | 2019-03-22 08:33:29 -0500 | [diff] [blame] | 86 | <module>feature-mdc-filters</module> |
Jorge Hernandez | 964b127 | 2019-03-28 01:12:10 -0500 | [diff] [blame] | 87 | <module>feature-lifecycle</module> |
Straubs, Ralph (rs8887) | f9e71de | 2019-10-28 07:49:56 -0500 | [diff] [blame] | 88 | <module>feature-drools-init</module> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 89 | <module>packages</module> |
| 90 | </modules> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 91 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 92 | <dependencyManagement> |
| 93 | <dependencies> |
| 94 | <dependency> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 95 | <groupId>javax.ws.rs</groupId> |
| 96 | <artifactId>javax.ws.rs-api</artifactId> |
| 97 | <version>2.0.1</version> |
| 98 | </dependency> |
| 99 | <dependency> |
| 100 | <groupId>org.glassfish.hk2.external</groupId> |
| 101 | <artifactId>javax.inject</artifactId> |
| 102 | <version>2.4.0-b31</version> |
| 103 | </dependency> |
| 104 | <dependency> |
Daniel Cruz | fa2a5a4 | 2019-02-14 00:42:45 -0600 | [diff] [blame] | 105 | <groupId>com.jayway.jsonpath</groupId> |
| 106 | <artifactId>json-path</artifactId> |
| 107 | <version>${json.path.version}</version> |
| 108 | </dependency> |
| 109 | <dependency> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 110 | <groupId>org.hibernate</groupId> |
| 111 | <artifactId>hibernate-core</artifactId> |
| 112 | <version>${hibernate.core.version}</version> |
| 113 | </dependency> |
| 114 | <dependency> |
| 115 | <groupId>org.hibernate.common</groupId> |
| 116 | <artifactId>hibernate-commons-annotations</artifactId> |
| 117 | <version>${hibernate.commons.annotations.version}</version> |
| 118 | </dependency> |
| 119 | <dependency> |
| 120 | <groupId>commons-io</groupId> |
| 121 | <artifactId>commons-io</artifactId> |
| 122 | <version>${commons.io.version}</version> |
| 123 | </dependency> |
| 124 | <dependency> |
| 125 | <groupId>xml-apis</groupId> |
| 126 | <artifactId>xml-apis</artifactId> |
| 127 | <version>${xml.apis.version}</version> |
| 128 | </dependency> |
| 129 | </dependencies> |
| 130 | </dependencyManagement> |
Pamela Dragosh | bd6c437 | 2018-02-16 10:30:56 -0500 | [diff] [blame] | 131 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 132 | <build> |
| 133 | <plugins> |
| 134 | <plugin> |
| 135 | <groupId>org.jacoco</groupId> |
| 136 | <artifactId>jacoco-maven-plugin</artifactId> |
| 137 | <executions> |
| 138 | <execution> |
| 139 | <id>pre-unit-test</id> |
| 140 | <goals> |
| 141 | <goal>prepare-agent</goal> |
| 142 | </goals> |
| 143 | <configuration> |
| 144 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 145 | <append>true</append> |
| 146 | </configuration> |
| 147 | </execution> |
| 148 | <execution> |
| 149 | <id>post-unit-test</id> |
| 150 | <phase>test</phase> |
| 151 | <goals> |
| 152 | <goal>report</goal> |
| 153 | </goals> |
| 154 | <configuration> |
| 155 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 156 | </configuration> |
| 157 | </execution> |
| 158 | </executions> |
| 159 | </plugin> |
Pamela Dragosh | a0e0c78 | 2018-09-28 04:58:26 -0400 | [diff] [blame] | 160 | <plugin> |
| 161 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 162 | <executions> |
| 163 | <execution> |
| 164 | <id>onap-java-style</id> |
| 165 | <goals> |
| 166 | <goal>check</goal> |
| 167 | </goals> |
| 168 | <phase>process-sources</phase> |
| 169 | <configuration> |
Peyton Puckett | dbdfc63 | 2019-09-30 14:28:14 -0500 | [diff] [blame] | 170 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
Pamela Dragosh | a0e0c78 | 2018-09-28 04:58:26 -0400 | [diff] [blame] | 171 | with minor changes --> |
| 172 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 173 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
| 174 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 175 | <includeResources>true</includeResources> |
| 176 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 177 | <includeTestResources>true</includeTestResources> |
| 178 | <excludes> |
| 179 | </excludes> |
| 180 | <!-- suppressionsLocation>${project.baseUri}checkstyle-suppressions.xml</suppressionsLocation --> |
| 181 | <consoleOutput>true</consoleOutput> |
| 182 | <failsOnViolation>true</failsOnViolation> |
| 183 | <violationSeverity>warning</violationSeverity> |
| 184 | </configuration> |
| 185 | </execution> |
| 186 | </executions> |
| 187 | <dependencies> |
| 188 | <dependency> |
| 189 | <groupId>org.onap.oparent</groupId> |
| 190 | <artifactId>checkstyle</artifactId> |
| 191 | <version>${oparent.version}</version> |
| 192 | <scope>compile</scope> |
| 193 | </dependency> |
| 194 | </dependencies> |
| 195 | </plugin> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 196 | <plugin> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 197 | <groupId>org.apache.maven.plugins</groupId> |
| 198 | <artifactId>maven-deploy-plugin</artifactId> |
| 199 | <configuration> |
Peyton Puckett | dbdfc63 | 2019-09-30 14:28:14 -0500 | [diff] [blame] | 200 | <skip/> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 201 | </configuration> |
| 202 | </plugin> |
| 203 | <plugin> |
| 204 | <groupId>org.apache.maven.plugins</groupId> |
| 205 | <artifactId>maven-compiler-plugin</artifactId> |
| 206 | <configuration> |
| 207 | <encoding>${project.encoding}</encoding> |
| 208 | <source>${project.source.version}</source> |
| 209 | <target>${project.target.version}</target> |
| 210 | </configuration> |
| 211 | </plugin> |
| 212 | <plugin> |
| 213 | <groupId>org.apache.maven.plugins</groupId> |
| 214 | <artifactId>maven-resources-plugin</artifactId> |
| 215 | <configuration> |
| 216 | <encoding>${project.encoding}</encoding> |
| 217 | </configuration> |
| 218 | </plugin> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 219 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 220 | <plugin> |
| 221 | <groupId>org.apache.maven.plugins</groupId> |
| 222 | <artifactId>maven-site-plugin</artifactId> |
| 223 | <dependencies> |
| 224 | <dependency> |
| 225 | <groupId>org.apache.maven.wagon</groupId> |
| 226 | <artifactId>wagon-webdav-jackrabbit</artifactId> |
| 227 | <version>2.10</version> |
| 228 | </dependency> |
| 229 | </dependencies> |
| 230 | </plugin> |
| 231 | </plugins> |
| 232 | <pluginManagement> |
| 233 | <plugins> |
| 234 | <plugin> |
| 235 | <groupId>org.jacoco</groupId> |
| 236 | <artifactId>jacoco-maven-plugin</artifactId> |
| 237 | <version>${jacoco.version}</version> |
| 238 | <configuration> |
Peyton Puckett | dbdfc63 | 2019-09-30 14:28:14 -0500 | [diff] [blame] | 239 | <!-- Note: This exclusion list should match <sonar.exclusions> property |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 240 | above --> |
| 241 | <excludes> |
| 242 | <exclude>**/gen/**</exclude> |
| 243 | <exclude>**/generated-sources/**</exclude> |
| 244 | <exclude>**/yang-gen/**</exclude> |
| 245 | <exclude>**/pax/**</exclude> |
| 246 | </excludes> |
| 247 | </configuration> |
| 248 | <executions> |
Peyton Puckett | dbdfc63 | 2019-09-30 14:28:14 -0500 | [diff] [blame] | 249 | <!-- Prepares the property pointing to the JaCoCo runtime agent which |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 250 | is passed as VM argument when Maven the Surefire plugin is executed. --> |
| 251 | <execution> |
| 252 | <id>pre-unit-test</id> |
| 253 | <goals> |
| 254 | <goal>prepare-agent</goal> |
| 255 | </goals> |
| 256 | <configuration> |
| 257 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 258 | </configuration> |
| 259 | </execution> |
Peyton Puckett | dbdfc63 | 2019-09-30 14:28:14 -0500 | [diff] [blame] | 260 | <!-- Ensures that the code coverage report for unit tests is created |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 261 | after unit tests have been run. --> |
| 262 | <execution> |
| 263 | <id>post-unit-test</id> |
| 264 | <phase>test</phase> |
| 265 | <goals> |
| 266 | <goal>report</goal> |
| 267 | </goals> |
| 268 | <configuration> |
| 269 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 270 | </configuration> |
| 271 | </execution> |
| 272 | </executions> |
| 273 | </plugin> |
| 274 | <plugin> |
| 275 | <groupId>org.eclipse.m2e</groupId> |
| 276 | <artifactId>lifecycle-mapping</artifactId> |
| 277 | <version>1.0.0</version> |
| 278 | <configuration> |
| 279 | <lifecycleMappingMetadata> |
| 280 | <pluginExecutions> |
| 281 | <pluginExecution> |
| 282 | <pluginExecutionFilter> |
| 283 | <groupId>org.apache.maven.plugins</groupId> |
| 284 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 285 | <versionRange>2.17,)</versionRange> |
| 286 | <goals> |
| 287 | <goal>check</goal> |
| 288 | </goals> |
| 289 | </pluginExecutionFilter> |
| 290 | <action> |
Peyton Puckett | dbdfc63 | 2019-09-30 14:28:14 -0500 | [diff] [blame] | 291 | <ignore/> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 292 | </action> |
| 293 | </pluginExecution> |
| 294 | </pluginExecutions> |
| 295 | </lifecycleMappingMetadata> |
| 296 | </configuration> |
| 297 | </plugin> |
| 298 | </plugins> |
| 299 | </pluginManagement> |
| 300 | </build> |
| 301 | <reporting> |
| 302 | <plugins> |
| 303 | <plugin> |
| 304 | <groupId>org.apache.maven.plugins</groupId> |
| 305 | <artifactId>maven-javadoc-plugin</artifactId> |
| 306 | <version>2.10.4</version> |
| 307 | <configuration> |
| 308 | <failOnError>false</failOnError> |
| 309 | <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> |
| 310 | <docletArtifact> |
| 311 | <groupId>org.umlgraph</groupId> |
| 312 | <artifactId>umlgraph</artifactId> |
| 313 | <version>5.6</version> |
| 314 | </docletArtifact> |
| 315 | <additionalparam>-views</additionalparam> |
| 316 | <useStandardDocletOptions>true</useStandardDocletOptions> |
| 317 | </configuration> |
| 318 | </plugin> |
| 319 | </plugins> |
| 320 | </reporting> |
Pamela Dragosh | b67f417 | 2017-04-10 10:24:23 -0400 | [diff] [blame] | 321 | |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 322 | </project> |