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 | ================================================================================ |
Chenfei Gao | 6ea2e1b | 2019-01-31 16:09:09 -0500 | [diff] [blame] | 5 | Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved. |
| 6 | Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved. |
liamfallon | bdfdcf1 | 2019-11-01 11:37:50 +0000 | [diff] [blame^] | 7 | Modifications Copyright (C) 2019 Nordix Foundation. |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 8 | ================================================================================ |
| 9 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 | you may not use this file except in compliance with the License. |
| 11 | You may obtain a copy of the License at |
| 12 | |
| 13 | http://www.apache.org/licenses/LICENSE-2.0 |
| 14 | |
| 15 | Unless required by applicable law or agreed to in writing, software |
| 16 | distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | See the License for the specific language governing permissions and |
| 19 | limitations under the License. |
| 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" |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 25 | <modelVersion>4.0.0</modelVersion> |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 26 | |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 27 | <parent> |
| 28 | <groupId>org.onap.policy.parent</groupId> |
| 29 | <artifactId>integration</artifactId> |
liamfallon | bdfdcf1 | 2019-11-01 11:37:50 +0000 | [diff] [blame^] | 30 | <version>3.1.0-SNAPSHOT</version> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 31 | <relativePath /> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 32 | </parent> |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 33 | |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 34 | <groupId>org.onap.policy.api</groupId> |
| 35 | <artifactId>policy-api</artifactId> |
Jim Hahn | eeb2aa1 | 2019-09-10 09:57:24 -0400 | [diff] [blame] | 36 | <version>2.2.0-SNAPSHOT</version> |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 37 | |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 38 | <packaging>pom</packaging> |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 39 | |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 40 | <name>policy-api</name> |
| 41 | <description>Code that define our external API.</description> |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 42 | |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 43 | <properties> |
| 44 | <!-- sonar/jacoco overrides --> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 45 | <!-- 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] | 46 | <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 47 | <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 48 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> |
| 49 | |
Chenfei Gao | 20390c6 | 2019-09-16 22:20:34 -0400 | [diff] [blame] | 50 | <policy.common.version>1.6.0-SNAPSHOT</policy.common.version> |
| 51 | <policy.models.version>2.2.0-SNAPSHOT</policy.models.version> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 52 | </properties> |
| 53 | |
| 54 | <modules> |
| 55 | <module>main</module> |
Chenfei Gao | 6ea2e1b | 2019-01-31 16:09:09 -0500 | [diff] [blame] | 56 | <module>packages</module> |
Bilal A | 56f97fa | 2019-02-14 14:49:44 -0500 | [diff] [blame] | 57 | <module>testsuites</module> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 58 | </modules> |
| 59 | |
| 60 | <dependencies> |
| 61 | <dependency> |
| 62 | <groupId>junit</groupId> |
| 63 | <artifactId>junit</artifactId> |
| 64 | <scope>test</scope> |
| 65 | </dependency> |
Bilal A | 56f97fa | 2019-02-14 14:49:44 -0500 | [diff] [blame] | 66 | <dependency> |
Chenfei Gao | 6ea2e1b | 2019-01-31 16:09:09 -0500 | [diff] [blame] | 67 | <groupId>org.onap.policy.common</groupId> |
| 68 | <artifactId>policy-endpoints</artifactId> |
| 69 | <version>${policy.common.version}</version> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 70 | </dependency> |
| 71 | </dependencies> |
| 72 | |
| 73 | <distributionManagement> |
| 74 | <site> |
| 75 | <id>ecomp-site</id> |
| 76 | <url>dav:${nexusproxy}${sitePath}</url> |
| 77 | </site> |
| 78 | </distributionManagement> |
| 79 | |
| 80 | <build> |
| 81 | <plugins> |
| 82 | <plugin> |
| 83 | <groupId>org.jacoco</groupId> |
| 84 | <artifactId>jacoco-maven-plugin</artifactId> |
| 85 | <executions> |
| 86 | <execution> |
| 87 | <id>pre-unit-test</id> |
| 88 | <goals> |
| 89 | <goal>prepare-agent</goal> |
| 90 | </goals> |
| 91 | <configuration> |
| 92 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 93 | <append>true</append> |
| 94 | </configuration> |
| 95 | </execution> |
| 96 | <execution> |
| 97 | <id>post-unit-test</id> |
| 98 | <phase>test</phase> |
| 99 | <goals> |
| 100 | <goal>report</goal> |
| 101 | </goals> |
| 102 | <configuration> |
| 103 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 104 | </configuration> |
| 105 | </execution> |
| 106 | </executions> |
| 107 | </plugin> |
| 108 | <plugin> |
| 109 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 110 | <executions> |
| 111 | <execution> |
| 112 | <id>onap-java-style</id> |
| 113 | <goals> |
| 114 | <goal>check</goal> |
| 115 | </goals> |
| 116 | <phase>process-sources</phase> |
| 117 | <configuration> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 118 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 119 | with minor changes --> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 120 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 121 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 122 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 123 | <includeResources>true</includeResources> |
| 124 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 125 | <includeTestResources>true</includeTestResources> |
| 126 | <excludes> |
| 127 | </excludes> |
| 128 | <consoleOutput>true</consoleOutput> |
| 129 | <failOnViolation>true</failOnViolation> |
| 130 | <violationSeverity>warning</violationSeverity> |
| 131 | </configuration> |
| 132 | </execution> |
| 133 | </executions> |
| 134 | <dependencies> |
| 135 | <dependency> |
| 136 | <groupId>org.onap.oparent</groupId> |
| 137 | <artifactId>checkstyle</artifactId> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 138 | <version>${oparent.version}</version> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 139 | <scope>compile</scope> |
| 140 | </dependency> |
| 141 | </dependencies> |
| 142 | </plugin> |
| 143 | </plugins> |
| 144 | <pluginManagement> |
| 145 | <plugins> |
| 146 | <plugin> |
| 147 | <groupId>org.jacoco</groupId> |
| 148 | <artifactId>jacoco-maven-plugin</artifactId> |
| 149 | <version>${jacoco.version}</version> |
| 150 | <configuration> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 151 | <!-- Note: This exclusion list should match <sonar.exclusions> property above --> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 152 | <excludes> |
| 153 | <exclude>**/gen/**</exclude> |
| 154 | <exclude>**/generated-sources/**</exclude> |
| 155 | <exclude>**/yang-gen/**</exclude> |
| 156 | <exclude>**/pax/**</exclude> |
| 157 | </excludes> |
| 158 | </configuration> |
| 159 | <executions> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 160 | <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when |
| 161 | Maven the Surefire plugin is executed. --> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 162 | <execution> |
| 163 | <id>pre-unit-test</id> |
| 164 | <goals> |
| 165 | <goal>prepare-agent</goal> |
| 166 | </goals> |
| 167 | <configuration> |
| 168 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 169 | </configuration> |
| 170 | </execution> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 171 | <!-- 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] | 172 | <execution> |
| 173 | <id>post-unit-test</id> |
| 174 | <phase>test</phase> |
| 175 | <goals> |
| 176 | <goal>report</goal> |
| 177 | </goals> |
| 178 | <configuration> |
| 179 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 180 | </configuration> |
| 181 | </execution> |
| 182 | </executions> |
| 183 | </plugin> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 184 | <plugin> |
| 185 | <groupId>org.eclipse.m2e</groupId> |
| 186 | <artifactId>lifecycle-mapping</artifactId> |
| 187 | <version>1.0.0</version> |
| 188 | <configuration> |
| 189 | <lifecycleMappingMetadata> |
| 190 | <pluginExecutions> |
| 191 | <pluginExecution> |
| 192 | <pluginExecutionFilter> |
| 193 | <groupId>org.apache.maven.plugins</groupId> |
| 194 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 195 | <versionRange>2.17,)</versionRange> |
| 196 | <goals> |
| 197 | <goal>check</goal> |
| 198 | </goals> |
| 199 | </pluginExecutionFilter> |
| 200 | <action> |
| 201 | <ignore /> |
| 202 | </action> |
| 203 | </pluginExecution> |
| 204 | </pluginExecutions> |
| 205 | </lifecycleMappingMetadata> |
| 206 | </configuration> |
| 207 | </plugin> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 208 | </plugins> |
| 209 | </pluginManagement> |
| 210 | </build> |
Pamela Dragosh | cb8f3f0 | 2017-08-15 11:39:16 -0400 | [diff] [blame] | 211 | |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 212 | </project> |