Jim Hahn | 4ec725e | 2019-02-06 13:14:57 -0500 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ONAP policy |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 4 | ================================================================================ |
Jim Hahn | 4ec725e | 2019-02-06 13:14:57 -0500 | [diff] [blame] | 5 | Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved. |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 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 |
Pamela Dragosh | 1dccffb | 2018-02-16 10:29:09 -0500 | [diff] [blame] | 10 | |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 11 | http://www.apache.org/licenses/LICENSE-2.0 |
Pamela Dragosh | 1dccffb | 2018-02-16 10:29:09 -0500 | [diff] [blame] | 12 | |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 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. |
Jim Hahn | 4ec725e | 2019-02-06 13:14:57 -0500 | [diff] [blame] | 18 | ============LICENSE_END========================================================= |
Pamela Dragosh | 1dccffb | 2018-02-16 10:29:09 -0500 | [diff] [blame] | 19 | --> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 20 | |
liamfallon | 2f72ab6 | 2018-10-31 15:23:33 +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"> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 22 | <modelVersion>4.0.0</modelVersion> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 23 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 24 | <parent> |
liamfallon | 73ba803 | 2018-07-30 10:22:27 +0100 | [diff] [blame] | 25 | <groupId>org.onap.policy.parent</groupId> |
| 26 | <artifactId>integration</artifactId> |
liamfallon | 2f72ab6 | 2018-10-31 15:23:33 +0000 | [diff] [blame] | 27 | <version>2.1.0-SNAPSHOT</version> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 28 | <relativePath /> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 29 | </parent> |
Guo Ruijing | a790f40 | 2017-08-03 09:05:02 +0000 | [diff] [blame] | 30 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 31 | <groupId>org.onap.policy.common</groupId> |
| 32 | <artifactId>common-modules</artifactId> |
liamfallon | 2f72ab6 | 2018-10-31 15:23:33 +0000 | [diff] [blame] | 33 | <version>1.4.0-SNAPSHOT</version> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 34 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 35 | <packaging>pom</packaging> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 36 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 37 | <name>policy-common</name> |
| 38 | <description>Common Modules for Policy-Engine in both XACML and Drools flavor</description> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 39 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 40 | <properties> |
| 41 | <!-- Project common build settings --> |
| 42 | <maven.compiler.source>1.8</maven.compiler.source> |
| 43 | <maven.compiler.target>1.8</maven.compiler.target> |
| 44 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
Pamela Dragosh | 1dccffb | 2018-02-16 10:29:09 -0500 | [diff] [blame] | 45 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 46 | <!-- Project path properties --> |
| 47 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 48 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath> |
| 49 | <releases.path>content/repositories/releases/</releases.path> |
| 50 | <snapshots.path>content/repositories/snapshots/</snapshots.path> |
| 51 | <staging.path>content/repositories/staging/</staging.path> |
Pamela Dragosh | 1dccffb | 2018-02-16 10:29:09 -0500 | [diff] [blame] | 52 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 53 | <!-- sonar/jacoco overrides --> |
Jim Hahn | 4ec725e | 2019-02-06 13:14:57 -0500 | [diff] [blame] | 54 | <!-- Overriding oparent default sonar/jacoco settings Combine all |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 55 | our reports into one file shared across sub-modules --> |
| 56 | <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 57 | <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 58 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> |
Pamela Dragosh | 1dccffb | 2018-02-16 10:29:09 -0500 | [diff] [blame] | 59 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 60 | <!-- Project common dependency versions --> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 61 | <commons-lang3.version>3.4</commons-lang3.version> |
Jim Hahn | d3fe4b6 | 2019-02-18 13:30:00 -0500 | [diff] [blame] | 62 | <jersey.version>2.25.1</jersey.version> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 63 | </properties> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 64 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 65 | <modules> |
| 66 | <module>capabilities</module> |
| 67 | <module>utils-test</module> |
| 68 | <module>utils</module> |
Jim Hahn | 4ec725e | 2019-02-06 13:14:57 -0500 | [diff] [blame] | 69 | <module>gson</module> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 70 | <module>common-logging</module> |
liamfallon | 32c6ed6 | 2018-07-24 12:38:24 +0100 | [diff] [blame] | 71 | <module>common-parameters</module> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 72 | <module>integrity-audit</module> |
| 73 | <module>integrity-monitor</module> |
| 74 | <module>policy-endpoints</module> |
ramverma | aee89a9 | 2019-03-04 13:29:54 +0000 | [diff] [blame] | 75 | <module>pdp-common</module> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 76 | </modules> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 77 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 78 | <dependencyManagement> |
| 79 | <dependencies> |
| 80 | <dependency> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 81 | <groupId>org.apache.commons</groupId> |
| 82 | <artifactId>commons-lang3</artifactId> |
| 83 | <version>${commons-lang3.version}</version> |
| 84 | </dependency> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 85 | </dependencies> |
| 86 | </dependencyManagement> |
Pamela Dragosh | f391f8a | 2017-11-10 19:18:46 -0500 | [diff] [blame] | 87 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 88 | <build> |
| 89 | <pluginManagement> |
| 90 | <plugins> |
| 91 | <plugin> |
| 92 | <groupId>org.jacoco</groupId> |
| 93 | <artifactId>jacoco-maven-plugin</artifactId> |
| 94 | <version>${jacoco.version}</version> |
| 95 | <configuration> |
Jim Hahn | 4ec725e | 2019-02-06 13:14:57 -0500 | [diff] [blame] | 96 | <!-- Note: This exclusion list should match <sonar.exclusions> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 97 | property above --> |
| 98 | <excludes> |
| 99 | <exclude>**/gen/**</exclude> |
| 100 | <exclude>**/generated-sources/**</exclude> |
| 101 | <exclude>**/yang-gen/**</exclude> |
| 102 | <exclude>**/pax/**</exclude> |
| 103 | </excludes> |
| 104 | </configuration> |
| 105 | <executions> |
Jim Hahn | 4ec725e | 2019-02-06 13:14:57 -0500 | [diff] [blame] | 106 | <!-- Prepares the property pointing to the JaCoCo |
| 107 | runtime agent which is passed as VM argument when Maven the Surefire plugin |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 108 | is executed. --> |
| 109 | <execution> |
| 110 | <id>pre-unit-test</id> |
| 111 | <goals> |
| 112 | <goal>prepare-agent</goal> |
| 113 | </goals> |
| 114 | <configuration> |
| 115 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 116 | </configuration> |
| 117 | </execution> |
Jim Hahn | 4ec725e | 2019-02-06 13:14:57 -0500 | [diff] [blame] | 118 | <!-- Ensures that the code coverage report for unit |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 119 | tests is created after unit tests have been run. --> |
| 120 | <execution> |
| 121 | <id>post-unit-test</id> |
| 122 | <phase>test</phase> |
| 123 | <goals> |
| 124 | <goal>report</goal> |
| 125 | </goals> |
| 126 | <configuration> |
| 127 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 128 | </configuration> |
| 129 | </execution> |
| 130 | </executions> |
| 131 | </plugin> |
| 132 | <plugin> |
| 133 | <groupId>org.eclipse.m2e</groupId> |
| 134 | <artifactId>lifecycle-mapping</artifactId> |
| 135 | <version>1.0.0</version> |
| 136 | <configuration> |
| 137 | <lifecycleMappingMetadata> |
| 138 | <pluginExecutions> |
| 139 | <pluginExecution> |
| 140 | <pluginExecutionFilter> |
| 141 | <groupId>org.apache.maven.plugins</groupId> |
| 142 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 143 | <versionRange>2.17,)</versionRange> |
| 144 | <goals> |
| 145 | <goal>check</goal> |
| 146 | </goals> |
| 147 | </pluginExecutionFilter> |
| 148 | <action> |
| 149 | <ignore /> |
| 150 | </action> |
| 151 | </pluginExecution> |
| 152 | </pluginExecutions> |
| 153 | </lifecycleMappingMetadata> |
| 154 | </configuration> |
| 155 | </plugin> |
| 156 | </plugins> |
| 157 | </pluginManagement> |
| 158 | <plugins> |
| 159 | <plugin> |
| 160 | <groupId>org.jacoco</groupId> |
| 161 | <artifactId>jacoco-maven-plugin</artifactId> |
| 162 | <executions> |
| 163 | <execution> |
| 164 | <id>pre-unit-test</id> |
| 165 | <goals> |
| 166 | <goal>prepare-agent</goal> |
| 167 | </goals> |
| 168 | <configuration> |
| 169 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 170 | <append>true</append> |
| 171 | </configuration> |
| 172 | </execution> |
| 173 | <execution> |
| 174 | <id>post-unit-test</id> |
| 175 | <phase>test</phase> |
| 176 | <goals> |
| 177 | <goal>report</goal> |
| 178 | </goals> |
| 179 | <configuration> |
| 180 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 181 | </configuration> |
| 182 | </execution> |
| 183 | </executions> |
| 184 | </plugin> |
| 185 | <plugin> |
| 186 | <groupId>org.sonatype.plugins</groupId> |
| 187 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 188 | <extensions>true</extensions> |
| 189 | <configuration> |
| 190 | <nexusUrl>${nexusproxy}</nexusUrl> |
| 191 | <stagingProfileId>176c31dfe190a</stagingProfileId> |
| 192 | <serverId>ecomp-staging</serverId> |
| 193 | </configuration> |
| 194 | </plugin> |
| 195 | <plugin> |
| 196 | <groupId>org.apache.maven.plugins</groupId> |
| 197 | <artifactId>maven-deploy-plugin</artifactId> |
| 198 | <configuration> |
| 199 | <skip /> |
| 200 | </configuration> |
| 201 | </plugin> |
| 202 | <plugin> |
| 203 | <groupId>org.apache.maven.plugins</groupId> |
| 204 | <artifactId>maven-site-plugin</artifactId> |
| 205 | <dependencies> |
| 206 | <dependency> |
| 207 | <groupId>org.apache.maven.wagon</groupId> |
| 208 | <artifactId>wagon-webdav-jackrabbit</artifactId> |
| 209 | <version>2.10</version> |
| 210 | </dependency> |
| 211 | </dependencies> |
| 212 | </plugin> |
Pamela Dragosh | f133be2 | 2018-08-22 14:02:14 -0400 | [diff] [blame] | 213 | <plugin> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 214 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 215 | <executions> |
| 216 | <execution> |
| 217 | <id>onap-java-style</id> |
| 218 | <goals> |
| 219 | <goal>check</goal> |
| 220 | </goals> |
| 221 | <phase>process-sources</phase> |
| 222 | <configuration> |
Pamela Dragosh | f133be2 | 2018-08-22 14:02:14 -0400 | [diff] [blame] | 223 | <!-- Use Google Java Style Guide: |
| 224 | https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 225 | with minor changes --> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 226 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
Pamela Dragosh | f133be2 | 2018-08-22 14:02:14 -0400 | [diff] [blame] | 227 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
Pamela Dragosh | af5e28c | 2018-09-21 12:48:29 -0400 | [diff] [blame] | 228 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 229 | <includeResources>true</includeResources> |
| 230 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 231 | <includeTestResources>true</includeTestResources> |
| 232 | <excludes> |
| 233 | </excludes> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 234 | <consoleOutput>true</consoleOutput> |
Pamela Dragosh | af5e28c | 2018-09-21 12:48:29 -0400 | [diff] [blame] | 235 | <failsOnViolation>true</failsOnViolation> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 236 | <violationSeverity>warning</violationSeverity> |
| 237 | </configuration> |
| 238 | </execution> |
| 239 | </executions> |
| 240 | <dependencies> |
| 241 | <dependency> |
| 242 | <groupId>org.onap.oparent</groupId> |
| 243 | <artifactId>checkstyle</artifactId> |
| 244 | <version>${oparent.version}</version> |
| 245 | <scope>compile</scope> |
| 246 | </dependency> |
| 247 | </dependencies> |
Pamela Dragosh | f133be2 | 2018-08-22 14:02:14 -0400 | [diff] [blame] | 248 | </plugin> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 249 | </plugins> |
| 250 | </build> |
| 251 | <reporting> |
| 252 | <plugins> |
| 253 | <plugin> |
| 254 | <groupId>org.apache.maven.plugins</groupId> |
| 255 | <artifactId>maven-javadoc-plugin</artifactId> |
| 256 | <version>2.10.4</version> |
| 257 | <configuration> |
| 258 | <failOnError>false</failOnError> |
| 259 | <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> |
| 260 | <docletArtifact> |
| 261 | <groupId>org.umlgraph</groupId> |
| 262 | <artifactId>umlgraph</artifactId> |
| 263 | <version>5.6</version> |
| 264 | </docletArtifact> |
| 265 | <additionalparam>-views</additionalparam> |
| 266 | <useStandardDocletOptions>true</useStandardDocletOptions> |
| 267 | </configuration> |
| 268 | </plugin> |
| 269 | </plugins> |
| 270 | </reporting> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 271 | </project> |