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. |
Chenfei Gao | 237dd48 | 2019-02-22 20:10:11 -0500 | [diff] [blame] | 6 | Copyright (C) 2019 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========================================================= |
Hengye | b150aa8 | 2019-03-25 14:32:21 +0000 | [diff] [blame] | 22 | --><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/xsd/maven-4.0.0.xsd"> |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | <parent> |
| 25 | <groupId>org.onap.policy.parent</groupId> |
| 26 | <artifactId>integration</artifactId> |
Pamela Dragosh | f469cc7 | 2019-05-01 07:07:23 -0400 | [diff] [blame] | 27 | <version>2.1.0</version> |
Hengye | b150aa8 | 2019-03-25 14:32:21 +0000 | [diff] [blame] | 28 | <relativePath/> |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 29 | </parent> |
| 30 | |
| 31 | <groupId>org.onap.policy.models</groupId> |
| 32 | <artifactId>policy-models</artifactId> |
Chenfei Gao | 9ddbc87 | 2019-02-26 15:59:56 -0500 | [diff] [blame] | 33 | <version>2.0.0-SNAPSHOT</version> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 34 | |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 35 | <packaging>pom</packaging> |
Pamela Dragosh | d01b3fa | 2018-05-25 08:17:28 -0400 | [diff] [blame] | 36 | <name>policy-models</name> |
liamfallon | aa317c7 | 2019-02-05 13:41:59 +0000 | [diff] [blame] | 37 | <description>This repo holds model code agnostic to PDP engines</description> |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 38 | |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 39 | <properties> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 40 | <derby.version>10.13.1.1</derby.version> |
liamfallon | 4c28d2c | 2019-03-14 10:01:58 +0000 | [diff] [blame] | 41 | <javax.ws.rs-api.version>2.0.1</javax.ws.rs-api.version> |
Pamela Dragosh | f469cc7 | 2019-05-01 07:07:23 -0400 | [diff] [blame] | 42 | <policy.common.version>1.4.0</policy.common.version> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 43 | |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 44 | <!-- sonar/jacoco overrides --> |
| 45 | <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules --> |
| 46 | <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 47 | <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 48 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> |
| 49 | </properties> |
| 50 | |
| 51 | <modules> |
liamfallon | f240fda | 2019-02-26 13:57:39 +0000 | [diff] [blame] | 52 | <module>models-base</module> |
| 53 | <module>models-dao</module> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 54 | <module>models-tosca</module> |
ramverma | 5948388 | 2019-03-12 22:15:38 +0000 | [diff] [blame] | 55 | <module>models-pap</module> |
Jim Hahn | a4b62b8 | 2019-03-21 09:54:30 -0400 | [diff] [blame] | 56 | <module>models-pdp</module> |
Pamela Dragosh | 99837f4 | 2019-03-21 09:58:52 -0400 | [diff] [blame] | 57 | <module>models-errors</module> |
Pamela Dragosh | 2d4d299 | 2019-03-16 17:17:37 -0400 | [diff] [blame] | 58 | <module>models-decisions</module> |
liamfallon | 4c28d2c | 2019-03-14 10:01:58 +0000 | [diff] [blame] | 59 | <module>models-provider</module> |
liamfallon | 9727c32 | 2019-03-19 16:29:56 +0000 | [diff] [blame] | 60 | <module>models-examples</module> |
Hengye | b150aa8 | 2019-03-25 14:32:21 +0000 | [diff] [blame] | 61 | <module>models-interactions</module> |
liamfallon | 9009203 | 2019-04-17 13:58:26 +0000 | [diff] [blame] | 62 | <module>models-sim</module> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 63 | </modules> |
| 64 | |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 65 | <distributionManagement> |
| 66 | <site> |
| 67 | <id>ecomp-site</id> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 68 | <url>dav:${nexusproxy}${sitePath}</url> |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 69 | </site> |
| 70 | </distributionManagement> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 71 | |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 72 | <dependencies> |
| 73 | <dependency> |
| 74 | <groupId>org.onap.policy.common</groupId> |
| 75 | <artifactId>utils</artifactId> |
| 76 | </dependency> |
| 77 | |
| 78 | <dependency> |
| 79 | <groupId>org.slf4j</groupId> |
| 80 | <artifactId>slf4j-api</artifactId> |
| 81 | </dependency> |
| 82 | |
| 83 | <dependency> |
liamfallon | 9727c32 | 2019-03-19 16:29:56 +0000 | [diff] [blame] | 84 | <groupId>ch.qos.logback</groupId> |
| 85 | <artifactId>logback-core</artifactId> |
| 86 | </dependency> |
| 87 | <dependency> |
| 88 | <groupId>ch.qos.logback</groupId> |
| 89 | <artifactId>logback-classic</artifactId> |
| 90 | </dependency> |
| 91 | |
| 92 | <dependency> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 93 | <groupId>org.projectlombok</groupId> |
| 94 | <artifactId>lombok</artifactId> |
| 95 | <scope>provided</scope> |
| 96 | </dependency> |
| 97 | |
| 98 | <dependency> |
| 99 | <groupId>com.google.code.gson</groupId> |
| 100 | <artifactId>gson</artifactId> |
| 101 | </dependency> |
| 102 | |
| 103 | <dependency> |
liamfallon | 8fdf84c | 2019-03-15 12:36:38 +0000 | [diff] [blame] | 104 | <groupId>org.yaml</groupId> |
| 105 | <artifactId>snakeyaml</artifactId> |
Jim Hahn | d66116b | 2019-03-15 13:00:54 -0400 | [diff] [blame] | 106 | <version>1.18</version> |
liamfallon | 8fdf84c | 2019-03-15 12:36:38 +0000 | [diff] [blame] | 107 | </dependency> |
| 108 | |
| 109 | <dependency> |
liamfallon | 4c28d2c | 2019-03-14 10:01:58 +0000 | [diff] [blame] | 110 | <groupId>javax.ws.rs</groupId> |
| 111 | <artifactId>javax.ws.rs-api</artifactId> |
| 112 | <version>${javax.ws.rs-api.version}</version> |
| 113 | </dependency> |
| 114 | |
| 115 | <dependency> |
liamfallon | 24400f7 | 2019-04-10 11:34:06 +0000 | [diff] [blame] | 116 | <groupId>org.mariadb.jdbc</groupId> |
| 117 | <artifactId>mariadb-java-client</artifactId> |
| 118 | </dependency> |
| 119 | |
| 120 | <dependency> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 121 | <groupId>junit</groupId> |
| 122 | <artifactId>junit</artifactId> |
| 123 | <scope>test</scope> |
| 124 | </dependency> |
| 125 | |
| 126 | <dependency> |
Pamela Dragosh | 99837f4 | 2019-03-21 09:58:52 -0400 | [diff] [blame] | 127 | <groupId>org.assertj</groupId> |
| 128 | <artifactId>assertj-core</artifactId> |
| 129 | <scope>test</scope> |
| 130 | </dependency> |
| 131 | |
| 132 | <dependency> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 133 | <groupId>org.eclipse.persistence</groupId> |
| 134 | <artifactId>eclipselink</artifactId> |
| 135 | </dependency> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 136 | </dependencies> |
| 137 | |
liamfallon | f240fda | 2019-02-26 13:57:39 +0000 | [diff] [blame] | 138 | <dependencyManagement> |
| 139 | <dependencies> |
| 140 | <dependency> |
| 141 | <groupId>org.onap.policy.common</groupId> |
| 142 | <artifactId>utils</artifactId> |
| 143 | <version>${policy.common.version}</version> |
| 144 | </dependency> |
| 145 | </dependencies> |
| 146 | </dependencyManagement> |
| 147 | |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 148 | <build> |
| 149 | <plugins> |
| 150 | <plugin> |
| 151 | <groupId>org.jacoco</groupId> |
| 152 | <artifactId>jacoco-maven-plugin</artifactId> |
| 153 | <executions> |
| 154 | <execution> |
| 155 | <id>pre-unit-test</id> |
| 156 | <goals> |
| 157 | <goal>prepare-agent</goal> |
| 158 | </goals> |
| 159 | <configuration> |
| 160 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 161 | <append>true</append> |
| 162 | </configuration> |
| 163 | </execution> |
| 164 | <execution> |
| 165 | <id>post-unit-test</id> |
| 166 | <phase>test</phase> |
| 167 | <goals> |
| 168 | <goal>report</goal> |
| 169 | </goals> |
| 170 | <configuration> |
| 171 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 172 | </configuration> |
| 173 | </execution> |
| 174 | </executions> |
| 175 | </plugin> |
| 176 | <plugin> |
| 177 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 178 | <executions> |
| 179 | <execution> |
| 180 | <id>onap-java-style</id> |
| 181 | <goals> |
| 182 | <goal>check</goal> |
| 183 | </goals> |
| 184 | <phase>process-sources</phase> |
| 185 | <configuration> |
| 186 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 187 | with minor changes --> |
| 188 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 189 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
| 190 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 191 | <includeResources>true</includeResources> |
| 192 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 193 | <includeTestResources>true</includeTestResources> |
| 194 | <excludes> |
| 195 | </excludes> |
| 196 | <consoleOutput>true</consoleOutput> |
| 197 | <failOnViolation>true</failOnViolation> |
| 198 | <violationSeverity>warning</violationSeverity> |
| 199 | </configuration> |
| 200 | </execution> |
| 201 | </executions> |
| 202 | <dependencies> |
| 203 | <dependency> |
| 204 | <groupId>org.onap.oparent</groupId> |
| 205 | <artifactId>checkstyle</artifactId> |
| 206 | <version>${oparent.version}</version> |
| 207 | <scope>compile</scope> |
| 208 | </dependency> |
| 209 | </dependencies> |
| 210 | </plugin> |
| 211 | </plugins> |
| 212 | <pluginManagement> |
| 213 | <plugins> |
| 214 | <plugin> |
| 215 | <groupId>org.jacoco</groupId> |
| 216 | <artifactId>jacoco-maven-plugin</artifactId> |
| 217 | <version>${jacoco.version}</version> |
| 218 | <configuration> |
| 219 | <!-- Note: This exclusion list should match <sonar.exclusions> property above --> |
| 220 | <excludes> |
| 221 | <exclude>**/gen/**</exclude> |
| 222 | <exclude>**/generated-sources/**</exclude> |
| 223 | <exclude>**/yang-gen/**</exclude> |
| 224 | <exclude>**/pax/**</exclude> |
| 225 | </excludes> |
| 226 | </configuration> |
| 227 | <executions> |
| 228 | <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when |
| 229 | Maven the Surefire plugin is executed. --> |
| 230 | <execution> |
| 231 | <id>pre-unit-test</id> |
| 232 | <goals> |
| 233 | <goal>prepare-agent</goal> |
| 234 | </goals> |
| 235 | <configuration> |
| 236 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 237 | </configuration> |
| 238 | </execution> |
| 239 | <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> |
| 240 | <execution> |
| 241 | <id>post-unit-test</id> |
| 242 | <phase>test</phase> |
| 243 | <goals> |
| 244 | <goal>report</goal> |
| 245 | </goals> |
| 246 | <configuration> |
| 247 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 248 | </configuration> |
| 249 | </execution> |
| 250 | </executions> |
| 251 | </plugin> |
| 252 | <plugin> |
| 253 | <groupId>org.eclipse.m2e</groupId> |
| 254 | <artifactId>lifecycle-mapping</artifactId> |
| 255 | <version>1.0.0</version> |
| 256 | <configuration> |
| 257 | <lifecycleMappingMetadata> |
| 258 | <pluginExecutions> |
| 259 | <pluginExecution> |
| 260 | <pluginExecutionFilter> |
| 261 | <groupId>org.apache.maven.plugins</groupId> |
| 262 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 263 | <versionRange>2.17,)</versionRange> |
| 264 | <goals> |
| 265 | <goal>check</goal> |
| 266 | </goals> |
| 267 | </pluginExecutionFilter> |
| 268 | <action> |
Hengye | b150aa8 | 2019-03-25 14:32:21 +0000 | [diff] [blame] | 269 | <ignore/> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 270 | </action> |
| 271 | </pluginExecution> |
| 272 | </pluginExecutions> |
| 273 | </lifecycleMappingMetadata> |
| 274 | </configuration> |
| 275 | </plugin> |
| 276 | </plugins> |
| 277 | </pluginManagement> |
| 278 | </build> |
Pamela Dragosh | ada55be | 2019-04-05 21:07:07 -0400 | [diff] [blame] | 279 | </project> |