Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
ramverma | 74b108c | 2018-05-24 12:40:21 +0100 | [diff] [blame] | 3 | ONAP Policy API |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 4 | ================================================================================ |
Pamela Dragosh | 2bcdf08 | 2018-05-01 10:05:57 -0400 | [diff] [blame] | 5 | Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 6 | Modified Copyright (C) 2018 Samsung Electronics Co., Ltd. |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [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 | ============LICENSE_END========================================================= |
| 20 | --> |
| 21 | |
| 22 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 23 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 24 | <modelVersion>4.0.0</modelVersion> |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 25 | |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 26 | <parent> |
| 27 | <groupId>org.onap.policy.parent</groupId> |
| 28 | <artifactId>integration</artifactId> |
ramverma | cb23487 | 2018-10-24 15:17:05 +0100 | [diff] [blame^] | 29 | <version>2.0.0</version> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 30 | <relativePath /> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 31 | </parent> |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 32 | |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 33 | <groupId>org.onap.policy.api</groupId> |
| 34 | <artifactId>policy-api</artifactId> |
ramverma | cb23487 | 2018-10-24 15:17:05 +0100 | [diff] [blame^] | 35 | <version>2.0.0-SNAPSHOT</version> |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 36 | |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 37 | <packaging>pom</packaging> |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 38 | |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 39 | <name>policy-api</name> |
| 40 | <description>Code that define our external API.</description> |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 41 | |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 42 | <properties> |
| 43 | <!-- sonar/jacoco overrides --> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 44 | <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules --> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 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> |
| 48 | |
ramverma | cb23487 | 2018-10-24 15:17:05 +0100 | [diff] [blame^] | 49 | <policy.common.version>1.3.0</policy.common.version> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 50 | </properties> |
| 51 | |
| 52 | <modules> |
| 53 | <module>main</module> |
| 54 | </modules> |
| 55 | |
| 56 | <dependencies> |
| 57 | <dependency> |
| 58 | <groupId>junit</groupId> |
| 59 | <artifactId>junit</artifactId> |
| 60 | <scope>test</scope> |
| 61 | </dependency> |
| 62 | <dependency> |
| 63 | <groupId>org.slf4j</groupId> |
| 64 | <artifactId>slf4j-ext</artifactId> |
| 65 | <version>1.8.0-beta2</version> |
| 66 | </dependency> |
| 67 | <dependency> |
| 68 | <groupId>org.slf4j</groupId> |
| 69 | <artifactId>slf4j-api</artifactId> |
| 70 | </dependency> |
| 71 | <dependency> |
| 72 | <groupId>ch.qos.logback</groupId> |
| 73 | <artifactId>logback-core</artifactId> |
| 74 | </dependency> |
| 75 | <dependency> |
| 76 | <groupId>ch.qos.logback</groupId> |
| 77 | <artifactId>logback-classic</artifactId> |
| 78 | </dependency> |
| 79 | </dependencies> |
| 80 | |
| 81 | <distributionManagement> |
| 82 | <site> |
| 83 | <id>ecomp-site</id> |
| 84 | <url>dav:${nexusproxy}${sitePath}</url> |
| 85 | </site> |
| 86 | </distributionManagement> |
| 87 | |
| 88 | <build> |
| 89 | <plugins> |
| 90 | <plugin> |
| 91 | <groupId>org.jacoco</groupId> |
| 92 | <artifactId>jacoco-maven-plugin</artifactId> |
| 93 | <executions> |
| 94 | <execution> |
| 95 | <id>pre-unit-test</id> |
| 96 | <goals> |
| 97 | <goal>prepare-agent</goal> |
| 98 | </goals> |
| 99 | <configuration> |
| 100 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 101 | <append>true</append> |
| 102 | </configuration> |
| 103 | </execution> |
| 104 | <execution> |
| 105 | <id>post-unit-test</id> |
| 106 | <phase>test</phase> |
| 107 | <goals> |
| 108 | <goal>report</goal> |
| 109 | </goals> |
| 110 | <configuration> |
| 111 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 112 | </configuration> |
| 113 | </execution> |
| 114 | </executions> |
| 115 | </plugin> |
| 116 | <plugin> |
| 117 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 118 | <executions> |
| 119 | <execution> |
| 120 | <id>onap-java-style</id> |
| 121 | <goals> |
| 122 | <goal>check</goal> |
| 123 | </goals> |
| 124 | <phase>process-sources</phase> |
| 125 | <configuration> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 126 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 127 | with minor changes --> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 128 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 129 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 130 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 131 | <includeResources>true</includeResources> |
| 132 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 133 | <includeTestResources>true</includeTestResources> |
| 134 | <excludes> |
| 135 | </excludes> |
| 136 | <consoleOutput>true</consoleOutput> |
| 137 | <failOnViolation>true</failOnViolation> |
| 138 | <violationSeverity>warning</violationSeverity> |
| 139 | </configuration> |
| 140 | </execution> |
| 141 | </executions> |
| 142 | <dependencies> |
| 143 | <dependency> |
| 144 | <groupId>org.onap.oparent</groupId> |
| 145 | <artifactId>checkstyle</artifactId> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 146 | <version>${oparent.version}</version> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 147 | <scope>compile</scope> |
| 148 | </dependency> |
| 149 | </dependencies> |
| 150 | </plugin> |
| 151 | </plugins> |
| 152 | <pluginManagement> |
| 153 | <plugins> |
| 154 | <plugin> |
| 155 | <groupId>org.jacoco</groupId> |
| 156 | <artifactId>jacoco-maven-plugin</artifactId> |
| 157 | <version>${jacoco.version}</version> |
| 158 | <configuration> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 159 | <!-- Note: This exclusion list should match <sonar.exclusions> property above --> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 160 | <excludes> |
| 161 | <exclude>**/gen/**</exclude> |
| 162 | <exclude>**/generated-sources/**</exclude> |
| 163 | <exclude>**/yang-gen/**</exclude> |
| 164 | <exclude>**/pax/**</exclude> |
| 165 | </excludes> |
| 166 | </configuration> |
| 167 | <executions> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 168 | <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when |
| 169 | Maven the Surefire plugin is executed. --> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 170 | <execution> |
| 171 | <id>pre-unit-test</id> |
| 172 | <goals> |
| 173 | <goal>prepare-agent</goal> |
| 174 | </goals> |
| 175 | <configuration> |
| 176 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 177 | </configuration> |
| 178 | </execution> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 179 | <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 180 | <execution> |
| 181 | <id>post-unit-test</id> |
| 182 | <phase>test</phase> |
| 183 | <goals> |
| 184 | <goal>report</goal> |
| 185 | </goals> |
| 186 | <configuration> |
| 187 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 188 | </configuration> |
| 189 | </execution> |
| 190 | </executions> |
| 191 | </plugin> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 192 | <plugin> |
| 193 | <groupId>org.eclipse.m2e</groupId> |
| 194 | <artifactId>lifecycle-mapping</artifactId> |
| 195 | <version>1.0.0</version> |
| 196 | <configuration> |
| 197 | <lifecycleMappingMetadata> |
| 198 | <pluginExecutions> |
| 199 | <pluginExecution> |
| 200 | <pluginExecutionFilter> |
| 201 | <groupId>org.apache.maven.plugins</groupId> |
| 202 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 203 | <versionRange>2.17,)</versionRange> |
| 204 | <goals> |
| 205 | <goal>check</goal> |
| 206 | </goals> |
| 207 | </pluginExecutionFilter> |
| 208 | <action> |
| 209 | <ignore /> |
| 210 | </action> |
| 211 | </pluginExecution> |
| 212 | </pluginExecutions> |
| 213 | </lifecycleMappingMetadata> |
| 214 | </configuration> |
| 215 | </plugin> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 216 | </plugins> |
| 217 | </pluginManagement> |
| 218 | </build> |
Pamela Dragosh | cb8f3f0 | 2017-08-15 11:39:16 -0400 | [diff] [blame] | 219 | |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 220 | </project> |