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