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