Pamela Dragosh | 1dccffb | 2018-02-16 10:29:09 -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 | e9fd35a | 2018-02-07 17:13:32 -0500 | [diff] [blame] | 5 | Copyright (C) 2017-2018 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. |
Pamela Dragosh | 1dccffb | 2018-02-16 10:29:09 -0500 | [diff] [blame] | 18 | ============LICENSE_END========================================================= |
| 19 | --> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 20 | |
| 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [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 | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 24 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 25 | <parent> |
liamfallon | 73ba803 | 2018-07-30 10:22:27 +0100 | [diff] [blame] | 26 | <groupId>org.onap.policy.parent</groupId> |
| 27 | <artifactId>integration</artifactId> |
| 28 | <version>2.0.0-SNAPSHOT</version> |
| 29 | <relativePath/> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 30 | </parent> |
Guo Ruijing | a790f40 | 2017-08-03 09:05:02 +0000 | [diff] [blame] | 31 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 32 | <groupId>org.onap.policy.common</groupId> |
| 33 | <artifactId>common-modules</artifactId> |
| 34 | <version>1.3.0-SNAPSHOT</version> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 35 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 36 | <packaging>pom</packaging> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 37 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 38 | <name>policy-common</name> |
| 39 | <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] | 40 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 41 | <properties> |
| 42 | <!-- Project common build settings --> |
| 43 | <maven.compiler.source>1.8</maven.compiler.source> |
| 44 | <maven.compiler.target>1.8</maven.compiler.target> |
| 45 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
Pamela Dragosh | 1dccffb | 2018-02-16 10:29:09 -0500 | [diff] [blame] | 46 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 47 | <!-- Project path properties --> |
| 48 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 49 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath> |
| 50 | <releases.path>content/repositories/releases/</releases.path> |
| 51 | <snapshots.path>content/repositories/snapshots/</snapshots.path> |
| 52 | <staging.path>content/repositories/staging/</staging.path> |
Pamela Dragosh | 1dccffb | 2018-02-16 10:29:09 -0500 | [diff] [blame] | 53 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 54 | <!-- sonar/jacoco overrides --> |
| 55 | <!-- Overriding oparent default sonar/jacoco settings Combine all |
| 56 | our reports into one file shared across sub-modules --> |
| 57 | <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 58 | <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 59 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> |
Pamela Dragosh | 1dccffb | 2018-02-16 10:29:09 -0500 | [diff] [blame] | 60 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 61 | <!-- Shared between policy/* project repositories - same version --> |
| 62 | <junit.version>4.12</junit.version> |
| 63 | <logback.version>1.2.3</logback.version> |
| 64 | <log4j.version>1.2.17</log4j.version> |
| 65 | <javax.persistence.version>2.1.0</javax.persistence.version> |
Pamela Dragosh | 29c8d90 | 2018-02-19 11:37:11 -0500 | [diff] [blame] | 66 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 67 | <!-- Shared between policy/* project repositories - different version --> |
| 68 | <eclipselink.version>2.6.0</eclipselink.version> |
| 69 | <mariadb.jdbc.version>1.2.3</mariadb.jdbc.version> |
| 70 | |
| 71 | <!-- Project common dependency versions --> |
| 72 | <javax.persistence.api.version>1.0.2</javax.persistence.api.version> |
| 73 | <h2.version>1.4.186</h2.version> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 74 | </properties> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 75 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 76 | <modules> |
| 77 | <module>capabilities</module> |
| 78 | <module>utils-test</module> |
| 79 | <module>utils</module> |
| 80 | <module>common-logging</module> |
liamfallon | 32c6ed6 | 2018-07-24 12:38:24 +0100 | [diff] [blame] | 81 | <module>common-parameters</module> |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 82 | <module>integrity-audit</module> |
| 83 | <module>integrity-monitor</module> |
| 84 | <module>policy-endpoints</module> |
| 85 | </modules> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 86 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 87 | <distributionManagement> |
| 88 | <site> |
| 89 | <id>ecomp-site</id> |
| 90 | <url>dav:${nexusproxy}${sitePath}</url> |
| 91 | </site> |
| 92 | </distributionManagement> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 93 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 94 | <dependencyManagement> |
| 95 | <dependencies> |
| 96 | <dependency> |
| 97 | <groupId>ch.qos.logback</groupId> |
| 98 | <artifactId>logback-classic</artifactId> |
| 99 | <version>${logback.version}</version> |
| 100 | </dependency> |
| 101 | <dependency> |
| 102 | <groupId>junit</groupId> |
| 103 | <artifactId>junit</artifactId> |
| 104 | <version>${junit.version}</version> |
| 105 | </dependency> |
| 106 | <dependency> |
| 107 | <groupId>log4j</groupId> |
| 108 | <artifactId>log4j</artifactId> |
| 109 | <version>${log4j.version}</version> |
| 110 | </dependency> |
| 111 | <dependency> |
| 112 | <groupId>com.h2database</groupId> |
| 113 | <artifactId>h2</artifactId> |
| 114 | <version>${h2.version}</version> |
| 115 | <scope>test</scope> |
| 116 | </dependency> |
| 117 | <dependency> |
| 118 | <groupId>org.eclipse.persistence</groupId> |
| 119 | <artifactId>javax.persistence</artifactId> |
| 120 | <version>${javax.persistence.version}</version> |
| 121 | </dependency> |
| 122 | <dependency> |
| 123 | <groupId>org.eclipse.persistence</groupId> |
| 124 | <artifactId>eclipselink</artifactId> |
| 125 | <version>${eclipselink.version}</version> |
| 126 | </dependency> |
| 127 | </dependencies> |
| 128 | </dependencyManagement> |
Pamela Dragosh | f391f8a | 2017-11-10 19:18:46 -0500 | [diff] [blame] | 129 | |
mmis | b40acf2 | 2018-07-20 15:28:25 +0100 | [diff] [blame] | 130 | <build> |
| 131 | <pluginManagement> |
| 132 | <plugins> |
| 133 | <plugin> |
| 134 | <groupId>org.jacoco</groupId> |
| 135 | <artifactId>jacoco-maven-plugin</artifactId> |
| 136 | <version>${jacoco.version}</version> |
| 137 | <configuration> |
| 138 | <!-- Note: This exclusion list should match <sonar.exclusions> |
| 139 | property above --> |
| 140 | <excludes> |
| 141 | <exclude>**/gen/**</exclude> |
| 142 | <exclude>**/generated-sources/**</exclude> |
| 143 | <exclude>**/yang-gen/**</exclude> |
| 144 | <exclude>**/pax/**</exclude> |
| 145 | </excludes> |
| 146 | </configuration> |
| 147 | <executions> |
| 148 | <!-- Prepares the property pointing to the JaCoCo |
| 149 | runtime agent which is passed as VM argument when Maven the Surefire plugin |
| 150 | is executed. --> |
| 151 | <execution> |
| 152 | <id>pre-unit-test</id> |
| 153 | <goals> |
| 154 | <goal>prepare-agent</goal> |
| 155 | </goals> |
| 156 | <configuration> |
| 157 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 158 | </configuration> |
| 159 | </execution> |
| 160 | <!-- Ensures that the code coverage report for unit |
| 161 | tests is created after unit tests have been run. --> |
| 162 | <execution> |
| 163 | <id>post-unit-test</id> |
| 164 | <phase>test</phase> |
| 165 | <goals> |
| 166 | <goal>report</goal> |
| 167 | </goals> |
| 168 | <configuration> |
| 169 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 170 | </configuration> |
| 171 | </execution> |
| 172 | </executions> |
| 173 | </plugin> |
| 174 | <plugin> |
| 175 | <groupId>org.eclipse.m2e</groupId> |
| 176 | <artifactId>lifecycle-mapping</artifactId> |
| 177 | <version>1.0.0</version> |
| 178 | <configuration> |
| 179 | <lifecycleMappingMetadata> |
| 180 | <pluginExecutions> |
| 181 | <pluginExecution> |
| 182 | <pluginExecutionFilter> |
| 183 | <groupId>org.apache.maven.plugins</groupId> |
| 184 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 185 | <versionRange>2.17,)</versionRange> |
| 186 | <goals> |
| 187 | <goal>check</goal> |
| 188 | </goals> |
| 189 | </pluginExecutionFilter> |
| 190 | <action> |
| 191 | <ignore /> |
| 192 | </action> |
| 193 | </pluginExecution> |
| 194 | </pluginExecutions> |
| 195 | </lifecycleMappingMetadata> |
| 196 | </configuration> |
| 197 | </plugin> |
| 198 | </plugins> |
| 199 | </pluginManagement> |
| 200 | <plugins> |
| 201 | <plugin> |
| 202 | <groupId>org.jacoco</groupId> |
| 203 | <artifactId>jacoco-maven-plugin</artifactId> |
| 204 | <executions> |
| 205 | <execution> |
| 206 | <id>pre-unit-test</id> |
| 207 | <goals> |
| 208 | <goal>prepare-agent</goal> |
| 209 | </goals> |
| 210 | <configuration> |
| 211 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 212 | <append>true</append> |
| 213 | </configuration> |
| 214 | </execution> |
| 215 | <execution> |
| 216 | <id>post-unit-test</id> |
| 217 | <phase>test</phase> |
| 218 | <goals> |
| 219 | <goal>report</goal> |
| 220 | </goals> |
| 221 | <configuration> |
| 222 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 223 | </configuration> |
| 224 | </execution> |
| 225 | </executions> |
| 226 | </plugin> |
| 227 | <plugin> |
| 228 | <groupId>org.sonatype.plugins</groupId> |
| 229 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 230 | <extensions>true</extensions> |
| 231 | <configuration> |
| 232 | <nexusUrl>${nexusproxy}</nexusUrl> |
| 233 | <stagingProfileId>176c31dfe190a</stagingProfileId> |
| 234 | <serverId>ecomp-staging</serverId> |
| 235 | </configuration> |
| 236 | </plugin> |
| 237 | <plugin> |
| 238 | <groupId>org.apache.maven.plugins</groupId> |
| 239 | <artifactId>maven-deploy-plugin</artifactId> |
| 240 | <configuration> |
| 241 | <skip /> |
| 242 | </configuration> |
| 243 | </plugin> |
| 244 | <plugin> |
| 245 | <groupId>org.apache.maven.plugins</groupId> |
| 246 | <artifactId>maven-site-plugin</artifactId> |
| 247 | <dependencies> |
| 248 | <dependency> |
| 249 | <groupId>org.apache.maven.wagon</groupId> |
| 250 | <artifactId>wagon-webdav-jackrabbit</artifactId> |
| 251 | <version>2.10</version> |
| 252 | </dependency> |
| 253 | </dependencies> |
| 254 | </plugin> |
| 255 | </plugins> |
| 256 | </build> |
| 257 | <reporting> |
| 258 | <plugins> |
| 259 | <plugin> |
| 260 | <groupId>org.apache.maven.plugins</groupId> |
| 261 | <artifactId>maven-javadoc-plugin</artifactId> |
| 262 | <version>2.10.4</version> |
| 263 | <configuration> |
| 264 | <failOnError>false</failOnError> |
| 265 | <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> |
| 266 | <docletArtifact> |
| 267 | <groupId>org.umlgraph</groupId> |
| 268 | <artifactId>umlgraph</artifactId> |
| 269 | <version>5.6</version> |
| 270 | </docletArtifact> |
| 271 | <additionalparam>-views</additionalparam> |
| 272 | <useStandardDocletOptions>true</useStandardDocletOptions> |
| 273 | </configuration> |
| 274 | </plugin> |
| 275 | </plugins> |
| 276 | </reporting> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 277 | </project> |