Pamela Dragosh | bcdb1e1 | 2018-02-07 15:41:30 -0500 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ONAP Policy Engine |
| 4 | ================================================================================ |
| 5 | Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. |
| 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 | --> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 20 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 21 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | |
Guo Ruijing | e938284 | 2017-08-03 11:44:10 +0000 | [diff] [blame] | 24 | <parent> |
| 25 | <groupId>org.onap.oparent</groupId> |
| 26 | <artifactId>oparent</artifactId> |
liamfallon | 45fe54d | 2018-03-14 22:25:08 +0000 | [diff] [blame^] | 27 | <version>1.1.0</version> |
Guo Ruijing | e938284 | 2017-08-03 11:44:10 +0000 | [diff] [blame] | 28 | <relativePath/> |
| 29 | </parent> |
| 30 | |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 31 | <groupId>org.onap.policy.engine</groupId> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 32 | <artifactId>PolicyEngineSuite</artifactId> |
Jessica Wagantall | db597fe | 2017-11-18 18:50:29 -0800 | [diff] [blame] | 33 | <version>1.2.0-SNAPSHOT</version> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 34 | <packaging>pom</packaging> |
Jessica Wagantall | 9440ed7 | 2017-09-08 14:55:14 -0700 | [diff] [blame] | 35 | <name>policy-engine</name> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 36 | |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 37 | <description>The ONAP Policy Engine main pom</description> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 38 | |
| 39 | <properties> |
Pamela Dragosh | eb6547d | 2018-02-16 11:18:09 -0500 | [diff] [blame] | 40 | <!-- Project common build settings --> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 41 | <project.source.version>1.8</project.source.version> |
| 42 | <project.target.version>1.8</project.target.version> |
| 43 | <project.encoding>UTF-8</project.encoding> |
Pamela Dragosh | eb6547d | 2018-02-16 11:18:09 -0500 | [diff] [blame] | 44 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 45 | <!-- Project path properties --> |
Pamela Dragosh | ae8d775 | 2017-03-30 09:35:18 -0400 | [diff] [blame] | 46 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
Pamela Dragosh | e1dcfc5 | 2017-04-06 11:06:34 -0400 | [diff] [blame] | 47 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath> |
Anaël Closson | 98fe6d8 | 2017-04-12 11:10:10 +0200 | [diff] [blame] | 48 | <releases.path>content/repositories/releases/</releases.path> |
| 49 | <snapshots.path>content/repositories/snapshots/</snapshots.path> |
| 50 | <staging.path>content/repositories/staging/</staging.path> |
Pamela Dragosh | eb6547d | 2018-02-16 11:18:09 -0500 | [diff] [blame] | 51 | |
| 52 | <!-- sonar/jacoco overrides --> |
| 53 | <!-- Overriding oparent default sonar/jacoco settings Combine all our reports |
| 54 | into one file shared across sub-modules --> |
| 55 | <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 56 | <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 57 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> |
| 58 | |
Pamela Dragosh | b2c2186 | 2018-02-20 13:36:48 -0500 | [diff] [blame] | 59 | <!-- |
| 60 | Shared between policy/* project repositories - same version |
| 61 | --> |
| 62 | <h2.version>1.4.186</h2.version> |
| 63 | |
| 64 | <!-- |
| 65 | Shared between policy/* project repositories - different version |
| 66 | --> |
| 67 | |
Pamela Dragosh | eb6547d | 2018-02-16 11:18:09 -0500 | [diff] [blame] | 68 | <!-- Project common dependency versions --> |
| 69 | <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version> |
Pamela Dragosh | fa1e3fb | 2018-03-14 08:19:35 -0400 | [diff] [blame] | 70 | <dmaap.version>1.1.3</dmaap.version> |
Pamela Dragosh | bcdb1e1 | 2018-02-07 15:41:30 -0500 | [diff] [blame] | 71 | <httpclient.version>4.5.5</httpclient.version> |
Pamela Dragosh | 82640b2 | 2018-02-08 11:09:31 -0500 | [diff] [blame] | 72 | <jackson.version>2.9.4</jackson.version> |
Pamela Dragosh | bcdb1e1 | 2018-02-07 15:41:30 -0500 | [diff] [blame] | 73 | <commons.fileupload.version>1.3.3</commons.fileupload.version> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 74 | </properties> |
| 75 | |
| 76 | |
| 77 | <modules> |
ITSERVICES\rb7147 | e0addf5 | 2017-04-25 11:46:00 -0400 | [diff] [blame] | 78 | <module>PolicyEngineUtils</module> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 79 | <module>ONAP-XACML</module> |
| 80 | <module>ONAP-REST</module> |
ITSERVICES\rb7147 | e0addf5 | 2017-04-25 11:46:00 -0400 | [diff] [blame] | 81 | <module>PolicyEngineAPI</module> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 82 | <module>ONAP-PDP</module> |
| 83 | <module>ONAP-PDP-REST</module> |
| 84 | <module>ONAP-PAP-REST</module> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 85 | <module>LogParser</module> |
| 86 | <module>PolicyEngineClient</module> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 87 | <module>BRMSGateway</module> |
ITSERVICES\rb7147 | e0addf5 | 2017-04-25 11:46:00 -0400 | [diff] [blame] | 88 | <module>POLICY-SDK-APP</module> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 89 | <module>ONAP-SDK-APP</module> |
Pamela Dragosh | c293854 | 2017-02-20 16:30:10 -0500 | [diff] [blame] | 90 | <module>packages</module> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 91 | </modules> |
| 92 | |
Pamela Dragosh | 2a66a1b | 2017-02-15 15:33:14 -0500 | [diff] [blame] | 93 | <distributionManagement> |
| 94 | <repository> |
| 95 | <id>ecomp-releases</id> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 96 | <name>ONAP Release Repository</name> |
Anaël Closson | 98fe6d8 | 2017-04-12 11:10:10 +0200 | [diff] [blame] | 97 | <url>${nexusproxy}/${releases.path}</url> |
Pamela Dragosh | 2a66a1b | 2017-02-15 15:33:14 -0500 | [diff] [blame] | 98 | </repository> |
| 99 | <snapshotRepository> |
| 100 | <id>ecomp-snapshots</id> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 101 | <name>ONAP Snapshot Repository</name> |
Anaël Closson | 98fe6d8 | 2017-04-12 11:10:10 +0200 | [diff] [blame] | 102 | <url>${nexusproxy}/${snapshots.path}</url> |
Pamela Dragosh | 2a66a1b | 2017-02-15 15:33:14 -0500 | [diff] [blame] | 103 | </snapshotRepository> |
Pamela Dragosh | 0cd5435 | 2017-04-03 10:51:20 -0400 | [diff] [blame] | 104 | <site> |
| 105 | <id>ecomp-site</id> |
| 106 | <url>dav:${nexusproxy}${sitePath}</url> |
| 107 | </site> |
Pamela Dragosh | 2a66a1b | 2017-02-15 15:33:14 -0500 | [diff] [blame] | 108 | </distributionManagement> |
| 109 | |
Pamela Dragosh | 0cd5435 | 2017-04-03 10:51:20 -0400 | [diff] [blame] | 110 | <reporting> |
| 111 | <plugins> |
| 112 | <plugin> |
| 113 | <groupId>org.apache.maven.plugins</groupId> |
| 114 | <artifactId>maven-javadoc-plugin</artifactId> |
| 115 | <version>2.10.4</version> |
| 116 | <configuration> |
| 117 | <failOnError>false</failOnError> |
| 118 | <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> |
| 119 | <docletArtifact> |
| 120 | <groupId>org.umlgraph</groupId> |
| 121 | <artifactId>umlgraph</artifactId> |
| 122 | <version>5.6</version> |
| 123 | </docletArtifact> |
| 124 | <additionalparam>-views</additionalparam> |
| 125 | <useStandardDocletOptions>true</useStandardDocletOptions> |
| 126 | </configuration> |
| 127 | </plugin> |
| 128 | </plugins> |
| 129 | </reporting> |
| 130 | |
Pamela Dragosh | b2c2186 | 2018-02-20 13:36:48 -0500 | [diff] [blame] | 131 | <dependencyManagement> |
| 132 | <dependencies> |
| 133 | <dependency> |
| 134 | <groupId>com.h2database</groupId> |
| 135 | <artifactId>h2</artifactId> |
| 136 | <version>${h2.version}</version> |
| 137 | <scope>test</scope> |
| 138 | </dependency> |
| 139 | </dependencies> |
| 140 | </dependencyManagement> |
| 141 | |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 142 | <dependencies> |
| 143 | |
| 144 | <dependency> |
| 145 | <groupId>javax.servlet</groupId> |
| 146 | <artifactId>javax.servlet-api</artifactId> |
ITSERVICES\rb7147 | e0addf5 | 2017-04-25 11:46:00 -0400 | [diff] [blame] | 147 | <version>3.1.0</version> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 148 | </dependency> |
| 149 | <dependency> |
| 150 | <!-- org.w3c.dom dependencies --> |
| 151 | <groupId>xml-apis</groupId> |
| 152 | <artifactId>xml-apis</artifactId> |
| 153 | <version>1.3.03</version> |
| 154 | </dependency> |
| 155 | </dependencies> |
| 156 | |
| 157 | <build> |
| 158 | <plugins> |
| 159 | <plugin> |
Pamela Dragosh | eb6547d | 2018-02-16 11:18:09 -0500 | [diff] [blame] | 160 | <groupId>org.jacoco</groupId> |
| 161 | <artifactId>jacoco-maven-plugin</artifactId> |
| 162 | <executions> |
| 163 | <execution> |
| 164 | <id>pre-unit-test</id> |
| 165 | <goals> |
| 166 | <goal>prepare-agent</goal> |
| 167 | </goals> |
| 168 | <configuration> |
| 169 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 170 | <append>true</append> |
| 171 | </configuration> |
| 172 | </execution> |
| 173 | <execution> |
| 174 | <id>post-unit-test</id> |
| 175 | <phase>test</phase> |
| 176 | <goals> |
| 177 | <goal>report</goal> |
| 178 | </goals> |
| 179 | <configuration> |
| 180 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 181 | </configuration> |
| 182 | </execution> |
| 183 | </executions> |
| 184 | </plugin> |
| 185 | <plugin> |
Pamela Dragosh | 6a65705 | 2017-02-17 15:41:18 -0500 | [diff] [blame] | 186 | <groupId>org.sonatype.plugins</groupId> |
| 187 | <artifactId>nexus-staging-maven-plugin</artifactId> |
Pamela Dragosh | 6a65705 | 2017-02-17 15:41:18 -0500 | [diff] [blame] | 188 | <extensions>true</extensions> |
| 189 | <configuration> |
| 190 | <nexusUrl>${nexusproxy}</nexusUrl> |
| 191 | <stagingProfileId>176c31dfe190a</stagingProfileId> |
Pamela Dragosh | 5497a61 | 2017-07-31 21:30:18 -0400 | [diff] [blame] | 192 | <serverId>ecomp-staging</serverId> |
Pamela Dragosh | 6a65705 | 2017-02-17 15:41:18 -0500 | [diff] [blame] | 193 | </configuration> |
| 194 | </plugin> |
| 195 | <plugin> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 196 | <groupId>org.apache.maven.plugins</groupId> |
| 197 | <artifactId>maven-deploy-plugin</artifactId> |
Pamela Dragosh | 6a65705 | 2017-02-17 15:41:18 -0500 | [diff] [blame] | 198 | <configuration> |
| 199 | <skip /> |
| 200 | </configuration> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 201 | </plugin> |
| 202 | <plugin> |
| 203 | <groupId>org.apache.maven.plugins</groupId> |
| 204 | <artifactId>maven-surefire-plugin</artifactId> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 205 | </plugin> |
| 206 | <plugin> |
| 207 | <groupId>org.apache.maven.plugins</groupId> |
| 208 | <artifactId>maven-clean-plugin</artifactId> |
| 209 | <version>2.4.1</version> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 210 | </plugin> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 211 | <plugin> |
| 212 | <groupId>org.apache.maven.plugins</groupId> |
| 213 | <artifactId>maven-compiler-plugin</artifactId> |
| 214 | <version>3.0</version> |
| 215 | <configuration> |
| 216 | <encoding>${project.encoding}</encoding> |
| 217 | <source>${project.source.version}</source> |
| 218 | <target>${project.target.version}</target> |
| 219 | </configuration> |
| 220 | </plugin> |
| 221 | <plugin> |
| 222 | <groupId>org.apache.maven.plugins</groupId> |
| 223 | <artifactId>maven-resources-plugin</artifactId> |
| 224 | <version>2.6</version> |
| 225 | <configuration> |
| 226 | <encoding>${project.encoding}</encoding> |
| 227 | </configuration> |
| 228 | </plugin> |
| 229 | <plugin> |
| 230 | <groupId>org.apache.maven.plugins</groupId> |
| 231 | <artifactId>maven-war-plugin</artifactId> |
| 232 | <version>2.3</version> |
| 233 | <configuration> |
| 234 | <failOnMissingWebXml>false</failOnMissingWebXml> |
| 235 | </configuration> |
| 236 | </plugin> |
ITSERVICES\cr056n | 29596e4 | 2017-08-14 09:46:27 -0700 | [diff] [blame] | 237 | <!-- The Jetty plugin allows us to easily test the development build by |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 238 | running jetty:run on the command line. --> |
| 239 | |
| 240 | <plugin> |
| 241 | <groupId>org.eclipse.jetty</groupId> |
| 242 | <artifactId>jetty-maven-plugin</artifactId> |
| 243 | <version>${jetty.plugin.version}</version> |
| 244 | <configuration> |
| 245 | <scanIntervalSeconds>2</scanIntervalSeconds> |
| 246 | </configuration> |
| 247 | </plugin> |
| 248 | <plugin> |
| 249 | <groupId>com.fortify.ps.maven.plugin</groupId> |
| 250 | <artifactId>sca-maven-plugin</artifactId> |
| 251 | <version>4.20</version> |
| 252 | </plugin> |
| 253 | <plugin> |
Pamela Dragosh | 0cd5435 | 2017-04-03 10:51:20 -0400 | [diff] [blame] | 254 | <groupId>org.apache.maven.plugins</groupId> |
| 255 | <artifactId>maven-site-plugin</artifactId> |
Pamela Dragosh | 0cd5435 | 2017-04-03 10:51:20 -0400 | [diff] [blame] | 256 | <dependencies> |
| 257 | <dependency> |
| 258 | <groupId>org.apache.maven.wagon</groupId> |
| 259 | <artifactId>wagon-webdav-jackrabbit</artifactId> |
| 260 | <version>2.10</version> |
| 261 | </dependency> |
| 262 | </dependencies> |
| 263 | </plugin> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 264 | </plugins> |
Pamela Dragosh | 40aef4f | 2017-08-14 13:53:06 -0400 | [diff] [blame] | 265 | <pluginManagement> |
| 266 | <plugins> |
Pamela Dragosh | eb6547d | 2018-02-16 11:18:09 -0500 | [diff] [blame] | 267 | <plugin> |
| 268 | <groupId>org.jacoco</groupId> |
| 269 | <artifactId>jacoco-maven-plugin</artifactId> |
| 270 | <version>${jacoco.version}</version> |
| 271 | <configuration> |
| 272 | <!-- Note: This exclusion list should match <sonar.exclusions> property |
| 273 | above --> |
| 274 | <excludes> |
| 275 | <exclude>**/gen/**</exclude> |
| 276 | <exclude>**/generated-sources/**</exclude> |
| 277 | <exclude>**/yang-gen/**</exclude> |
| 278 | <exclude>**/pax/**</exclude> |
| 279 | </excludes> |
| 280 | </configuration> |
| 281 | <executions> |
| 282 | <!-- Prepares the property pointing to the JaCoCo runtime agent which |
| 283 | is passed as VM argument when Maven the Surefire plugin is executed. --> |
| 284 | <execution> |
| 285 | <id>pre-unit-test</id> |
| 286 | <goals> |
| 287 | <goal>prepare-agent</goal> |
| 288 | </goals> |
| 289 | <configuration> |
| 290 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 291 | </configuration> |
| 292 | </execution> |
| 293 | <!-- Ensures that the code coverage report for unit tests is created |
| 294 | after unit tests have been run. --> |
| 295 | <execution> |
| 296 | <id>post-unit-test</id> |
| 297 | <phase>test</phase> |
| 298 | <goals> |
| 299 | <goal>report</goal> |
| 300 | </goals> |
| 301 | <configuration> |
| 302 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 303 | </configuration> |
| 304 | </execution> |
| 305 | </executions> |
| 306 | </plugin> |
Pamela Dragosh | 40aef4f | 2017-08-14 13:53:06 -0400 | [diff] [blame] | 307 | <plugin> |
| 308 | <groupId>org.eclipse.m2e</groupId> |
| 309 | <artifactId>lifecycle-mapping</artifactId> |
| 310 | <version>1.0.0</version> |
| 311 | <configuration> |
| 312 | <lifecycleMappingMetadata> |
| 313 | <pluginExecutions> |
| 314 | <pluginExecution> |
| 315 | <pluginExecutionFilter> |
| 316 | <groupId>org.apache.maven.plugins</groupId> |
| 317 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 318 | <versionRange>2.17,)</versionRange> |
| 319 | <goals> |
| 320 | <goal>check</goal> |
| 321 | </goals> |
| 322 | </pluginExecutionFilter> |
| 323 | <action> |
| 324 | <ignore /> |
| 325 | </action> |
| 326 | </pluginExecution> |
| 327 | </pluginExecutions> |
| 328 | </lifecycleMappingMetadata> |
| 329 | </configuration> |
| 330 | </plugin> |
| 331 | </plugins> |
| 332 | </pluginManagement> |
Pamela Dragosh | 91d04c6 | 2017-02-14 19:41:00 -0500 | [diff] [blame] | 333 | </build> |
| 334 | </project> |