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 |
| 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 | |
| 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> |
Michael Mokry | ab1824d | 2019-02-13 10:34:48 -0600 | [diff] [blame] | 28 | <version>2.1.0-SNAPSHOT</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> |
Pamela Dragosh | bf593ec | 2018-10-25 13:59:35 -0400 | [diff] [blame] | 34 | <version>2.0.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> |
Michael Mokry | f239a66 | 2019-01-31 13:16:55 -0600 | [diff] [blame] | 47 | |
| 48 | <policy.common.version>1.4.0-SNAPSHOT</policy.common.version> |
Pamela Dragosh | 59c38b6 | 2019-03-15 14:30:00 -0400 | [diff] [blame] | 49 | <policy.models.version>2.0.0-SNAPSHOT</policy.models.version> |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 50 | </properties> |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 51 | |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 52 | <modules> |
Michael Mokry | f239a66 | 2019-01-31 13:16:55 -0600 | [diff] [blame] | 53 | <module>main</module> |
Pamela Dragosh | a026596 | 2019-03-03 19:01:08 -0500 | [diff] [blame] | 54 | <module>applications</module> |
Michael Mokry | ab1824d | 2019-02-13 10:34:48 -0600 | [diff] [blame] | 55 | <module>packages</module> |
Bilal A | abd92e4 | 2019-03-05 13:18:49 -0500 | [diff] [blame] | 56 | <module>testsuites</module> |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 57 | </modules> |
Michael Mokry | f239a66 | 2019-01-31 13:16:55 -0600 | [diff] [blame] | 58 | |
| 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> |
| 100 | <version>1.24</version> |
| 101 | </dependency> |
| 102 | <dependency> |
Pamela Dragosh | 2c847e0 | 2019-03-22 14:12:52 -0400 | [diff] [blame^] | 103 | <groupId>org.projectlombok</groupId> |
| 104 | <artifactId>lombok</artifactId> |
| 105 | </dependency> |
| 106 | <dependency> |
Pamela Dragosh | b909b14 | 2019-03-09 11:48:44 -0500 | [diff] [blame] | 107 | <groupId>org.json</groupId> |
| 108 | <artifactId>json</artifactId> |
| 109 | <version>20180813</version> |
| 110 | </dependency> |
| 111 | <dependency> |
Pamela Dragosh | 59c38b6 | 2019-03-15 14:30:00 -0400 | [diff] [blame] | 112 | <groupId>org.onap.policy.models</groupId> |
Pamela Dragosh | 2c847e0 | 2019-03-22 14:12:52 -0400 | [diff] [blame^] | 113 | <artifactId>policy-models-decisions</artifactId> |
Pamela Dragosh | 59c38b6 | 2019-03-15 14:30:00 -0400 | [diff] [blame] | 114 | <version>${policy.models.version}</version> |
| 115 | </dependency> |
| 116 | <dependency> |
| 117 | <groupId>org.onap.policy.models</groupId> |
| 118 | <artifactId>policy-models-tosca</artifactId> |
| 119 | <version>${policy.models.version}</version> |
| 120 | </dependency> |
Michael Mokry | f239a66 | 2019-01-31 13:16:55 -0600 | [diff] [blame] | 121 | </dependencies> |
| 122 | |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 123 | <distributionManagement> |
| 124 | <site> |
| 125 | <id>ecomp-site</id> |
| 126 | <url>dav:${nexusproxy}${sitePath}</url> |
| 127 | </site> |
| 128 | </distributionManagement> |
| 129 | |
| 130 | <build> |
| 131 | <plugins> |
| 132 | <plugin> |
| 133 | <groupId>org.jacoco</groupId> |
| 134 | <artifactId>jacoco-maven-plugin</artifactId> |
| 135 | <executions> |
| 136 | <execution> |
| 137 | <id>pre-unit-test</id> |
| 138 | <goals> |
| 139 | <goal>prepare-agent</goal> |
| 140 | </goals> |
| 141 | <configuration> |
| 142 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 143 | <append>true</append> |
| 144 | </configuration> |
| 145 | </execution> |
| 146 | <execution> |
| 147 | <id>post-unit-test</id> |
| 148 | <phase>test</phase> |
| 149 | <goals> |
| 150 | <goal>report</goal> |
| 151 | </goals> |
| 152 | <configuration> |
| 153 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 154 | </configuration> |
| 155 | </execution> |
| 156 | </executions> |
| 157 | </plugin> |
| 158 | <plugin> |
| 159 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 160 | <executions> |
| 161 | <execution> |
| 162 | <id>onap-java-style</id> |
| 163 | <goals> |
| 164 | <goal>check</goal> |
| 165 | </goals> |
| 166 | <phase>process-sources</phase> |
| 167 | <configuration> |
| 168 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 169 | with minor changes --> |
| 170 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 171 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
| 172 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 173 | <includeResources>true</includeResources> |
| 174 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 175 | <includeTestResources>true</includeTestResources> |
| 176 | <excludes> |
| 177 | </excludes> |
| 178 | <consoleOutput>true</consoleOutput> |
| 179 | <failOnViolation>true</failOnViolation> |
| 180 | <violationSeverity>warning</violationSeverity> |
| 181 | </configuration> |
| 182 | </execution> |
| 183 | </executions> |
| 184 | <dependencies> |
| 185 | <dependency> |
| 186 | <groupId>org.onap.oparent</groupId> |
| 187 | <artifactId>checkstyle</artifactId> |
| 188 | <version>${oparent.version}</version> |
| 189 | <scope>compile</scope> |
| 190 | </dependency> |
| 191 | </dependencies> |
| 192 | </plugin> |
| 193 | </plugins> |
| 194 | <pluginManagement> |
| 195 | <plugins> |
| 196 | <plugin> |
| 197 | <groupId>org.jacoco</groupId> |
| 198 | <artifactId>jacoco-maven-plugin</artifactId> |
| 199 | <version>${jacoco.version}</version> |
| 200 | <configuration> |
| 201 | <!-- Note: This exclusion list should match <sonar.exclusions> property above --> |
| 202 | <excludes> |
| 203 | <exclude>**/gen/**</exclude> |
| 204 | <exclude>**/generated-sources/**</exclude> |
| 205 | <exclude>**/yang-gen/**</exclude> |
| 206 | <exclude>**/pax/**</exclude> |
| 207 | </excludes> |
| 208 | </configuration> |
| 209 | <executions> |
| 210 | <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when |
| 211 | Maven the Surefire plugin is executed. --> |
| 212 | <execution> |
| 213 | <id>pre-unit-test</id> |
| 214 | <goals> |
| 215 | <goal>prepare-agent</goal> |
| 216 | </goals> |
| 217 | <configuration> |
| 218 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 219 | </configuration> |
| 220 | </execution> |
| 221 | <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> |
| 222 | <execution> |
| 223 | <id>post-unit-test</id> |
| 224 | <phase>test</phase> |
| 225 | <goals> |
| 226 | <goal>report</goal> |
| 227 | </goals> |
| 228 | <configuration> |
| 229 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 230 | </configuration> |
| 231 | </execution> |
| 232 | </executions> |
| 233 | </plugin> |
| 234 | <plugin> |
| 235 | <groupId>org.eclipse.m2e</groupId> |
| 236 | <artifactId>lifecycle-mapping</artifactId> |
| 237 | <version>1.0.0</version> |
| 238 | <configuration> |
| 239 | <lifecycleMappingMetadata> |
| 240 | <pluginExecutions> |
| 241 | <pluginExecution> |
| 242 | <pluginExecutionFilter> |
| 243 | <groupId>org.apache.maven.plugins</groupId> |
| 244 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 245 | <versionRange>2.17,)</versionRange> |
| 246 | <goals> |
| 247 | <goal>check</goal> |
| 248 | </goals> |
| 249 | </pluginExecutionFilter> |
| 250 | <action> |
| 251 | <ignore /> |
| 252 | </action> |
| 253 | </pluginExecution> |
| 254 | </pluginExecutions> |
| 255 | </lifecycleMappingMetadata> |
| 256 | </configuration> |
| 257 | </plugin> |
| 258 | </plugins> |
| 259 | </pluginManagement> |
| 260 | </build> |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 261 | </project> |