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 | |
| 23 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 25 | <modelVersion>4.0.0</modelVersion> |
| 26 | <parent> |
| 27 | <groupId>org.onap.policy.parent</groupId> |
| 28 | <artifactId>integration</artifactId> |
liamfallon | aa317c7 | 2019-02-05 13:41:59 +0000 | [diff] [blame] | 29 | <version>2.1.0-SNAPSHOT</version> |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 30 | </parent> |
| 31 | |
| 32 | <groupId>org.onap.policy.models</groupId> |
| 33 | <artifactId>policy-models</artifactId> |
Chenfei Gao | 9ddbc87 | 2019-02-26 15:59:56 -0500 | [diff] [blame] | 34 | <version>2.0.0-SNAPSHOT</version> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 35 | |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 36 | <packaging>pom</packaging> |
Pamela Dragosh | d01b3fa | 2018-05-25 08:17:28 -0400 | [diff] [blame] | 37 | <name>policy-models</name> |
liamfallon | aa317c7 | 2019-02-05 13:41:59 +0000 | [diff] [blame] | 38 | <description>This repo holds model code agnostic to PDP engines</description> |
eikrwaq | 67037d0 | 2018-05-23 17:17:58 +0100 | [diff] [blame] | 39 | |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 40 | <properties> |
| 41 | <!-- sonar/jacoco overrides --> |
| 42 | <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules --> |
| 43 | <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 44 | <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 45 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> |
Chenfei Gao | 237dd48 | 2019-02-22 20:10:11 -0500 | [diff] [blame] | 46 | |
| 47 | <policy.common.version>1.4.0-SNAPSHOT</policy.common.version> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 48 | </properties> |
| 49 | |
| 50 | <modules> |
Chenfei Gao | 237dd48 | 2019-02-22 20:10:11 -0500 | [diff] [blame] | 51 | <module>platform</module> |
liamfallon | f240fda | 2019-02-26 13:57:39 +0000 | [diff] [blame^] | 52 | <module>models-base</module> |
| 53 | <module>models-dao</module> |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 54 | </modules> |
| 55 | |
Chenfei Gao | 237dd48 | 2019-02-22 20:10:11 -0500 | [diff] [blame] | 56 | <dependencies> |
| 57 | <dependency> |
| 58 | <groupId>junit</groupId> |
| 59 | <artifactId>junit</artifactId> |
| 60 | <scope>test</scope> |
| 61 | </dependency> |
| 62 | </dependencies> |
| 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 | f240fda | 2019-02-26 13:57:39 +0000 | [diff] [blame^] | 71 | <dependencyManagement> |
| 72 | <dependencies> |
| 73 | <dependency> |
| 74 | <groupId>org.onap.policy.common</groupId> |
| 75 | <artifactId>utils</artifactId> |
| 76 | <version>${policy.common.version}</version> |
| 77 | </dependency> |
| 78 | </dependencies> |
| 79 | </dependencyManagement> |
| 80 | |
Pamela Dragosh | f973f58 | 2018-09-25 10:06:07 -0400 | [diff] [blame] | 81 | <build> |
| 82 | <plugins> |
| 83 | <plugin> |
| 84 | <groupId>org.jacoco</groupId> |
| 85 | <artifactId>jacoco-maven-plugin</artifactId> |
| 86 | <executions> |
| 87 | <execution> |
| 88 | <id>pre-unit-test</id> |
| 89 | <goals> |
| 90 | <goal>prepare-agent</goal> |
| 91 | </goals> |
| 92 | <configuration> |
| 93 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 94 | <append>true</append> |
| 95 | </configuration> |
| 96 | </execution> |
| 97 | <execution> |
| 98 | <id>post-unit-test</id> |
| 99 | <phase>test</phase> |
| 100 | <goals> |
| 101 | <goal>report</goal> |
| 102 | </goals> |
| 103 | <configuration> |
| 104 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 105 | </configuration> |
| 106 | </execution> |
| 107 | </executions> |
| 108 | </plugin> |
| 109 | <plugin> |
| 110 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 111 | <executions> |
| 112 | <execution> |
| 113 | <id>onap-java-style</id> |
| 114 | <goals> |
| 115 | <goal>check</goal> |
| 116 | </goals> |
| 117 | <phase>process-sources</phase> |
| 118 | <configuration> |
| 119 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 120 | with minor changes --> |
| 121 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 122 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
| 123 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 124 | <includeResources>true</includeResources> |
| 125 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 126 | <includeTestResources>true</includeTestResources> |
| 127 | <excludes> |
| 128 | </excludes> |
| 129 | <consoleOutput>true</consoleOutput> |
| 130 | <failOnViolation>true</failOnViolation> |
| 131 | <violationSeverity>warning</violationSeverity> |
| 132 | </configuration> |
| 133 | </execution> |
| 134 | </executions> |
| 135 | <dependencies> |
| 136 | <dependency> |
| 137 | <groupId>org.onap.oparent</groupId> |
| 138 | <artifactId>checkstyle</artifactId> |
| 139 | <version>${oparent.version}</version> |
| 140 | <scope>compile</scope> |
| 141 | </dependency> |
| 142 | </dependencies> |
| 143 | </plugin> |
| 144 | </plugins> |
| 145 | <pluginManagement> |
| 146 | <plugins> |
| 147 | <plugin> |
| 148 | <groupId>org.jacoco</groupId> |
| 149 | <artifactId>jacoco-maven-plugin</artifactId> |
| 150 | <version>${jacoco.version}</version> |
| 151 | <configuration> |
| 152 | <!-- Note: This exclusion list should match <sonar.exclusions> property above --> |
| 153 | <excludes> |
| 154 | <exclude>**/gen/**</exclude> |
| 155 | <exclude>**/generated-sources/**</exclude> |
| 156 | <exclude>**/yang-gen/**</exclude> |
| 157 | <exclude>**/pax/**</exclude> |
| 158 | </excludes> |
| 159 | </configuration> |
| 160 | <executions> |
| 161 | <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when |
| 162 | Maven the Surefire plugin is executed. --> |
| 163 | <execution> |
| 164 | <id>pre-unit-test</id> |
| 165 | <goals> |
| 166 | <goal>prepare-agent</goal> |
| 167 | </goals> |
| 168 | <configuration> |
| 169 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 170 | </configuration> |
| 171 | </execution> |
| 172 | <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> |
| 173 | <execution> |
| 174 | <id>post-unit-test</id> |
| 175 | <phase>test</phase> |
| 176 | <goals> |
| 177 | <goal>report</goal> |
| 178 | </goals> |
| 179 | <configuration> |
| 180 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 181 | </configuration> |
| 182 | </execution> |
| 183 | </executions> |
| 184 | </plugin> |
| 185 | <plugin> |
| 186 | <groupId>org.eclipse.m2e</groupId> |
| 187 | <artifactId>lifecycle-mapping</artifactId> |
| 188 | <version>1.0.0</version> |
| 189 | <configuration> |
| 190 | <lifecycleMappingMetadata> |
| 191 | <pluginExecutions> |
| 192 | <pluginExecution> |
| 193 | <pluginExecutionFilter> |
| 194 | <groupId>org.apache.maven.plugins</groupId> |
| 195 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 196 | <versionRange>2.17,)</versionRange> |
| 197 | <goals> |
| 198 | <goal>check</goal> |
| 199 | </goals> |
| 200 | </pluginExecutionFilter> |
| 201 | <action> |
| 202 | <ignore /> |
| 203 | </action> |
| 204 | </pluginExecution> |
| 205 | </pluginExecutions> |
| 206 | </lifecycleMappingMetadata> |
| 207 | </configuration> |
| 208 | </plugin> |
| 209 | </plugins> |
| 210 | </pluginManagement> |
| 211 | </build> |
Pamela Dragosh | d01b3fa | 2018-05-25 08:17:28 -0400 | [diff] [blame] | 212 | </project> |