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> |
Pamela Dragosh | 31e75e4 | 2019-06-20 16:07:38 -0400 | [diff] [blame] | 27 | <version>3.0.0</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> |
Pamela Dragosh | 62463da | 2019-06-21 09:08:00 -0400 | [diff] [blame] | 33 | <version>1.5.1-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> |
Pamela Dragosh | b7e2a77 | 2019-03-20 01:04:47 +0000 | [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> |
| 75 | </modules> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 76 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 77 | <dependencyManagement> |
| 78 | <dependencies> |
| 79 | <dependency> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 80 | <groupId>org.apache.commons</groupId> |
| 81 | <artifactId>commons-lang3</artifactId> |
| 82 | <version>${commons-lang3.version}</version> |
| 83 | </dependency> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 84 | </dependencies> |
| 85 | </dependencyManagement> |
Pamela Dragosh | f391f8a | 2017-11-10 19:18:46 -0500 | [diff] [blame] | 86 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 87 | <build> |
| 88 | <pluginManagement> |
| 89 | <plugins> |
| 90 | <plugin> |
| 91 | <groupId>org.jacoco</groupId> |
| 92 | <artifactId>jacoco-maven-plugin</artifactId> |
| 93 | <version>${jacoco.version}</version> |
| 94 | <configuration> |
Jim Hahn | 4ec725e | 2019-02-06 13:14:57 -0500 | [diff] [blame] | 95 | <!-- Note: This exclusion list should match <sonar.exclusions> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 96 | property above --> |
| 97 | <excludes> |
| 98 | <exclude>**/gen/**</exclude> |
| 99 | <exclude>**/generated-sources/**</exclude> |
| 100 | <exclude>**/yang-gen/**</exclude> |
| 101 | <exclude>**/pax/**</exclude> |
| 102 | </excludes> |
| 103 | </configuration> |
| 104 | <executions> |
Jim Hahn | 4ec725e | 2019-02-06 13:14:57 -0500 | [diff] [blame] | 105 | <!-- Prepares the property pointing to the JaCoCo |
| 106 | runtime agent which is passed as VM argument when Maven the Surefire plugin |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 107 | is executed. --> |
| 108 | <execution> |
| 109 | <id>pre-unit-test</id> |
| 110 | <goals> |
| 111 | <goal>prepare-agent</goal> |
| 112 | </goals> |
| 113 | <configuration> |
| 114 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 115 | </configuration> |
| 116 | </execution> |
Jim Hahn | 4ec725e | 2019-02-06 13:14:57 -0500 | [diff] [blame] | 117 | <!-- Ensures that the code coverage report for unit |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 118 | tests is created after unit tests have been run. --> |
| 119 | <execution> |
| 120 | <id>post-unit-test</id> |
| 121 | <phase>test</phase> |
| 122 | <goals> |
| 123 | <goal>report</goal> |
| 124 | </goals> |
| 125 | <configuration> |
| 126 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 127 | </configuration> |
| 128 | </execution> |
| 129 | </executions> |
| 130 | </plugin> |
| 131 | <plugin> |
| 132 | <groupId>org.eclipse.m2e</groupId> |
| 133 | <artifactId>lifecycle-mapping</artifactId> |
| 134 | <version>1.0.0</version> |
| 135 | <configuration> |
| 136 | <lifecycleMappingMetadata> |
| 137 | <pluginExecutions> |
| 138 | <pluginExecution> |
| 139 | <pluginExecutionFilter> |
| 140 | <groupId>org.apache.maven.plugins</groupId> |
| 141 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 142 | <versionRange>2.17,)</versionRange> |
| 143 | <goals> |
| 144 | <goal>check</goal> |
| 145 | </goals> |
| 146 | </pluginExecutionFilter> |
| 147 | <action> |
| 148 | <ignore /> |
| 149 | </action> |
| 150 | </pluginExecution> |
| 151 | </pluginExecutions> |
| 152 | </lifecycleMappingMetadata> |
| 153 | </configuration> |
| 154 | </plugin> |
| 155 | </plugins> |
| 156 | </pluginManagement> |
| 157 | <plugins> |
| 158 | <plugin> |
| 159 | <groupId>org.jacoco</groupId> |
| 160 | <artifactId>jacoco-maven-plugin</artifactId> |
| 161 | <executions> |
| 162 | <execution> |
| 163 | <id>pre-unit-test</id> |
| 164 | <goals> |
| 165 | <goal>prepare-agent</goal> |
| 166 | </goals> |
| 167 | <configuration> |
| 168 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 169 | <append>true</append> |
| 170 | </configuration> |
| 171 | </execution> |
| 172 | <execution> |
| 173 | <id>post-unit-test</id> |
| 174 | <phase>test</phase> |
| 175 | <goals> |
| 176 | <goal>report</goal> |
| 177 | </goals> |
| 178 | <configuration> |
| 179 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 180 | </configuration> |
| 181 | </execution> |
| 182 | </executions> |
| 183 | </plugin> |
| 184 | <plugin> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 185 | <groupId>org.apache.maven.plugins</groupId> |
| 186 | <artifactId>maven-deploy-plugin</artifactId> |
| 187 | <configuration> |
| 188 | <skip /> |
| 189 | </configuration> |
| 190 | </plugin> |
| 191 | <plugin> |
| 192 | <groupId>org.apache.maven.plugins</groupId> |
| 193 | <artifactId>maven-site-plugin</artifactId> |
| 194 | <dependencies> |
| 195 | <dependency> |
| 196 | <groupId>org.apache.maven.wagon</groupId> |
| 197 | <artifactId>wagon-webdav-jackrabbit</artifactId> |
| 198 | <version>2.10</version> |
| 199 | </dependency> |
| 200 | </dependencies> |
| 201 | </plugin> |
Pamela Dragosh | f133be2 | 2018-08-22 14:02:14 -0400 | [diff] [blame] | 202 | <plugin> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 203 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 204 | <executions> |
| 205 | <execution> |
| 206 | <id>onap-java-style</id> |
| 207 | <goals> |
| 208 | <goal>check</goal> |
| 209 | </goals> |
| 210 | <phase>process-sources</phase> |
| 211 | <configuration> |
Pamela Dragosh | f133be2 | 2018-08-22 14:02:14 -0400 | [diff] [blame] | 212 | <!-- Use Google Java Style Guide: |
| 213 | https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 214 | with minor changes --> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 215 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
Pamela Dragosh | f133be2 | 2018-08-22 14:02:14 -0400 | [diff] [blame] | 216 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
Pamela Dragosh | af5e28c | 2018-09-21 12:48:29 -0400 | [diff] [blame] | 217 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 218 | <includeResources>true</includeResources> |
| 219 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 220 | <includeTestResources>true</includeTestResources> |
| 221 | <excludes> |
| 222 | </excludes> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 223 | <consoleOutput>true</consoleOutput> |
Pamela Dragosh | af5e28c | 2018-09-21 12:48:29 -0400 | [diff] [blame] | 224 | <failsOnViolation>true</failsOnViolation> |
liamfallon | cf282dd | 2018-09-07 13:36:41 +0100 | [diff] [blame] | 225 | <violationSeverity>warning</violationSeverity> |
| 226 | </configuration> |
| 227 | </execution> |
| 228 | </executions> |
| 229 | <dependencies> |
| 230 | <dependency> |
| 231 | <groupId>org.onap.oparent</groupId> |
| 232 | <artifactId>checkstyle</artifactId> |
| 233 | <version>${oparent.version}</version> |
| 234 | <scope>compile</scope> |
| 235 | </dependency> |
| 236 | </dependencies> |
Pamela Dragosh | f133be2 | 2018-08-22 14:02:14 -0400 | [diff] [blame] | 237 | </plugin> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 238 | </plugins> |
| 239 | </build> |
| 240 | <reporting> |
| 241 | <plugins> |
| 242 | <plugin> |
| 243 | <groupId>org.apache.maven.plugins</groupId> |
| 244 | <artifactId>maven-javadoc-plugin</artifactId> |
| 245 | <version>2.10.4</version> |
| 246 | <configuration> |
| 247 | <failOnError>false</failOnError> |
| 248 | <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> |
| 249 | <docletArtifact> |
| 250 | <groupId>org.umlgraph</groupId> |
| 251 | <artifactId>umlgraph</artifactId> |
| 252 | <version>5.6</version> |
| 253 | </docletArtifact> |
| 254 | <additionalparam>-views</additionalparam> |
| 255 | <useStandardDocletOptions>true</useStandardDocletOptions> |
| 256 | </configuration> |
| 257 | </plugin> |
| 258 | </plugins> |
| 259 | </reporting> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 260 | </project> |