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. |
| 6 | ================================================================================ |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | ============LICENSE_END========================================================= |
| 19 | --> |
| 20 | |
liamfallon | f4d9fe1 | 2018-10-31 18:23:28 +0000 | [diff] [blame] | 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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] | 22 | <modelVersion>4.0.0</modelVersion> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 23 | |
| 24 | <parent> |
| 25 | <groupId>org.onap.policy.parent</groupId> |
| 26 | <artifactId>integration</artifactId> |
liamfallon | f4d9fe1 | 2018-10-31 18:23:28 +0000 | [diff] [blame] | 27 | <version>2.1.0-SNAPSHOT</version> |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 28 | <relativePath /> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 29 | </parent> |
| 30 | |
| 31 | <groupId>org.onap.policy.distribution</groupId> |
Pamela Dragosh | 4d2eae6 | 2018-05-30 08:55:45 -0400 | [diff] [blame] | 32 | <artifactId>policy-distribution</artifactId> |
liamfallon | f4d9fe1 | 2018-10-31 18:23:28 +0000 | [diff] [blame] | 33 | <version>2.1.0-SNAPSHOT</version> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 34 | |
| 35 | <packaging>pom</packaging> |
| 36 | |
| 37 | <name>policy-distribution</name> |
| 38 | <description>Code that implements our integration with SDC service distribution API.</description> |
| 39 | |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 40 | <properties> |
| 41 | <!-- sonar/jacoco overrides --> |
ramverma | ef2ff6b | 2018-08-23 13:50:31 +0100 | [diff] [blame] | 42 | <!-- Overriding oparent default sonar/jacoco settings Combine all our reports |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 43 | into one file shared across sub-modules --> |
| 44 | <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 45 | <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 46 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> |
ramverma | ef2ff6b | 2018-08-23 13:50:31 +0100 | [diff] [blame] | 47 | |
liamfallon | f4d9fe1 | 2018-10-31 18:23:28 +0000 | [diff] [blame] | 48 | <policy.common.version>1.4.0-SNAPSHOT</policy.common.version> |
| 49 | <policy.engine.version>1.4.0-SNAPSHOT</policy.engine.version> |
| 50 | <policy.apex-pdp.version>2.1.0-SNAPSHOT</policy.apex-pdp.version> |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 51 | </properties> |
| 52 | |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 53 | <modules> |
mmis | f85f63f | 2018-08-02 09:45:44 +0100 | [diff] [blame] | 54 | <module>model</module> |
liamfallon | ce63c40 | 2018-07-19 14:27:17 +0100 | [diff] [blame] | 55 | <module>main</module> |
| 56 | <module>reception</module> |
| 57 | <module>forwarding</module> |
liamfallon | 37d8ade | 2018-07-30 16:58:54 +0100 | [diff] [blame] | 58 | <module>plugins</module> |
mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 59 | <module>packages</module> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 60 | </modules> |
| 61 | |
liamfallon | 37d8ade | 2018-07-30 16:58:54 +0100 | [diff] [blame] | 62 | <dependencies> |
| 63 | <dependency> |
| 64 | <groupId>junit</groupId> |
| 65 | <artifactId>junit</artifactId> |
| 66 | <scope>test</scope> |
| 67 | </dependency> |
| 68 | <dependency> |
| 69 | <groupId>org.slf4j</groupId> |
| 70 | <artifactId>slf4j-ext</artifactId> |
| 71 | <version>1.8.0-beta2</version> |
| 72 | </dependency> |
| 73 | <dependency> |
| 74 | <groupId>org.slf4j</groupId> |
| 75 | <artifactId>slf4j-api</artifactId> |
| 76 | </dependency> |
| 77 | <dependency> |
| 78 | <groupId>ch.qos.logback</groupId> |
| 79 | <artifactId>logback-core</artifactId> |
| 80 | </dependency> |
| 81 | <dependency> |
| 82 | <groupId>ch.qos.logback</groupId> |
| 83 | <artifactId>logback-classic</artifactId> |
| 84 | </dependency> |
| 85 | </dependencies> |
| 86 | |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 87 | <distributionManagement> |
| 88 | <site> |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 89 | <id>ecomp-site</id> |
| 90 | <url>dav:${nexusproxy}${sitePath}</url> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 91 | </site> |
| 92 | </distributionManagement> |
| 93 | |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 94 | <build> |
| 95 | <plugins> |
| 96 | <plugin> |
| 97 | <groupId>org.jacoco</groupId> |
| 98 | <artifactId>jacoco-maven-plugin</artifactId> |
| 99 | <executions> |
| 100 | <execution> |
| 101 | <id>pre-unit-test</id> |
| 102 | <goals> |
| 103 | <goal>prepare-agent</goal> |
| 104 | </goals> |
| 105 | <configuration> |
| 106 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 107 | <append>true</append> |
| 108 | </configuration> |
| 109 | </execution> |
| 110 | <execution> |
| 111 | <id>post-unit-test</id> |
| 112 | <phase>test</phase> |
| 113 | <goals> |
| 114 | <goal>report</goal> |
| 115 | </goals> |
| 116 | <configuration> |
| 117 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 118 | </configuration> |
| 119 | </execution> |
| 120 | </executions> |
| 121 | </plugin> |
ramverma | ef2ff6b | 2018-08-23 13:50:31 +0100 | [diff] [blame] | 122 | <plugin> |
| 123 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 124 | <executions> |
| 125 | <execution> |
| 126 | <id>onap-java-style</id> |
| 127 | <goals> |
| 128 | <goal>check</goal> |
| 129 | </goals> |
| 130 | <phase>process-sources</phase> |
| 131 | <configuration> |
| 132 | <!-- Use Google Java Style Guide: |
| 133 | https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 134 | with minor changes --> |
| 135 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 136 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
| 137 | <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory> |
| 138 | <includeResources>true</includeResources> |
| 139 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 140 | <includeTestResources>true</includeTestResources> |
| 141 | <excludes> |
| 142 | </excludes> |
| 143 | <consoleOutput>true</consoleOutput> |
| 144 | <failOnViolation>true</failOnViolation> |
| 145 | <violationSeverity>warning</violationSeverity> |
| 146 | </configuration> |
| 147 | </execution> |
| 148 | </executions> |
| 149 | <dependencies> |
| 150 | <dependency> |
| 151 | <groupId>org.onap.oparent</groupId> |
| 152 | <artifactId>checkstyle</artifactId> |
Pamela Dragosh | 9d3612f | 2018-09-06 11:07:44 -0400 | [diff] [blame] | 153 | <version>${oparent.version}</version> |
ramverma | ef2ff6b | 2018-08-23 13:50:31 +0100 | [diff] [blame] | 154 | <scope>compile</scope> |
| 155 | </dependency> |
| 156 | </dependencies> |
| 157 | </plugin> |
ramverma | 84beaf8 | 2018-08-15 21:28:42 +0100 | [diff] [blame] | 158 | </plugins> |
| 159 | <pluginManagement> |
| 160 | <plugins> |
| 161 | <plugin> |
| 162 | <groupId>org.jacoco</groupId> |
| 163 | <artifactId>jacoco-maven-plugin</artifactId> |
| 164 | <version>${jacoco.version}</version> |
| 165 | <configuration> |
| 166 | <!-- Note: This exclusion list should match <sonar.exclusions> property |
| 167 | above --> |
| 168 | <excludes> |
| 169 | <exclude>**/gen/**</exclude> |
| 170 | <exclude>**/generated-sources/**</exclude> |
| 171 | <exclude>**/yang-gen/**</exclude> |
| 172 | <exclude>**/pax/**</exclude> |
| 173 | </excludes> |
| 174 | </configuration> |
| 175 | <executions> |
| 176 | <!-- Prepares the property pointing to the JaCoCo runtime agent which |
| 177 | is passed as VM argument when Maven the Surefire plugin is executed. --> |
| 178 | <execution> |
| 179 | <id>pre-unit-test</id> |
| 180 | <goals> |
| 181 | <goal>prepare-agent</goal> |
| 182 | </goals> |
| 183 | <configuration> |
| 184 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 185 | </configuration> |
| 186 | </execution> |
| 187 | <!-- Ensures that the code coverage report for unit tests is created |
| 188 | after unit tests have been run. --> |
| 189 | <execution> |
| 190 | <id>post-unit-test</id> |
| 191 | <phase>test</phase> |
| 192 | <goals> |
| 193 | <goal>report</goal> |
| 194 | </goals> |
| 195 | <configuration> |
| 196 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 197 | </configuration> |
| 198 | </execution> |
| 199 | </executions> |
| 200 | </plugin> |
| 201 | </plugins> |
| 202 | </pluginManagement> |
| 203 | </build> |
Pamela Dragosh | a965e2e | 2018-05-25 09:22:38 -0400 | [diff] [blame] | 204 | </project> |