Hengye | b150aa8 | 2019-03-25 14:32:21 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (C) 2018 Ericsson. All rights reserved. |
liamfallon | aa317c7 | 2019-02-05 13:41:59 +0000 | [diff] [blame] | 5 | Copyright (C) 2019 Nordix Foundation. |
HOCKLA | c5475f1 | 2020-01-10 12:16:00 -0600 | [diff] [blame] | 6 | Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 7 | ================================================================================ |
| 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 | |
| 20 | SPDX-License-Identifier: Apache-2.0 |
| 21 | ============LICENSE_END========================================================= |
ramverma | b359a4b | 2019-06-27 11:11:24 +0000 | [diff] [blame] | 22 | --> |
| 23 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 25 | <modelVersion>4.0.0</modelVersion> |
| 26 | <parent> |
| 27 | <groupId>org.onap.policy.parent</groupId> |
| 28 | <artifactId>integration</artifactId> |
HOCKLA | 754f9a0 | 2019-12-21 12:11:33 -0600 | [diff] [blame^] | 29 | <version>3.1.1-SNAPSHOT</version> |
ramverma | b359a4b | 2019-06-27 11:11:24 +0000 | [diff] [blame] | 30 | <relativePath /> |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 31 | </parent> |
| 32 | |
| 33 | <groupId>org.onap.policy.models</groupId> |
| 34 | <artifactId>policy-models</artifactId> |
HOCKLA | c5475f1 | 2020-01-10 12:16:00 -0600 | [diff] [blame] | 35 | <version>2.2.1-SNAPSHOT</version> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 36 | |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 37 | <packaging>pom</packaging> |
Pamela Dragosh | d01b3fa | 2018-05-25 08:17:28 -0400 | [diff] [blame] | 38 | <name>policy-models</name> |
liamfallon | aa317c7 | 2019-02-05 13:41:59 +0000 | [diff] [blame] | 39 | <description>This repo holds model code agnostic to PDP engines</description> |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 40 | |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 41 | <properties> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 42 | <derby.version>10.13.1.1</derby.version> |
HOCKLA | 754f9a0 | 2019-12-21 12:11:33 -0600 | [diff] [blame^] | 43 | <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 44 | |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 45 | <!-- sonar/jacoco overrides --> |
| 46 | <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules --> |
| 47 | <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 48 | <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 49 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> |
Pamela Dragosh | 814101d | 2019-05-29 07:44:50 -0400 | [diff] [blame] | 50 | |
HOCKLA | 754f9a0 | 2019-12-21 12:11:33 -0600 | [diff] [blame^] | 51 | <policy.common.version>1.6.2-SNAPSHOT</policy.common.version> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 52 | </properties> |
| 53 | |
| 54 | <modules> |
liamfallon | f240fda | 2019-02-26 13:57:39 +0000 | [diff] [blame] | 55 | <module>models-base</module> |
| 56 | <module>models-dao</module> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 57 | <module>models-tosca</module> |
ramverma | 5948388 | 2019-03-12 22:15:38 +0000 | [diff] [blame] | 58 | <module>models-pap</module> |
Jim Hahn | a4b62b8 | 2019-03-21 09:54:30 -0400 | [diff] [blame] | 59 | <module>models-pdp</module> |
Pamela Dragosh | 99837f4 | 2019-03-21 09:58:52 -0400 | [diff] [blame] | 60 | <module>models-errors</module> |
Pamela Dragosh | 2d4d299 | 2019-03-16 17:17:37 -0400 | [diff] [blame] | 61 | <module>models-decisions</module> |
liamfallon | 4c28d2c | 2019-03-14 10:01:58 +0000 | [diff] [blame] | 62 | <module>models-provider</module> |
liamfallon | 9727c32 | 2019-03-19 16:29:56 +0000 | [diff] [blame] | 63 | <module>models-examples</module> |
Hengye | b150aa8 | 2019-03-25 14:32:21 +0000 | [diff] [blame] | 64 | <module>models-interactions</module> |
liamfallon | 9009203 | 2019-04-17 13:58:26 +0000 | [diff] [blame] | 65 | <module>models-sim</module> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 66 | </modules> |
| 67 | |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 68 | <distributionManagement> |
| 69 | <site> |
| 70 | <id>ecomp-site</id> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 71 | <url>dav:${nexusproxy}${sitePath}</url> |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 72 | </site> |
| 73 | </distributionManagement> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 74 | |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 75 | <dependencies> |
| 76 | <dependency> |
| 77 | <groupId>org.onap.policy.common</groupId> |
| 78 | <artifactId>utils</artifactId> |
| 79 | </dependency> |
| 80 | |
| 81 | <dependency> |
| 82 | <groupId>org.slf4j</groupId> |
| 83 | <artifactId>slf4j-api</artifactId> |
| 84 | </dependency> |
| 85 | |
| 86 | <dependency> |
liamfallon | 9727c32 | 2019-03-19 16:29:56 +0000 | [diff] [blame] | 87 | <groupId>ch.qos.logback</groupId> |
| 88 | <artifactId>logback-core</artifactId> |
| 89 | </dependency> |
| 90 | <dependency> |
| 91 | <groupId>ch.qos.logback</groupId> |
| 92 | <artifactId>logback-classic</artifactId> |
| 93 | </dependency> |
| 94 | |
| 95 | <dependency> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 96 | <groupId>org.projectlombok</groupId> |
| 97 | <artifactId>lombok</artifactId> |
| 98 | <scope>provided</scope> |
| 99 | </dependency> |
| 100 | |
| 101 | <dependency> |
| 102 | <groupId>com.google.code.gson</groupId> |
| 103 | <artifactId>gson</artifactId> |
| 104 | </dependency> |
| 105 | |
| 106 | <dependency> |
liamfallon | 8fdf84c | 2019-03-15 12:36:38 +0000 | [diff] [blame] | 107 | <groupId>org.yaml</groupId> |
| 108 | <artifactId>snakeyaml</artifactId> |
liamfallon | 8fdf84c | 2019-03-15 12:36:38 +0000 | [diff] [blame] | 109 | </dependency> |
| 110 | |
| 111 | <dependency> |
liamfallon | 4c28d2c | 2019-03-14 10:01:58 +0000 | [diff] [blame] | 112 | <groupId>javax.ws.rs</groupId> |
| 113 | <artifactId>javax.ws.rs-api</artifactId> |
| 114 | <version>${javax.ws.rs-api.version}</version> |
| 115 | </dependency> |
| 116 | |
| 117 | <dependency> |
liamfallon | 24400f7 | 2019-04-10 11:34:06 +0000 | [diff] [blame] | 118 | <groupId>org.mariadb.jdbc</groupId> |
| 119 | <artifactId>mariadb-java-client</artifactId> |
| 120 | </dependency> |
| 121 | |
| 122 | <dependency> |
liamfallon | 1855571 | 2019-11-01 11:24:26 +0000 | [diff] [blame] | 123 | <groupId>org.eclipse.persistence</groupId> |
| 124 | <artifactId>eclipselink</artifactId> |
| 125 | </dependency> |
| 126 | |
| 127 | <dependency> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 128 | <groupId>junit</groupId> |
| 129 | <artifactId>junit</artifactId> |
| 130 | <scope>test</scope> |
| 131 | </dependency> |
| 132 | |
| 133 | <dependency> |
Pamela Dragosh | 99837f4 | 2019-03-21 09:58:52 -0400 | [diff] [blame] | 134 | <groupId>org.assertj</groupId> |
| 135 | <artifactId>assertj-core</artifactId> |
| 136 | <scope>test</scope> |
| 137 | </dependency> |
| 138 | |
| 139 | <dependency> |
ramverma | b359a4b | 2019-06-27 11:11:24 +0000 | [diff] [blame] | 140 | <groupId>org.onap.policy.common</groupId> |
| 141 | <artifactId>utils-test</artifactId> |
| 142 | <version>${policy.common.version}</version> |
| 143 | <scope>test</scope> |
| 144 | </dependency> |
HOCKLA | 754f9a0 | 2019-12-21 12:11:33 -0600 | [diff] [blame^] | 145 | <dependency> |
| 146 | <groupId>com.openpojo</groupId> |
| 147 | <artifactId>openpojo</artifactId> |
| 148 | <scope>test</scope> |
| 149 | </dependency> |
liamfallon | 1855571 | 2019-11-01 11:24:26 +0000 | [diff] [blame] | 150 | |
| 151 | <dependency> |
| 152 | <groupId>org.glassfish.jersey.inject</groupId> |
| 153 | <artifactId>jersey-hk2</artifactId> |
| 154 | </dependency> |
HOCKLA | 754f9a0 | 2019-12-21 12:11:33 -0600 | [diff] [blame^] | 155 | <dependency> |
| 156 | <groupId>org.eclipse.jetty</groupId> |
| 157 | <artifactId>jetty-server</artifactId> |
| 158 | </dependency> |
| 159 | <dependency> |
| 160 | <groupId>org.eclipse.jetty</groupId> |
| 161 | <artifactId>jetty-security</artifactId> |
| 162 | <version>9.4.25.v20191220</version> |
| 163 | </dependency> |
| 164 | <dependency> |
| 165 | <groupId>org.eclipse.jetty</groupId> |
| 166 | <artifactId>jetty-servlet</artifactId> |
| 167 | </dependency> |
| 168 | <dependency> |
| 169 | <groupId>org.glassfish.jersey.containers</groupId> |
| 170 | <artifactId>jersey-container-servlet</artifactId> |
| 171 | <version>${version.jersey}</version> |
| 172 | </dependency> |
| 173 | <dependency> |
| 174 | <groupId>org.apache.httpcomponents</groupId> |
| 175 | <artifactId>httpclient</artifactId> |
| 176 | </dependency> |
| 177 | <dependency> |
| 178 | <groupId>io.swagger</groupId> |
| 179 | <artifactId>swagger-annotations</artifactId> |
| 180 | <version>${version.swagger}</version> |
| 181 | </dependency> |
| 182 | <dependency> |
| 183 | <groupId>commons-io</groupId> |
| 184 | <artifactId>commons-io</artifactId> |
| 185 | <version>2.6</version> |
| 186 | </dependency> |
| 187 | <dependency> |
| 188 | <groupId>org.apache.commons</groupId> |
| 189 | <artifactId>commons-collections4</artifactId> |
| 190 | <version>4.4</version> |
| 191 | </dependency> |
| 192 | <dependency> |
| 193 | <groupId>com.att.nsa</groupId> |
| 194 | <artifactId>cambriaClient</artifactId> |
| 195 | </dependency> |
| 196 | <dependency> |
| 197 | <groupId>org.glassfish</groupId> |
| 198 | <artifactId>javax.json</artifactId> |
| 199 | <version>${version.javax.json}</version> |
| 200 | </dependency> |
| 201 | <dependency> |
| 202 | <groupId>org.json</groupId> |
| 203 | <artifactId>json</artifactId> |
| 204 | <version>${version.json}</version> |
| 205 | </dependency> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 206 | </dependencies> |
| 207 | |
liamfallon | f240fda | 2019-02-26 13:57:39 +0000 | [diff] [blame] | 208 | <dependencyManagement> |
| 209 | <dependencies> |
| 210 | <dependency> |
| 211 | <groupId>org.onap.policy.common</groupId> |
| 212 | <artifactId>utils</artifactId> |
| 213 | <version>${policy.common.version}</version> |
| 214 | </dependency> |
| 215 | </dependencies> |
| 216 | </dependencyManagement> |
| 217 | |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 218 | <build> |
| 219 | <plugins> |
| 220 | <plugin> |
| 221 | <groupId>org.jacoco</groupId> |
| 222 | <artifactId>jacoco-maven-plugin</artifactId> |
| 223 | <executions> |
| 224 | <execution> |
| 225 | <id>pre-unit-test</id> |
| 226 | <goals> |
| 227 | <goal>prepare-agent</goal> |
| 228 | </goals> |
| 229 | <configuration> |
| 230 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 231 | <append>true</append> |
| 232 | </configuration> |
| 233 | </execution> |
| 234 | <execution> |
| 235 | <id>post-unit-test</id> |
| 236 | <phase>test</phase> |
| 237 | <goals> |
| 238 | <goal>report</goal> |
| 239 | </goals> |
| 240 | <configuration> |
| 241 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 242 | </configuration> |
| 243 | </execution> |
| 244 | </executions> |
| 245 | </plugin> |
| 246 | <plugin> |
| 247 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 248 | <executions> |
| 249 | <execution> |
| 250 | <id>onap-java-style</id> |
| 251 | <goals> |
| 252 | <goal>check</goal> |
| 253 | </goals> |
| 254 | <phase>process-sources</phase> |
| 255 | <configuration> |
| 256 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 257 | with minor changes --> |
| 258 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 259 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
HOCKLA | 754f9a0 | 2019-12-21 12:11:33 -0600 | [diff] [blame^] | 260 | <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 261 | <includeResources>true</includeResources> |
| 262 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 263 | <includeTestResources>true</includeTestResources> |
| 264 | <excludes> |
| 265 | </excludes> |
| 266 | <consoleOutput>true</consoleOutput> |
| 267 | <failOnViolation>true</failOnViolation> |
| 268 | <violationSeverity>warning</violationSeverity> |
| 269 | </configuration> |
| 270 | </execution> |
| 271 | </executions> |
| 272 | <dependencies> |
| 273 | <dependency> |
| 274 | <groupId>org.onap.oparent</groupId> |
| 275 | <artifactId>checkstyle</artifactId> |
| 276 | <version>${oparent.version}</version> |
| 277 | <scope>compile</scope> |
| 278 | </dependency> |
| 279 | </dependencies> |
| 280 | </plugin> |
| 281 | </plugins> |
| 282 | <pluginManagement> |
| 283 | <plugins> |
| 284 | <plugin> |
| 285 | <groupId>org.jacoco</groupId> |
| 286 | <artifactId>jacoco-maven-plugin</artifactId> |
| 287 | <version>${jacoco.version}</version> |
| 288 | <configuration> |
| 289 | <!-- Note: This exclusion list should match <sonar.exclusions> property above --> |
| 290 | <excludes> |
| 291 | <exclude>**/gen/**</exclude> |
| 292 | <exclude>**/generated-sources/**</exclude> |
| 293 | <exclude>**/yang-gen/**</exclude> |
| 294 | <exclude>**/pax/**</exclude> |
| 295 | </excludes> |
| 296 | </configuration> |
| 297 | <executions> |
| 298 | <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when |
| 299 | Maven the Surefire plugin is executed. --> |
| 300 | <execution> |
| 301 | <id>pre-unit-test</id> |
| 302 | <goals> |
| 303 | <goal>prepare-agent</goal> |
| 304 | </goals> |
| 305 | <configuration> |
| 306 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 307 | </configuration> |
| 308 | </execution> |
| 309 | <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> |
| 310 | <execution> |
| 311 | <id>post-unit-test</id> |
| 312 | <phase>test</phase> |
| 313 | <goals> |
| 314 | <goal>report</goal> |
| 315 | </goals> |
| 316 | <configuration> |
| 317 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 318 | </configuration> |
| 319 | </execution> |
| 320 | </executions> |
| 321 | </plugin> |
| 322 | <plugin> |
| 323 | <groupId>org.eclipse.m2e</groupId> |
| 324 | <artifactId>lifecycle-mapping</artifactId> |
| 325 | <version>1.0.0</version> |
| 326 | <configuration> |
| 327 | <lifecycleMappingMetadata> |
| 328 | <pluginExecutions> |
| 329 | <pluginExecution> |
| 330 | <pluginExecutionFilter> |
| 331 | <groupId>org.apache.maven.plugins</groupId> |
| 332 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 333 | <versionRange>2.17,)</versionRange> |
| 334 | <goals> |
| 335 | <goal>check</goal> |
| 336 | </goals> |
| 337 | </pluginExecutionFilter> |
| 338 | <action> |
ramverma | b359a4b | 2019-06-27 11:11:24 +0000 | [diff] [blame] | 339 | <ignore /> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 340 | </action> |
| 341 | </pluginExecution> |
| 342 | </pluginExecutions> |
| 343 | </lifecycleMappingMetadata> |
| 344 | </configuration> |
| 345 | </plugin> |
| 346 | </plugins> |
| 347 | </pluginManagement> |
| 348 | </build> |
Pamela Dragosh | ada55be | 2019-04-05 21:07:07 -0400 | [diff] [blame] | 349 | </project> |