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 | 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> |
Michael Mokry | ab1824d | 2019-02-13 10:34:48 -0600 | [diff] [blame] | 53 | <module>packages</module> |
Bilal A | abd92e4 | 2019-03-05 13:18:49 -0500 | [diff] [blame^] | 54 | <module>testsuites</module> |
Pamela Dragosh | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 55 | </modules> |
Michael Mokry | f239a66 | 2019-01-31 13:16:55 -0600 | [diff] [blame] | 56 | |
| 57 | <dependencies> |
| 58 | <dependency> |
| 59 | <groupId>junit</groupId> |
| 60 | <artifactId>junit</artifactId> |
| 61 | <scope>test</scope> |
| 62 | </dependency> |
| 63 | <dependency> |
| 64 | <groupId>org.assertj</groupId> |
| 65 | <artifactId>assertj-core</artifactId> |
Michael Mokry | f239a66 | 2019-01-31 13:16:55 -0600 | [diff] [blame] | 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 | 1f9897d | 2018-09-25 09:27:15 -0400 | [diff] [blame] | 87 | <distributionManagement> |
| 88 | <site> |
| 89 | <id>ecomp-site</id> |
| 90 | <url>dav:${nexusproxy}${sitePath}</url> |
| 91 | </site> |
| 92 | </distributionManagement> |
| 93 | |
| 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> |
| 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: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 133 | with minor changes --> |
| 134 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 135 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
| 136 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 137 | <includeResources>true</includeResources> |
| 138 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 139 | <includeTestResources>true</includeTestResources> |
| 140 | <excludes> |
| 141 | </excludes> |
| 142 | <consoleOutput>true</consoleOutput> |
| 143 | <failOnViolation>true</failOnViolation> |
| 144 | <violationSeverity>warning</violationSeverity> |
| 145 | </configuration> |
| 146 | </execution> |
| 147 | </executions> |
| 148 | <dependencies> |
| 149 | <dependency> |
| 150 | <groupId>org.onap.oparent</groupId> |
| 151 | <artifactId>checkstyle</artifactId> |
| 152 | <version>${oparent.version}</version> |
| 153 | <scope>compile</scope> |
| 154 | </dependency> |
| 155 | </dependencies> |
| 156 | </plugin> |
| 157 | </plugins> |
| 158 | <pluginManagement> |
| 159 | <plugins> |
| 160 | <plugin> |
| 161 | <groupId>org.jacoco</groupId> |
| 162 | <artifactId>jacoco-maven-plugin</artifactId> |
| 163 | <version>${jacoco.version}</version> |
| 164 | <configuration> |
| 165 | <!-- Note: This exclusion list should match <sonar.exclusions> property above --> |
| 166 | <excludes> |
| 167 | <exclude>**/gen/**</exclude> |
| 168 | <exclude>**/generated-sources/**</exclude> |
| 169 | <exclude>**/yang-gen/**</exclude> |
| 170 | <exclude>**/pax/**</exclude> |
| 171 | </excludes> |
| 172 | </configuration> |
| 173 | <executions> |
| 174 | <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when |
| 175 | Maven the Surefire plugin is executed. --> |
| 176 | <execution> |
| 177 | <id>pre-unit-test</id> |
| 178 | <goals> |
| 179 | <goal>prepare-agent</goal> |
| 180 | </goals> |
| 181 | <configuration> |
| 182 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 183 | </configuration> |
| 184 | </execution> |
| 185 | <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> |
| 186 | <execution> |
| 187 | <id>post-unit-test</id> |
| 188 | <phase>test</phase> |
| 189 | <goals> |
| 190 | <goal>report</goal> |
| 191 | </goals> |
| 192 | <configuration> |
| 193 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 194 | </configuration> |
| 195 | </execution> |
| 196 | </executions> |
| 197 | </plugin> |
| 198 | <plugin> |
| 199 | <groupId>org.eclipse.m2e</groupId> |
| 200 | <artifactId>lifecycle-mapping</artifactId> |
| 201 | <version>1.0.0</version> |
| 202 | <configuration> |
| 203 | <lifecycleMappingMetadata> |
| 204 | <pluginExecutions> |
| 205 | <pluginExecution> |
| 206 | <pluginExecutionFilter> |
| 207 | <groupId>org.apache.maven.plugins</groupId> |
| 208 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 209 | <versionRange>2.17,)</versionRange> |
| 210 | <goals> |
| 211 | <goal>check</goal> |
| 212 | </goals> |
| 213 | </pluginExecutionFilter> |
| 214 | <action> |
| 215 | <ignore /> |
| 216 | </action> |
| 217 | </pluginExecution> |
| 218 | </pluginExecutions> |
| 219 | </lifecycleMappingMetadata> |
| 220 | </configuration> |
| 221 | </plugin> |
| 222 | </plugins> |
| 223 | </pluginManagement> |
| 224 | </build> |
Pamela Dragosh | 51cc373 | 2018-05-23 08:38:45 -0400 | [diff] [blame] | 225 | </project> |