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> |
HOCKLA | b386bc2 | 2019-12-05 14:50:59 -0600 | [diff] [blame^] | 29 | <version>3.1.0</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> |
Jim Hahn | a210e7d | 2019-09-16 16:51:15 -0400 | [diff] [blame] | 35 | <version>2.3.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 | |
HOCKLA | b386bc2 | 2019-12-05 14:50:59 -0600 | [diff] [blame^] | 50 | <policy.common.version>1.6.1</policy.common.version> |
Jim Hahn | 5a8fe4a | 2019-09-19 15:33:53 -0400 | [diff] [blame] | 51 | <policy.engine.version>1.6.0-SNAPSHOT</policy.engine.version> |
| 52 | <policy.apex-pdp.version>2.3.0-SNAPSHOT</policy.apex-pdp.version> |
| 53 | <policy.models.version>2.2.0-SNAPSHOT</policy.models.version> |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 54 | </properties> |
| 55 | |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 56 | <modules> |
mmis | f85f63f | 2018-08-02 09:45:44 +0100 | [diff] [blame] | 57 | <module>model</module> |
liamfallon | ce63c40 | 2018-07-19 14:27:17 +0100 | [diff] [blame] | 58 | <module>main</module> |
| 59 | <module>reception</module> |
| 60 | <module>forwarding</module> |
liamfallon | 37d8ade | 2018-07-30 16:58:54 +0100 | [diff] [blame] | 61 | <module>plugins</module> |
ramverma | b5f4934 | 2019-02-05 15:34:35 +0000 | [diff] [blame] | 62 | <module>packages</module> |
Bilal A | f762f74 | 2019-02-27 13:52:05 -0500 | [diff] [blame] | 63 | <module>testsuites</module> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 64 | </modules> |
| 65 | |
liamfallon | 37d8ade | 2018-07-30 16:58:54 +0100 | [diff] [blame] | 66 | <dependencies> |
| 67 | <dependency> |
| 68 | <groupId>junit</groupId> |
| 69 | <artifactId>junit</artifactId> |
| 70 | <scope>test</scope> |
| 71 | </dependency> |
| 72 | <dependency> |
ramverma | b5f4934 | 2019-02-05 15:34:35 +0000 | [diff] [blame] | 73 | <groupId>org.mockito</groupId> |
| 74 | <artifactId>mockito-all</artifactId> |
| 75 | <scope>test</scope> |
liamfallon | 37d8ade | 2018-07-30 16:58:54 +0100 | [diff] [blame] | 76 | </dependency> |
ramverma | b5f4934 | 2019-02-05 15:34:35 +0000 | [diff] [blame] | 77 | |
liamfallon | 37d8ade | 2018-07-30 16:58:54 +0100 | [diff] [blame] | 78 | <dependency> |
ramverma | b5f4934 | 2019-02-05 15:34:35 +0000 | [diff] [blame] | 79 | <groupId>org.onap.policy.common</groupId> |
| 80 | <artifactId>policy-endpoints</artifactId> |
| 81 | <version>${policy.common.version}</version> |
liamfallon | 37d8ade | 2018-07-30 16:58:54 +0100 | [diff] [blame] | 82 | </dependency> |
| 83 | </dependencies> |
| 84 | |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 85 | <distributionManagement> |
| 86 | <site> |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 87 | <id>ecomp-site</id> |
| 88 | <url>dav:${nexusproxy}${sitePath}</url> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 89 | </site> |
| 90 | </distributionManagement> |
| 91 | |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 92 | <build> |
| 93 | <plugins> |
| 94 | <plugin> |
| 95 | <groupId>org.jacoco</groupId> |
| 96 | <artifactId>jacoco-maven-plugin</artifactId> |
| 97 | <executions> |
| 98 | <execution> |
| 99 | <id>pre-unit-test</id> |
| 100 | <goals> |
| 101 | <goal>prepare-agent</goal> |
| 102 | </goals> |
| 103 | <configuration> |
| 104 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 105 | <append>true</append> |
| 106 | </configuration> |
| 107 | </execution> |
| 108 | <execution> |
| 109 | <id>post-unit-test</id> |
| 110 | <phase>test</phase> |
| 111 | <goals> |
| 112 | <goal>report</goal> |
| 113 | </goals> |
| 114 | <configuration> |
| 115 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 116 | </configuration> |
| 117 | </execution> |
| 118 | </executions> |
| 119 | </plugin> |
ramverma | ef2ff6b | 2018-08-23 13:50:31 +0100 | [diff] [blame] | 120 | <plugin> |
| 121 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 122 | <executions> |
| 123 | <execution> |
| 124 | <id>onap-java-style</id> |
| 125 | <goals> |
| 126 | <goal>check</goal> |
| 127 | </goals> |
| 128 | <phase>process-sources</phase> |
| 129 | <configuration> |
| 130 | <!-- Use Google Java Style Guide: |
| 131 | https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 132 | with minor changes --> |
| 133 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 134 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
Pamela Dragosh | 789f09f | 2018-11-09 08:02:39 -0500 | [diff] [blame] | 135 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
ramverma | ef2ff6b | 2018-08-23 13:50:31 +0100 | [diff] [blame] | 136 | <includeResources>true</includeResources> |
| 137 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 138 | <includeTestResources>true</includeTestResources> |
| 139 | <excludes> |
| 140 | </excludes> |
| 141 | <consoleOutput>true</consoleOutput> |
| 142 | <failOnViolation>true</failOnViolation> |
| 143 | <violationSeverity>warning</violationSeverity> |
| 144 | </configuration> |
| 145 | </execution> |
| 146 | </executions> |
| 147 | <dependencies> |
| 148 | <dependency> |
| 149 | <groupId>org.onap.oparent</groupId> |
| 150 | <artifactId>checkstyle</artifactId> |
Pamela Dragosh | 9d3612f | 2018-09-06 11:07:44 -0400 | [diff] [blame] | 151 | <version>${oparent.version}</version> |
ramverma | ef2ff6b | 2018-08-23 13:50:31 +0100 | [diff] [blame] | 152 | <scope>compile</scope> |
| 153 | </dependency> |
| 154 | </dependencies> |
| 155 | </plugin> |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 156 | </plugins> |
| 157 | <pluginManagement> |
| 158 | <plugins> |
| 159 | <plugin> |
| 160 | <groupId>org.jacoco</groupId> |
| 161 | <artifactId>jacoco-maven-plugin</artifactId> |
| 162 | <version>${jacoco.version}</version> |
| 163 | <configuration> |
| 164 | <!-- Note: This exclusion list should match <sonar.exclusions> property |
| 165 | above --> |
| 166 | <excludes> |
| 167 | <exclude>**/gen/**</exclude> |
| 168 | <exclude>**/generated-sources/**</exclude> |
| 169 | <exclude>**/yang-gen/**</exclude> |
| 170 | <exclude>**/pax/**</exclude> |
| 171 | </excludes> |
| 172 | </configuration> |
| 173 | <executions> |
| 174 | <!-- Prepares the property pointing to the JaCoCo runtime agent which |
| 175 | is passed as VM argument when Maven the Surefire plugin is executed. --> |
| 176 | <execution> |
| 177 | <id>pre-unit-test</id> |
| 178 | <goals> |
| 179 | <goal>prepare-agent</goal> |
| 180 | </goals> |
| 181 | <configuration> |
| 182 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 183 | </configuration> |
| 184 | </execution> |
| 185 | <!-- Ensures that the code coverage report for unit tests is created |
| 186 | after unit tests have been run. --> |
| 187 | <execution> |
| 188 | <id>post-unit-test</id> |
| 189 | <phase>test</phase> |
| 190 | <goals> |
| 191 | <goal>report</goal> |
| 192 | </goals> |
| 193 | <configuration> |
| 194 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 195 | </configuration> |
| 196 | </execution> |
| 197 | </executions> |
| 198 | </plugin> |
| 199 | </plugins> |
| 200 | </pluginManagement> |
| 201 | </build> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 202 | </project> |