eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
liamfallon | aa317c7 | 2019-02-05 13:41:59 +0000 | [diff] [blame] | 4 | Copyright (C) 2019 Nordix Foundation. |
Chenfei Gao | 237dd48 | 2019-02-22 20:10:11 -0500 | [diff] [blame] | 5 | Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 6 | ================================================================================ |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | |
| 19 | SPDX-License-Identifier: Apache-2.0 |
| 20 | ============LICENSE_END========================================================= |
| 21 | --> |
| 22 | |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 23 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 24 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 25 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 26 | <modelVersion>4.0.0</modelVersion> |
| 27 | <parent> |
| 28 | <groupId>org.onap.policy.parent</groupId> |
| 29 | <artifactId>integration</artifactId> |
liamfallon | aa317c7 | 2019-02-05 13:41:59 +0000 | [diff] [blame] | 30 | <version>2.1.0-SNAPSHOT</version> |
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> |
Chenfei Gao | 9ddbc87 | 2019-02-26 15:59:56 -0500 | [diff] [blame] | 35 | <version>2.0.0-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> |
liamfallon | 4c28d2c | 2019-03-14 10:01:58 +0000 | [diff] [blame^] | 43 | <javax.ws.rs-api.version>2.0.1</javax.ws.rs-api.version> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 44 | <policy.common.version>1.4.0-SNAPSHOT</policy.common.version> |
| 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> |
liamfallon | 4c28d2c | 2019-03-14 10:01:58 +0000 | [diff] [blame^] | 58 | <module>models-provider</module> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 59 | </modules> |
| 60 | |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 61 | <distributionManagement> |
| 62 | <site> |
| 63 | <id>ecomp-site</id> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 64 | <url>dav:${nexusproxy}${sitePath}</url> |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 65 | </site> |
| 66 | </distributionManagement> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 67 | |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 68 | <dependencies> |
| 69 | <dependency> |
| 70 | <groupId>org.onap.policy.common</groupId> |
| 71 | <artifactId>utils</artifactId> |
| 72 | </dependency> |
| 73 | |
| 74 | <dependency> |
| 75 | <groupId>org.slf4j</groupId> |
| 76 | <artifactId>slf4j-api</artifactId> |
| 77 | </dependency> |
| 78 | |
| 79 | <dependency> |
| 80 | <groupId>org.projectlombok</groupId> |
| 81 | <artifactId>lombok</artifactId> |
| 82 | <scope>provided</scope> |
| 83 | </dependency> |
| 84 | |
| 85 | <dependency> |
| 86 | <groupId>com.google.code.gson</groupId> |
| 87 | <artifactId>gson</artifactId> |
| 88 | </dependency> |
| 89 | |
| 90 | <dependency> |
liamfallon | 4c28d2c | 2019-03-14 10:01:58 +0000 | [diff] [blame^] | 91 | <groupId>javax.ws.rs</groupId> |
| 92 | <artifactId>javax.ws.rs-api</artifactId> |
| 93 | <version>${javax.ws.rs-api.version}</version> |
| 94 | </dependency> |
| 95 | |
| 96 | <dependency> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 97 | <groupId>junit</groupId> |
| 98 | <artifactId>junit</artifactId> |
| 99 | <scope>test</scope> |
| 100 | </dependency> |
| 101 | |
| 102 | <dependency> |
| 103 | <groupId>org.eclipse.persistence</groupId> |
| 104 | <artifactId>eclipselink</artifactId> |
| 105 | </dependency> |
liamfallon | b694be1 | 2019-03-05 09:35:16 +0000 | [diff] [blame] | 106 | </dependencies> |
| 107 | |
liamfallon | f240fda | 2019-02-26 13:57:39 +0000 | [diff] [blame] | 108 | <dependencyManagement> |
| 109 | <dependencies> |
| 110 | <dependency> |
| 111 | <groupId>org.onap.policy.common</groupId> |
| 112 | <artifactId>utils</artifactId> |
| 113 | <version>${policy.common.version}</version> |
| 114 | </dependency> |
| 115 | </dependencies> |
| 116 | </dependencyManagement> |
| 117 | |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 118 | <build> |
| 119 | <plugins> |
| 120 | <plugin> |
| 121 | <groupId>org.jacoco</groupId> |
| 122 | <artifactId>jacoco-maven-plugin</artifactId> |
| 123 | <executions> |
| 124 | <execution> |
| 125 | <id>pre-unit-test</id> |
| 126 | <goals> |
| 127 | <goal>prepare-agent</goal> |
| 128 | </goals> |
| 129 | <configuration> |
| 130 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 131 | <append>true</append> |
| 132 | </configuration> |
| 133 | </execution> |
| 134 | <execution> |
| 135 | <id>post-unit-test</id> |
| 136 | <phase>test</phase> |
| 137 | <goals> |
| 138 | <goal>report</goal> |
| 139 | </goals> |
| 140 | <configuration> |
| 141 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 142 | </configuration> |
| 143 | </execution> |
| 144 | </executions> |
| 145 | </plugin> |
| 146 | <plugin> |
| 147 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 148 | <executions> |
| 149 | <execution> |
| 150 | <id>onap-java-style</id> |
| 151 | <goals> |
| 152 | <goal>check</goal> |
| 153 | </goals> |
| 154 | <phase>process-sources</phase> |
| 155 | <configuration> |
| 156 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 157 | with minor changes --> |
| 158 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 159 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
| 160 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 161 | <includeResources>true</includeResources> |
| 162 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 163 | <includeTestResources>true</includeTestResources> |
| 164 | <excludes> |
| 165 | </excludes> |
| 166 | <consoleOutput>true</consoleOutput> |
| 167 | <failOnViolation>true</failOnViolation> |
| 168 | <violationSeverity>warning</violationSeverity> |
| 169 | </configuration> |
| 170 | </execution> |
| 171 | </executions> |
| 172 | <dependencies> |
| 173 | <dependency> |
| 174 | <groupId>org.onap.oparent</groupId> |
| 175 | <artifactId>checkstyle</artifactId> |
| 176 | <version>${oparent.version}</version> |
| 177 | <scope>compile</scope> |
| 178 | </dependency> |
| 179 | </dependencies> |
| 180 | </plugin> |
| 181 | </plugins> |
| 182 | <pluginManagement> |
| 183 | <plugins> |
| 184 | <plugin> |
| 185 | <groupId>org.jacoco</groupId> |
| 186 | <artifactId>jacoco-maven-plugin</artifactId> |
| 187 | <version>${jacoco.version}</version> |
| 188 | <configuration> |
| 189 | <!-- Note: This exclusion list should match <sonar.exclusions> property above --> |
| 190 | <excludes> |
| 191 | <exclude>**/gen/**</exclude> |
| 192 | <exclude>**/generated-sources/**</exclude> |
| 193 | <exclude>**/yang-gen/**</exclude> |
| 194 | <exclude>**/pax/**</exclude> |
| 195 | </excludes> |
| 196 | </configuration> |
| 197 | <executions> |
| 198 | <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when |
| 199 | Maven the Surefire plugin is executed. --> |
| 200 | <execution> |
| 201 | <id>pre-unit-test</id> |
| 202 | <goals> |
| 203 | <goal>prepare-agent</goal> |
| 204 | </goals> |
| 205 | <configuration> |
| 206 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 207 | </configuration> |
| 208 | </execution> |
| 209 | <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> |
| 210 | <execution> |
| 211 | <id>post-unit-test</id> |
| 212 | <phase>test</phase> |
| 213 | <goals> |
| 214 | <goal>report</goal> |
| 215 | </goals> |
| 216 | <configuration> |
| 217 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 218 | </configuration> |
| 219 | </execution> |
| 220 | </executions> |
| 221 | </plugin> |
| 222 | <plugin> |
| 223 | <groupId>org.eclipse.m2e</groupId> |
| 224 | <artifactId>lifecycle-mapping</artifactId> |
| 225 | <version>1.0.0</version> |
| 226 | <configuration> |
| 227 | <lifecycleMappingMetadata> |
| 228 | <pluginExecutions> |
| 229 | <pluginExecution> |
| 230 | <pluginExecutionFilter> |
| 231 | <groupId>org.apache.maven.plugins</groupId> |
| 232 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 233 | <versionRange>2.17,)</versionRange> |
| 234 | <goals> |
| 235 | <goal>check</goal> |
| 236 | </goals> |
| 237 | </pluginExecutionFilter> |
| 238 | <action> |
| 239 | <ignore /> |
| 240 | </action> |
| 241 | </pluginExecution> |
| 242 | </pluginExecutions> |
| 243 | </lifecycleMappingMetadata> |
| 244 | </configuration> |
| 245 | </plugin> |
| 246 | </plugins> |
| 247 | </pluginManagement> |
| 248 | </build> |
Pamela Dragosh | d01b3fa | 2018-05-25 08:17:28 -0400 | [diff] [blame] | 249 | </project> |