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