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 | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 115 | <groupId>junit</groupId> |
| 116 | <artifactId>junit</artifactId> |
| 117 | <scope>test</scope> |
| 118 | </dependency> |
| 119 | |
| 120 | <dependency> |
Pamela Dragosh | 99837f4 | 2019-03-21 09:58:52 -0400 | [diff] [blame] | 121 | <groupId>org.assertj</groupId> |
| 122 | <artifactId>assertj-core</artifactId> |
| 123 | <scope>test</scope> |
| 124 | </dependency> |
| 125 | |
| 126 | <dependency> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 127 | <groupId>org.eclipse.persistence</groupId> |
| 128 | <artifactId>eclipselink</artifactId> |
| 129 | </dependency> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 130 | </dependencies> |
| 131 | |
liamfallon | f240fda | 2019-02-26 13:57:39 +0000 | [diff] [blame] | 132 | <dependencyManagement> |
| 133 | <dependencies> |
| 134 | <dependency> |
| 135 | <groupId>org.onap.policy.common</groupId> |
| 136 | <artifactId>utils</artifactId> |
| 137 | <version>${policy.common.version}</version> |
| 138 | </dependency> |
| 139 | </dependencies> |
| 140 | </dependencyManagement> |
| 141 | |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 142 | <build> |
| 143 | <plugins> |
| 144 | <plugin> |
| 145 | <groupId>org.jacoco</groupId> |
| 146 | <artifactId>jacoco-maven-plugin</artifactId> |
| 147 | <executions> |
| 148 | <execution> |
| 149 | <id>pre-unit-test</id> |
| 150 | <goals> |
| 151 | <goal>prepare-agent</goal> |
| 152 | </goals> |
| 153 | <configuration> |
| 154 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 155 | <append>true</append> |
| 156 | </configuration> |
| 157 | </execution> |
| 158 | <execution> |
| 159 | <id>post-unit-test</id> |
| 160 | <phase>test</phase> |
| 161 | <goals> |
| 162 | <goal>report</goal> |
| 163 | </goals> |
| 164 | <configuration> |
| 165 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 166 | </configuration> |
| 167 | </execution> |
| 168 | </executions> |
| 169 | </plugin> |
| 170 | <plugin> |
| 171 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 172 | <executions> |
| 173 | <execution> |
| 174 | <id>onap-java-style</id> |
| 175 | <goals> |
| 176 | <goal>check</goal> |
| 177 | </goals> |
| 178 | <phase>process-sources</phase> |
| 179 | <configuration> |
| 180 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 181 | with minor changes --> |
| 182 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 183 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
| 184 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 185 | <includeResources>true</includeResources> |
| 186 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 187 | <includeTestResources>true</includeTestResources> |
| 188 | <excludes> |
| 189 | </excludes> |
| 190 | <consoleOutput>true</consoleOutput> |
| 191 | <failOnViolation>true</failOnViolation> |
| 192 | <violationSeverity>warning</violationSeverity> |
| 193 | </configuration> |
| 194 | </execution> |
| 195 | </executions> |
| 196 | <dependencies> |
| 197 | <dependency> |
| 198 | <groupId>org.onap.oparent</groupId> |
| 199 | <artifactId>checkstyle</artifactId> |
| 200 | <version>${oparent.version}</version> |
| 201 | <scope>compile</scope> |
| 202 | </dependency> |
| 203 | </dependencies> |
| 204 | </plugin> |
| 205 | </plugins> |
| 206 | <pluginManagement> |
| 207 | <plugins> |
| 208 | <plugin> |
| 209 | <groupId>org.jacoco</groupId> |
| 210 | <artifactId>jacoco-maven-plugin</artifactId> |
| 211 | <version>${jacoco.version}</version> |
| 212 | <configuration> |
| 213 | <!-- Note: This exclusion list should match <sonar.exclusions> property above --> |
| 214 | <excludes> |
| 215 | <exclude>**/gen/**</exclude> |
| 216 | <exclude>**/generated-sources/**</exclude> |
| 217 | <exclude>**/yang-gen/**</exclude> |
| 218 | <exclude>**/pax/**</exclude> |
| 219 | </excludes> |
| 220 | </configuration> |
| 221 | <executions> |
| 222 | <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when |
| 223 | Maven the Surefire plugin is executed. --> |
| 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 | </configuration> |
| 232 | </execution> |
| 233 | <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> |
| 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 | <groupId>org.eclipse.m2e</groupId> |
| 248 | <artifactId>lifecycle-mapping</artifactId> |
| 249 | <version>1.0.0</version> |
| 250 | <configuration> |
| 251 | <lifecycleMappingMetadata> |
| 252 | <pluginExecutions> |
| 253 | <pluginExecution> |
| 254 | <pluginExecutionFilter> |
| 255 | <groupId>org.apache.maven.plugins</groupId> |
| 256 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 257 | <versionRange>2.17,)</versionRange> |
| 258 | <goals> |
| 259 | <goal>check</goal> |
| 260 | </goals> |
| 261 | </pluginExecutionFilter> |
| 262 | <action> |
Hengye | b150aa8 | 2019-03-25 14:32:21 +0000 | [diff] [blame] | 263 | <ignore/> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 264 | </action> |
| 265 | </pluginExecution> |
| 266 | </pluginExecutions> |
| 267 | </lifecycleMappingMetadata> |
| 268 | </configuration> |
| 269 | </plugin> |
| 270 | </plugins> |
| 271 | </pluginManagement> |
| 272 | </build> |
Pamela Dragosh | ada55be | 2019-04-05 21:07:07 -0400 | [diff] [blame] | 273 | </project> |