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