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. |
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> |
Chenfei Gao | 0c117e6 | 2019-02-18 16:28:54 -0500 | [diff] [blame] | 29 | <version>2.1.0-SNAPSHOT</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 | |
Chenfei Gao | 6ea2e1b | 2019-01-31 16:09:09 -0500 | [diff] [blame] | 49 | <policy.common.version>1.4.0-SNAPSHOT</policy.common.version> |
Chenfei Gao | 0c117e6 | 2019-02-18 16:28:54 -0500 | [diff] [blame] | 50 | <policy.models.version>2.0.0-SNAPSHOT</policy.models.version> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 51 | </properties> |
| 52 | |
| 53 | <modules> |
| 54 | <module>main</module> |
Chenfei Gao | 6ea2e1b | 2019-01-31 16:09:09 -0500 | [diff] [blame] | 55 | <module>packages</module> |
Bilal A | 56f97fa | 2019-02-14 14:49:44 -0500 | [diff] [blame] | 56 | <module>testsuites</module> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 57 | </modules> |
| 58 | |
| 59 | <dependencies> |
| 60 | <dependency> |
| 61 | <groupId>junit</groupId> |
| 62 | <artifactId>junit</artifactId> |
| 63 | <scope>test</scope> |
| 64 | </dependency> |
Bilal A | 56f97fa | 2019-02-14 14:49:44 -0500 | [diff] [blame] | 65 | <dependency> |
Chenfei Gao | 6ea2e1b | 2019-01-31 16:09:09 -0500 | [diff] [blame] | 66 | <groupId>org.onap.policy.common</groupId> |
| 67 | <artifactId>policy-endpoints</artifactId> |
| 68 | <version>${policy.common.version}</version> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 69 | </dependency> |
| 70 | </dependencies> |
| 71 | |
| 72 | <distributionManagement> |
| 73 | <site> |
| 74 | <id>ecomp-site</id> |
| 75 | <url>dav:${nexusproxy}${sitePath}</url> |
| 76 | </site> |
| 77 | </distributionManagement> |
| 78 | |
| 79 | <build> |
| 80 | <plugins> |
| 81 | <plugin> |
| 82 | <groupId>org.jacoco</groupId> |
| 83 | <artifactId>jacoco-maven-plugin</artifactId> |
| 84 | <executions> |
| 85 | <execution> |
| 86 | <id>pre-unit-test</id> |
| 87 | <goals> |
| 88 | <goal>prepare-agent</goal> |
| 89 | </goals> |
| 90 | <configuration> |
| 91 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 92 | <append>true</append> |
| 93 | </configuration> |
| 94 | </execution> |
| 95 | <execution> |
| 96 | <id>post-unit-test</id> |
| 97 | <phase>test</phase> |
| 98 | <goals> |
| 99 | <goal>report</goal> |
| 100 | </goals> |
| 101 | <configuration> |
| 102 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 103 | </configuration> |
| 104 | </execution> |
| 105 | </executions> |
| 106 | </plugin> |
| 107 | <plugin> |
| 108 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 109 | <executions> |
| 110 | <execution> |
| 111 | <id>onap-java-style</id> |
| 112 | <goals> |
| 113 | <goal>check</goal> |
| 114 | </goals> |
| 115 | <phase>process-sources</phase> |
| 116 | <configuration> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 117 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 118 | with minor changes --> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 119 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 120 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 121 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 122 | <includeResources>true</includeResources> |
| 123 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 124 | <includeTestResources>true</includeTestResources> |
| 125 | <excludes> |
| 126 | </excludes> |
| 127 | <consoleOutput>true</consoleOutput> |
| 128 | <failOnViolation>true</failOnViolation> |
| 129 | <violationSeverity>warning</violationSeverity> |
| 130 | </configuration> |
| 131 | </execution> |
| 132 | </executions> |
| 133 | <dependencies> |
| 134 | <dependency> |
| 135 | <groupId>org.onap.oparent</groupId> |
| 136 | <artifactId>checkstyle</artifactId> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 137 | <version>${oparent.version}</version> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 138 | <scope>compile</scope> |
| 139 | </dependency> |
| 140 | </dependencies> |
| 141 | </plugin> |
| 142 | </plugins> |
| 143 | <pluginManagement> |
| 144 | <plugins> |
| 145 | <plugin> |
| 146 | <groupId>org.jacoco</groupId> |
| 147 | <artifactId>jacoco-maven-plugin</artifactId> |
| 148 | <version>${jacoco.version}</version> |
| 149 | <configuration> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 150 | <!-- Note: This exclusion list should match <sonar.exclusions> property above --> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 151 | <excludes> |
| 152 | <exclude>**/gen/**</exclude> |
| 153 | <exclude>**/generated-sources/**</exclude> |
| 154 | <exclude>**/yang-gen/**</exclude> |
| 155 | <exclude>**/pax/**</exclude> |
| 156 | </excludes> |
| 157 | </configuration> |
| 158 | <executions> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 159 | <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when |
| 160 | Maven the Surefire plugin is executed. --> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 161 | <execution> |
| 162 | <id>pre-unit-test</id> |
| 163 | <goals> |
| 164 | <goal>prepare-agent</goal> |
| 165 | </goals> |
| 166 | <configuration> |
| 167 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 168 | </configuration> |
| 169 | </execution> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 170 | <!-- 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] | 171 | <execution> |
| 172 | <id>post-unit-test</id> |
| 173 | <phase>test</phase> |
| 174 | <goals> |
| 175 | <goal>report</goal> |
| 176 | </goals> |
| 177 | <configuration> |
| 178 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 179 | </configuration> |
| 180 | </execution> |
| 181 | </executions> |
| 182 | </plugin> |
Pamela Dragosh | 8218ae0 | 2018-09-25 09:20:32 -0400 | [diff] [blame] | 183 | <plugin> |
| 184 | <groupId>org.eclipse.m2e</groupId> |
| 185 | <artifactId>lifecycle-mapping</artifactId> |
| 186 | <version>1.0.0</version> |
| 187 | <configuration> |
| 188 | <lifecycleMappingMetadata> |
| 189 | <pluginExecutions> |
| 190 | <pluginExecution> |
| 191 | <pluginExecutionFilter> |
| 192 | <groupId>org.apache.maven.plugins</groupId> |
| 193 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 194 | <versionRange>2.17,)</versionRange> |
| 195 | <goals> |
| 196 | <goal>check</goal> |
| 197 | </goals> |
| 198 | </pluginExecutionFilter> |
| 199 | <action> |
| 200 | <ignore /> |
| 201 | </action> |
| 202 | </pluginExecution> |
| 203 | </pluginExecutions> |
| 204 | </lifecycleMappingMetadata> |
| 205 | </configuration> |
| 206 | </plugin> |
Krishnajinka | da9e01a | 2018-08-31 20:01:30 +0900 | [diff] [blame] | 207 | </plugins> |
| 208 | </pluginManagement> |
| 209 | </build> |
Pamela Dragosh | cb8f3f0 | 2017-08-15 11:39:16 -0400 | [diff] [blame] | 210 | |
Pamela Dragosh | 7ef1ede | 2017-08-03 12:56:47 -0400 | [diff] [blame] | 211 | </project> |