Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
Pamela Dragosh | d39c5e5 | 2018-05-23 11:47:11 -0400 | [diff] [blame] | 3 | ONAP Policy Engine - XACML PDP |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 4 | ================================================================================ |
Michael Mokry | f239a66 | 2019-01-31 13:16:55 -0600 | [diff] [blame] | 5 | Copyright (C) 2018-2019 AT&T Intellectual Property. All rights reserved. |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [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 |
Jim Hahn | 1df1c6a | 2019-09-12 16:05:18 -0400 | [diff] [blame] | 10 | |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 11 | http://www.apache.org/licenses/LICENSE-2.0 |
Jim Hahn | 1df1c6a | 2019-09-12 16:05:18 -0400 | [diff] [blame] | 12 | |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [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. |
| 18 | ============LICENSE_END========================================================= |
| 19 | --> |
| 20 | |
| 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 22 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 23 | <modelVersion>4.0.0</modelVersion> |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 24 | |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 25 | <parent> |
| 26 | <groupId>org.onap.policy.parent</groupId> |
| 27 | <artifactId>integration</artifactId> |
Pamela Dragosh | b79142f | 2019-09-09 19:47:56 -0400 | [diff] [blame] | 28 | <version>3.0.1</version> |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 29 | <relativePath /> |
| 30 | </parent> |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 31 | |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 32 | <groupId>org.onap.policy.xacml-pdp</groupId> |
| 33 | <artifactId>policy-xacml-pdp</artifactId> |
Jim Hahn | 88a247e | 2019-09-10 11:14:09 -0400 | [diff] [blame] | 34 | <version>2.2.0-SNAPSHOT</version> |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 35 | |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 36 | <packaging>pom</packaging> |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 37 | |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 38 | <name>policy-xacml-pdp</name> |
| 39 | <description>This code implements the XACML PDP engine</description> |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 40 | |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 41 | <properties> |
| 42 | <!-- sonar/jacoco overrides --> |
| 43 | <!-- Overriding oparent default sonar/jacoco settings Combine all our reports 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> |
Jim Hahn | 1df1c6a | 2019-09-12 16:05:18 -0400 | [diff] [blame] | 47 | <policy.common.version>1.6.0-SNAPSHOT</policy.common.version> |
Pamela Dragosh | 8d54e1d | 2019-09-13 12:12:45 -0400 | [diff] [blame] | 48 | <policy.models.version>2.2.0-SNAPSHOT</policy.models.version> |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 49 | </properties> |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 50 | |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 51 | <modules> |
Michael Mokry | f239a66 | 2019-01-31 13:16:55 -0600 | [diff] [blame] | 52 | <module>main</module> |
Pamela Dragosh | a026596 | 2019-03-03 19:01:08 -0500 | [diff] [blame] | 53 | <module>applications</module> |
Michael Mokry | ab1824d | 2019-02-13 10:34:48 -0600 | [diff] [blame] | 54 | <module>packages</module> |
Bilal A | abd92e4 | 2019-03-05 13:18:49 -0500 | [diff] [blame] | 55 | <module>testsuites</module> |
Ali Hockla | 6f14525 | 2019-10-01 18:42:04 -0500 | [diff] [blame^] | 56 | <module>xacml-test</module> |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 57 | </modules> |
Jim Hahn | 1df1c6a | 2019-09-12 16:05:18 -0400 | [diff] [blame] | 58 | |
Michael Mokry | f239a66 | 2019-01-31 13:16:55 -0600 | [diff] [blame] | 59 | <dependencies> |
| 60 | <dependency> |
| 61 | <groupId>junit</groupId> |
| 62 | <artifactId>junit</artifactId> |
| 63 | <scope>test</scope> |
| 64 | </dependency> |
| 65 | <dependency> |
Pamela Dragosh | a026596 | 2019-03-03 19:01:08 -0500 | [diff] [blame] | 66 | <groupId>io.cucumber</groupId> |
| 67 | <artifactId>cucumber-java</artifactId> |
| 68 | <scope>test</scope> |
| 69 | </dependency> |
| 70 | <dependency> |
| 71 | <groupId>io.cucumber</groupId> |
| 72 | <artifactId>cucumber-junit</artifactId> |
| 73 | <scope>test</scope> |
| 74 | </dependency> |
| 75 | <dependency> |
Michael Mokry | f239a66 | 2019-01-31 13:16:55 -0600 | [diff] [blame] | 76 | <groupId>org.assertj</groupId> |
| 77 | <artifactId>assertj-core</artifactId> |
Michael Mokry | f239a66 | 2019-01-31 13:16:55 -0600 | [diff] [blame] | 78 | <scope>test</scope> |
| 79 | </dependency> |
| 80 | <dependency> |
| 81 | <groupId>org.slf4j</groupId> |
| 82 | <artifactId>slf4j-ext</artifactId> |
| 83 | <version>1.8.0-beta2</version> |
| 84 | </dependency> |
| 85 | <dependency> |
| 86 | <groupId>org.slf4j</groupId> |
| 87 | <artifactId>slf4j-api</artifactId> |
| 88 | </dependency> |
| 89 | <dependency> |
| 90 | <groupId>ch.qos.logback</groupId> |
| 91 | <artifactId>logback-core</artifactId> |
| 92 | </dependency> |
| 93 | <dependency> |
| 94 | <groupId>ch.qos.logback</groupId> |
| 95 | <artifactId>logback-classic</artifactId> |
| 96 | </dependency> |
Pamela Dragosh | b909b14 | 2019-03-09 11:48:44 -0500 | [diff] [blame] | 97 | <dependency> |
| 98 | <groupId>org.yaml</groupId> |
| 99 | <artifactId>snakeyaml</artifactId> |
Pamela Dragosh | b909b14 | 2019-03-09 11:48:44 -0500 | [diff] [blame] | 100 | </dependency> |
| 101 | <dependency> |
Pamela Dragosh | 2c847e0 | 2019-03-22 14:12:52 -0400 | [diff] [blame] | 102 | <groupId>org.projectlombok</groupId> |
| 103 | <artifactId>lombok</artifactId> |
| 104 | </dependency> |
| 105 | <dependency> |
Pamela Dragosh | b909b14 | 2019-03-09 11:48:44 -0500 | [diff] [blame] | 106 | <groupId>org.json</groupId> |
| 107 | <artifactId>json</artifactId> |
| 108 | <version>20180813</version> |
| 109 | </dependency> |
| 110 | <dependency> |
Pamela Dragosh | 59c38b6 | 2019-03-15 14:30:00 -0400 | [diff] [blame] | 111 | <groupId>org.onap.policy.models</groupId> |
Pamela Dragosh | 2c847e0 | 2019-03-22 14:12:52 -0400 | [diff] [blame] | 112 | <artifactId>policy-models-decisions</artifactId> |
Pamela Dragosh | 59c38b6 | 2019-03-15 14:30:00 -0400 | [diff] [blame] | 113 | <version>${policy.models.version}</version> |
Michael Mokry | 5dd6d16 | 2019-04-02 07:33:28 -0500 | [diff] [blame] | 114 | </dependency> |
Pamela Dragosh | 59c38b6 | 2019-03-15 14:30:00 -0400 | [diff] [blame] | 115 | <dependency> |
| 116 | <groupId>org.onap.policy.models</groupId> |
| 117 | <artifactId>policy-models-tosca</artifactId> |
| 118 | <version>${policy.models.version}</version> |
Michael Mokry | 5dd6d16 | 2019-04-02 07:33:28 -0500 | [diff] [blame] | 119 | </dependency> |
Michael Mokry | f239a66 | 2019-01-31 13:16:55 -0600 | [diff] [blame] | 120 | </dependencies> |
Jim Hahn | 1df1c6a | 2019-09-12 16:05:18 -0400 | [diff] [blame] | 121 | |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 122 | <distributionManagement> |
| 123 | <site> |
| 124 | <id>ecomp-site</id> |
| 125 | <url>dav:${nexusproxy}${sitePath}</url> |
| 126 | </site> |
| 127 | </distributionManagement> |
| 128 | |
| 129 | <build> |
| 130 | <plugins> |
| 131 | <plugin> |
| 132 | <groupId>org.jacoco</groupId> |
| 133 | <artifactId>jacoco-maven-plugin</artifactId> |
| 134 | <executions> |
| 135 | <execution> |
| 136 | <id>pre-unit-test</id> |
| 137 | <goals> |
| 138 | <goal>prepare-agent</goal> |
| 139 | </goals> |
| 140 | <configuration> |
| 141 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 142 | <append>true</append> |
| 143 | </configuration> |
| 144 | </execution> |
| 145 | <execution> |
| 146 | <id>post-unit-test</id> |
| 147 | <phase>test</phase> |
| 148 | <goals> |
| 149 | <goal>report</goal> |
| 150 | </goals> |
| 151 | <configuration> |
| 152 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 153 | </configuration> |
| 154 | </execution> |
| 155 | </executions> |
| 156 | </plugin> |
| 157 | <plugin> |
| 158 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 159 | <executions> |
| 160 | <execution> |
| 161 | <id>onap-java-style</id> |
| 162 | <goals> |
| 163 | <goal>check</goal> |
| 164 | </goals> |
| 165 | <phase>process-sources</phase> |
| 166 | <configuration> |
Jim Hahn | 1df1c6a | 2019-09-12 16:05:18 -0400 | [diff] [blame] | 167 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 168 | with minor changes --> |
| 169 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 170 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
| 171 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 172 | <includeResources>true</includeResources> |
| 173 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 174 | <includeTestResources>true</includeTestResources> |
| 175 | <excludes> |
| 176 | </excludes> |
| 177 | <consoleOutput>true</consoleOutput> |
| 178 | <failOnViolation>true</failOnViolation> |
| 179 | <violationSeverity>warning</violationSeverity> |
| 180 | </configuration> |
| 181 | </execution> |
| 182 | </executions> |
| 183 | <dependencies> |
| 184 | <dependency> |
| 185 | <groupId>org.onap.oparent</groupId> |
| 186 | <artifactId>checkstyle</artifactId> |
| 187 | <version>${oparent.version}</version> |
| 188 | <scope>compile</scope> |
| 189 | </dependency> |
| 190 | </dependencies> |
| 191 | </plugin> |
| 192 | </plugins> |
| 193 | <pluginManagement> |
| 194 | <plugins> |
| 195 | <plugin> |
| 196 | <groupId>org.jacoco</groupId> |
| 197 | <artifactId>jacoco-maven-plugin</artifactId> |
| 198 | <version>${jacoco.version}</version> |
| 199 | <configuration> |
| 200 | <!-- Note: This exclusion list should match <sonar.exclusions> property above --> |
| 201 | <excludes> |
| 202 | <exclude>**/gen/**</exclude> |
| 203 | <exclude>**/generated-sources/**</exclude> |
| 204 | <exclude>**/yang-gen/**</exclude> |
| 205 | <exclude>**/pax/**</exclude> |
| 206 | </excludes> |
| 207 | </configuration> |
| 208 | <executions> |
Jim Hahn | 1df1c6a | 2019-09-12 16:05:18 -0400 | [diff] [blame] | 209 | <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 210 | Maven the Surefire plugin is executed. --> |
| 211 | <execution> |
| 212 | <id>pre-unit-test</id> |
| 213 | <goals> |
| 214 | <goal>prepare-agent</goal> |
| 215 | </goals> |
| 216 | <configuration> |
| 217 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 218 | </configuration> |
| 219 | </execution> |
| 220 | <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> |
| 221 | <execution> |
| 222 | <id>post-unit-test</id> |
| 223 | <phase>test</phase> |
| 224 | <goals> |
| 225 | <goal>report</goal> |
| 226 | </goals> |
| 227 | <configuration> |
| 228 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 229 | </configuration> |
| 230 | </execution> |
| 231 | </executions> |
| 232 | </plugin> |
| 233 | <plugin> |
| 234 | <groupId>org.eclipse.m2e</groupId> |
| 235 | <artifactId>lifecycle-mapping</artifactId> |
| 236 | <version>1.0.0</version> |
| 237 | <configuration> |
| 238 | <lifecycleMappingMetadata> |
| 239 | <pluginExecutions> |
| 240 | <pluginExecution> |
| 241 | <pluginExecutionFilter> |
| 242 | <groupId>org.apache.maven.plugins</groupId> |
| 243 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 244 | <versionRange>2.17,)</versionRange> |
| 245 | <goals> |
| 246 | <goal>check</goal> |
| 247 | </goals> |
| 248 | </pluginExecutionFilter> |
| 249 | <action> |
| 250 | <ignore /> |
| 251 | </action> |
| 252 | </pluginExecution> |
| 253 | </pluginExecutions> |
| 254 | </lifecycleMappingMetadata> |
| 255 | </configuration> |
| 256 | </plugin> |
| 257 | </plugins> |
| 258 | </pluginManagement> |
| 259 | </build> |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 260 | </project> |