Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ONAP Policy SDC Service Distribution |
| 4 | ================================================================================ |
| 5 | Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. |
ramverma | b5f4934 | 2019-02-05 15:34:35 +0000 | [diff] [blame] | 6 | Copyright (C) 2019 Nordix Foundation. |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -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 | |
ramverma | b5f4934 | 2019-02-05 15:34:35 +0000 | [diff] [blame] | 22 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 23 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 24 | <modelVersion>4.0.0</modelVersion> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 25 | |
| 26 | <parent> |
| 27 | <groupId>org.onap.policy.parent</groupId> |
| 28 | <artifactId>integration</artifactId> |
Pamela Dragosh | d784d71 | 2019-05-31 11:48:36 -0400 | [diff] [blame^] | 29 | <version>3.0.0-SNAPSHOT</version> |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 30 | <relativePath /> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 31 | </parent> |
| 32 | |
| 33 | <groupId>org.onap.policy.distribution</groupId> |
Pamela Dragosh | 4d2eae6 | 2018-05-30 08:55:45 -0400 | [diff] [blame] | 34 | <artifactId>policy-distribution</artifactId> |
Pamela Dragosh | d784d71 | 2019-05-31 11:48:36 -0400 | [diff] [blame^] | 35 | <version>2.2.0-SNAPSHOT</version> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 36 | |
| 37 | <packaging>pom</packaging> |
| 38 | |
| 39 | <name>policy-distribution</name> |
| 40 | <description>Code that implements our integration with SDC service distribution API.</description> |
| 41 | |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 42 | <properties> |
| 43 | <!-- sonar/jacoco overrides --> |
ramverma | ef2ff6b | 2018-08-23 13:50:31 +0100 | [diff] [blame] | 44 | <!-- Overriding oparent default sonar/jacoco settings Combine all our reports |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 45 | into one file shared across sub-modules --> |
| 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> |
ramverma | ef2ff6b | 2018-08-23 13:50:31 +0100 | [diff] [blame] | 49 | |
Pamela Dragosh | d784d71 | 2019-05-31 11:48:36 -0400 | [diff] [blame^] | 50 | <policy.common.version>1.5.0-SNAPSHOT</policy.common.version> |
| 51 | <policy.engine.version>1.5.0-SNAPSHOT</policy.engine.version> |
| 52 | <policy.apex-pdp.version>2.2.0-SNAPSHOT</policy.apex-pdp.version> |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 53 | </properties> |
| 54 | |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 55 | <modules> |
mmis | f85f63f | 2018-08-02 09:45:44 +0100 | [diff] [blame] | 56 | <module>model</module> |
liamfallon | ce63c40 | 2018-07-19 14:27:17 +0100 | [diff] [blame] | 57 | <module>main</module> |
| 58 | <module>reception</module> |
| 59 | <module>forwarding</module> |
liamfallon | 37d8ade | 2018-07-30 16:58:54 +0100 | [diff] [blame] | 60 | <module>plugins</module> |
ramverma | b5f4934 | 2019-02-05 15:34:35 +0000 | [diff] [blame] | 61 | <module>packages</module> |
Bilal A | f762f74 | 2019-02-27 13:52:05 -0500 | [diff] [blame] | 62 | <module>testsuites</module> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 63 | </modules> |
| 64 | |
liamfallon | 37d8ade | 2018-07-30 16:58:54 +0100 | [diff] [blame] | 65 | <dependencies> |
| 66 | <dependency> |
| 67 | <groupId>junit</groupId> |
| 68 | <artifactId>junit</artifactId> |
| 69 | <scope>test</scope> |
| 70 | </dependency> |
| 71 | <dependency> |
ramverma | b5f4934 | 2019-02-05 15:34:35 +0000 | [diff] [blame] | 72 | <groupId>org.mockito</groupId> |
| 73 | <artifactId>mockito-all</artifactId> |
| 74 | <scope>test</scope> |
liamfallon | 37d8ade | 2018-07-30 16:58:54 +0100 | [diff] [blame] | 75 | </dependency> |
ramverma | b5f4934 | 2019-02-05 15:34:35 +0000 | [diff] [blame] | 76 | |
liamfallon | 37d8ade | 2018-07-30 16:58:54 +0100 | [diff] [blame] | 77 | <dependency> |
ramverma | b5f4934 | 2019-02-05 15:34:35 +0000 | [diff] [blame] | 78 | <groupId>org.onap.policy.common</groupId> |
| 79 | <artifactId>policy-endpoints</artifactId> |
| 80 | <version>${policy.common.version}</version> |
liamfallon | 37d8ade | 2018-07-30 16:58:54 +0100 | [diff] [blame] | 81 | </dependency> |
| 82 | </dependencies> |
| 83 | |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 84 | <distributionManagement> |
| 85 | <site> |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 86 | <id>ecomp-site</id> |
| 87 | <url>dav:${nexusproxy}${sitePath}</url> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 88 | </site> |
| 89 | </distributionManagement> |
| 90 | |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 91 | <build> |
| 92 | <plugins> |
| 93 | <plugin> |
| 94 | <groupId>org.jacoco</groupId> |
| 95 | <artifactId>jacoco-maven-plugin</artifactId> |
| 96 | <executions> |
| 97 | <execution> |
| 98 | <id>pre-unit-test</id> |
| 99 | <goals> |
| 100 | <goal>prepare-agent</goal> |
| 101 | </goals> |
| 102 | <configuration> |
| 103 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 104 | <append>true</append> |
| 105 | </configuration> |
| 106 | </execution> |
| 107 | <execution> |
| 108 | <id>post-unit-test</id> |
| 109 | <phase>test</phase> |
| 110 | <goals> |
| 111 | <goal>report</goal> |
| 112 | </goals> |
| 113 | <configuration> |
| 114 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 115 | </configuration> |
| 116 | </execution> |
| 117 | </executions> |
| 118 | </plugin> |
ramverma | ef2ff6b | 2018-08-23 13:50:31 +0100 | [diff] [blame] | 119 | <plugin> |
| 120 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 121 | <executions> |
| 122 | <execution> |
| 123 | <id>onap-java-style</id> |
| 124 | <goals> |
| 125 | <goal>check</goal> |
| 126 | </goals> |
| 127 | <phase>process-sources</phase> |
| 128 | <configuration> |
| 129 | <!-- Use Google Java Style Guide: |
| 130 | https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 131 | with minor changes --> |
| 132 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 133 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
Pamela Dragosh | 789f09f | 2018-11-09 08:02:39 -0500 | [diff] [blame] | 134 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
ramverma | ef2ff6b | 2018-08-23 13:50:31 +0100 | [diff] [blame] | 135 | <includeResources>true</includeResources> |
| 136 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 137 | <includeTestResources>true</includeTestResources> |
| 138 | <excludes> |
| 139 | </excludes> |
| 140 | <consoleOutput>true</consoleOutput> |
| 141 | <failOnViolation>true</failOnViolation> |
| 142 | <violationSeverity>warning</violationSeverity> |
| 143 | </configuration> |
| 144 | </execution> |
| 145 | </executions> |
| 146 | <dependencies> |
| 147 | <dependency> |
| 148 | <groupId>org.onap.oparent</groupId> |
| 149 | <artifactId>checkstyle</artifactId> |
Pamela Dragosh | 9d3612f | 2018-09-06 11:07:44 -0400 | [diff] [blame] | 150 | <version>${oparent.version}</version> |
ramverma | ef2ff6b | 2018-08-23 13:50:31 +0100 | [diff] [blame] | 151 | <scope>compile</scope> |
| 152 | </dependency> |
| 153 | </dependencies> |
| 154 | </plugin> |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 155 | </plugins> |
| 156 | <pluginManagement> |
| 157 | <plugins> |
| 158 | <plugin> |
| 159 | <groupId>org.jacoco</groupId> |
| 160 | <artifactId>jacoco-maven-plugin</artifactId> |
| 161 | <version>${jacoco.version}</version> |
| 162 | <configuration> |
| 163 | <!-- Note: This exclusion list should match <sonar.exclusions> property |
| 164 | above --> |
| 165 | <excludes> |
| 166 | <exclude>**/gen/**</exclude> |
| 167 | <exclude>**/generated-sources/**</exclude> |
| 168 | <exclude>**/yang-gen/**</exclude> |
| 169 | <exclude>**/pax/**</exclude> |
| 170 | </excludes> |
| 171 | </configuration> |
| 172 | <executions> |
| 173 | <!-- Prepares the property pointing to the JaCoCo runtime agent which |
| 174 | is passed as VM argument when Maven the Surefire plugin is executed. --> |
| 175 | <execution> |
| 176 | <id>pre-unit-test</id> |
| 177 | <goals> |
| 178 | <goal>prepare-agent</goal> |
| 179 | </goals> |
| 180 | <configuration> |
| 181 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 182 | </configuration> |
| 183 | </execution> |
| 184 | <!-- Ensures that the code coverage report for unit tests is created |
| 185 | after unit tests have been run. --> |
| 186 | <execution> |
| 187 | <id>post-unit-test</id> |
| 188 | <phase>test</phase> |
| 189 | <goals> |
| 190 | <goal>report</goal> |
| 191 | </goals> |
| 192 | <configuration> |
| 193 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 194 | </configuration> |
| 195 | </execution> |
| 196 | </executions> |
| 197 | </plugin> |
| 198 | </plugins> |
| 199 | </pluginManagement> |
| 200 | </build> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 201 | </project> |