waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
| 4 | ================================================================================ |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | |
| 17 | SPDX-License-Identifier: Apache-2.0 |
| 18 | ============LICENSE_END========================================================= |
| 19 | --> |
| 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/xsd/maven-4.0.0.xsd"> |
| 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | <parent> |
| 24 | <groupId>org.onap.policy.apex-pdp.packages</groupId> |
| 25 | <artifactId>packages</artifactId> |
ramverma | 79e5ede | 2018-10-24 20:14:02 +0100 | [diff] [blame^] | 26 | <version>2.0.1-SNAPSHOT</version> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 27 | </parent> |
| 28 | |
| 29 | <artifactId>apex-pdp-package-full</artifactId> |
| 30 | <name>${project.artifactId}</name> |
| 31 | <description>[${project.parent.artifactId}] packaging, with all optional functionality, clients, servlets, and examples included</description> |
| 32 | |
| 33 | <properties> |
| 34 | <install.package.name>${project.artifactId}</install.package.name> |
| 35 | </properties> |
| 36 | |
| 37 | <dependencies> |
| 38 | <dependency> |
| 39 | <groupId>org.onap.policy.apex-pdp.services</groupId> |
| 40 | <artifactId>services-engine</artifactId> |
| 41 | <version>${project.version}</version> |
| 42 | </dependency> |
| 43 | |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 44 | <!-- Client Servlet applications --> |
| 45 | <dependency> |
| 46 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 47 | <artifactId>client-full</artifactId> |
| 48 | <type>war</type> |
| 49 | <version>${project.version}</version> |
| 50 | </dependency> |
| 51 | <dependency> |
| 52 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 53 | <artifactId>client-editor</artifactId> |
| 54 | <type>war</type> |
| 55 | <version>${project.version}</version> |
| 56 | </dependency> |
| 57 | <dependency> |
| 58 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 59 | <artifactId>client-deployment</artifactId> |
| 60 | <type>war</type> |
| 61 | <version>${project.version}</version> |
| 62 | </dependency> |
| 63 | <dependency> |
| 64 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 65 | <artifactId>client-monitoring</artifactId> |
| 66 | <type>war</type> |
| 67 | <version>${project.version}</version> |
| 68 | </dependency> |
| 69 | |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 70 | <!-- Plugins for Context Distribution --> |
| 71 | <dependency> |
liamfallon | b109c21 | 2018-07-18 11:23:20 +0100 | [diff] [blame] | 72 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId> |
| 73 | <artifactId>plugins-context-distribution-hazelcast</artifactId> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 74 | <version>${project.version}</version> |
| 75 | </dependency> |
| 76 | <dependency> |
liamfallon | b109c21 | 2018-07-18 11:23:20 +0100 | [diff] [blame] | 77 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId> |
| 78 | <artifactId>plugins-context-distribution-infinispan</artifactId> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 79 | <version>${project.version}</version> |
| 80 | </dependency> |
| 81 | |
| 82 | <!-- Plugins for Context Locking --> |
| 83 | <dependency> |
liamfallon | b109c21 | 2018-07-18 11:23:20 +0100 | [diff] [blame] | 84 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId> |
| 85 | <artifactId>plugins-context-locking-hazelcast</artifactId> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 86 | <version>${project.version}</version> |
| 87 | </dependency> |
| 88 | <dependency> |
liamfallon | b109c21 | 2018-07-18 11:23:20 +0100 | [diff] [blame] | 89 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId> |
| 90 | <artifactId>plugins-context-locking-curator</artifactId> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 91 | <version>${project.version}</version> |
| 92 | </dependency> |
| 93 | |
| 94 | <!-- Plugins for Context Schemas --> |
| 95 | <dependency> |
liamfallon | b109c21 | 2018-07-18 11:23:20 +0100 | [diff] [blame] | 96 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId> |
| 97 | <artifactId>plugins-context-schema-avro</artifactId> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 98 | <version>${project.version}</version> |
| 99 | </dependency> |
| 100 | |
| 101 | <!-- Plugins for Executors --> |
| 102 | <dependency> |
| 103 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 104 | <artifactId>plugins-executor-java</artifactId> |
| 105 | <version>${project.version}</version> |
| 106 | </dependency> |
| 107 | <dependency> |
| 108 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 109 | <artifactId>plugins-executor-javascript</artifactId> |
| 110 | <version>${project.version}</version> |
| 111 | </dependency> |
| 112 | <dependency> |
| 113 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 114 | <artifactId>plugins-executor-jruby</artifactId> |
| 115 | <version>${project.version}</version> |
| 116 | </dependency> |
| 117 | <dependency> |
| 118 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 119 | <artifactId>plugins-executor-jython</artifactId> |
| 120 | <version>${project.version}</version> |
| 121 | </dependency> |
| 122 | <dependency> |
| 123 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 124 | <artifactId>plugins-executor-mvel</artifactId> |
| 125 | <version>${project.version}</version> |
| 126 | </dependency> |
| 127 | |
| 128 | <!-- Plugins for Persistence of Models over JPA --> |
| 129 | <dependency> |
| 130 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId> |
| 131 | <artifactId>plugins-persistence-jpa-eclipselink</artifactId> |
| 132 | <version>${project.version}</version> |
| 133 | </dependency> |
| 134 | <dependency> |
| 135 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId> |
| 136 | <artifactId>plugins-persistence-jpa-hibernate</artifactId> |
| 137 | <version>${project.version}</version> |
| 138 | </dependency> |
| 139 | |
| 140 | <!-- Plugins for event carrier technologies --> |
| 141 | <dependency> |
| 142 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 143 | <artifactId>plugins-event-carrier-kafka</artifactId> |
| 144 | <version>${project.version}</version> |
| 145 | </dependency> |
| 146 | <dependency> |
| 147 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 148 | <artifactId>plugins-event-carrier-websocket</artifactId> |
| 149 | <version>${project.version}</version> |
| 150 | </dependency> |
| 151 | <dependency> |
| 152 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 153 | <artifactId>plugins-event-carrier-jms</artifactId> |
| 154 | <version>${project.version}</version> |
| 155 | </dependency> |
| 156 | <dependency> |
| 157 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 158 | <artifactId>plugins-event-carrier-restclient</artifactId> |
| 159 | <version>${project.version}</version> |
| 160 | </dependency> |
| 161 | <dependency> |
| 162 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 163 | <artifactId>plugins-event-carrier-restserver</artifactId> |
| 164 | <version>${project.version}</version> |
| 165 | </dependency> |
| 166 | <dependency> |
| 167 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 168 | <artifactId>plugins-event-carrier-restrequestor</artifactId> |
| 169 | <version>${project.version}</version> |
| 170 | </dependency> |
| 171 | |
| 172 | <!-- Plugins for event protocols --> |
| 173 | <dependency> |
| 174 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId> |
| 175 | <artifactId>plugins-event-protocol-xml</artifactId> |
| 176 | <version>${project.version}</version> |
| 177 | </dependency> |
| 178 | <dependency> |
| 179 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId> |
| 180 | <artifactId>plugins-event-protocol-jms</artifactId> |
| 181 | <version>${project.version}</version> |
| 182 | </dependency> |
| 183 | |
| 184 | <!-- Authoring and Editors --> |
| 185 | <dependency> |
| 186 | <groupId>org.onap.policy.apex-pdp.auth</groupId> |
| 187 | <artifactId>cli-editor</artifactId> |
| 188 | <version>${project.version}</version> |
| 189 | </dependency> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 190 | |
| 191 | <!-- Tools --> |
| 192 | <dependency> |
| 193 | <groupId>org.onap.policy.apex-pdp.tools</groupId> |
| 194 | <artifactId>simple-wsclient</artifactId> |
| 195 | <version>${project.version}</version> |
| 196 | </dependency> |
| 197 | <dependency> |
| 198 | <groupId>org.onap.policy.apex-pdp.tools</groupId> |
| 199 | <artifactId>model-generator</artifactId> |
| 200 | <version>${project.version}</version> |
| 201 | </dependency> |
| 202 | |
ramverma | 28ea336 | 2018-07-18 16:28:07 +0100 | [diff] [blame] | 203 | <!-- Test Data used by examples --> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 204 | <dependency> |
ramverma | 28ea336 | 2018-07-18 16:28:07 +0100 | [diff] [blame] | 205 | <groupId>org.onap.policy.apex-pdp.context</groupId> |
| 206 | <artifactId>context-test-utils</artifactId> |
| 207 | <version>${project.version}</version> |
| 208 | </dependency> |
| 209 | <dependency> |
| 210 | <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId> |
| 211 | <artifactId>integration-common</artifactId> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 212 | <version>${project.version}</version> |
| 213 | </dependency> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 214 | |
| 215 | <!-- Sample Examples --> |
| 216 | <dependency> |
| 217 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 218 | <artifactId>examples-aadm</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 219 | <version>${project.version}</version> |
| 220 | </dependency> |
| 221 | <dependency> |
| 222 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 223 | <artifactId>examples-adaptive</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 224 | <version>${project.version}</version> |
| 225 | </dependency> |
| 226 | <dependency> |
| 227 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 228 | <artifactId>examples-myfirstpolicy</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 229 | <version>${project.version}</version> |
| 230 | </dependency> |
| 231 | <dependency> |
| 232 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 233 | <artifactId>examples-pcvs</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 234 | <version>${project.version}</version> |
| 235 | </dependency> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 236 | <dependency> |
| 237 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 238 | <artifactId>examples-decisionmaker</artifactId> |
| 239 | <version>${project.version}</version> |
| 240 | </dependency> |
| 241 | <dependency> |
| 242 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 243 | <artifactId>examples-periodic</artifactId> |
| 244 | <version>${project.version}</version> |
| 245 | </dependency> |
| 246 | <dependency> |
| 247 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 248 | <artifactId>examples-onap-vcpe</artifactId> |
| 249 | <version>${project.version}</version> |
| 250 | </dependency> |
ramverma | 9e318f2 | 2018-07-30 19:13:47 +0100 | [diff] [blame] | 251 | <dependency> |
| 252 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 253 | <artifactId>examples-servlet</artifactId> |
| 254 | <type>war</type> |
| 255 | <version>${project.version}</version> |
| 256 | </dependency> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 257 | </dependencies> |
| 258 | |
| 259 | <build> |
| 260 | <plugins> |
| 261 | <!-- Copy required resources and examples --> |
| 262 | <plugin> |
| 263 | <groupId>org.apache.maven.plugins</groupId> |
| 264 | <artifactId>maven-dependency-plugin</artifactId> |
| 265 | <executions> |
| 266 | <execution> |
| 267 | <id>unpack-etc-examples</id> |
| 268 | <phase>package</phase> |
| 269 | <goals> |
| 270 | <goal>unpack</goal> |
| 271 | </goals> |
| 272 | <configuration> |
| 273 | <artifactItems> |
| 274 | <artifactItem> |
| 275 | <groupId>org.onap.policy.apex-pdp.auth</groupId> |
| 276 | <artifactId>cli-editor</artifactId> |
ramverma | 28ea336 | 2018-07-18 16:28:07 +0100 | [diff] [blame] | 277 | <version>${project.version}</version> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 278 | <type>jar</type> |
| 279 | <overWrite>false</overWrite> |
| 280 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 281 | <includes>etc/**/*,examples/**/*</includes> |
| 282 | </artifactItem> |
| 283 | <artifactItem> |
ramverma | 28ea336 | 2018-07-18 16:28:07 +0100 | [diff] [blame] | 284 | <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId> |
| 285 | <artifactId>integration-common</artifactId> |
| 286 | <version>${project.version}</version> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 287 | <type>jar</type> |
| 288 | <overWrite>false</overWrite> |
ramverma | 28ea336 | 2018-07-18 16:28:07 +0100 | [diff] [blame] | 289 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 290 | <includes>etc/**/*,examples/**/*</includes> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 291 | </artifactItem> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 292 | <artifactItem> |
| 293 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 294 | <artifactId>examples-aadm</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 295 | <version>${project.version}</version> |
| 296 | <type>jar</type> |
| 297 | <overWrite>false</overWrite> |
| 298 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 299 | <includes>etc/**/*,examples/**/*</includes> |
| 300 | </artifactItem> |
| 301 | <artifactItem> |
| 302 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 303 | <artifactId>examples-adaptive</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 304 | <version>${project.version}</version> |
| 305 | <type>jar</type> |
| 306 | <overWrite>false</overWrite> |
| 307 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 308 | <includes>etc/**/*,examples/**/*</includes> |
| 309 | </artifactItem> |
| 310 | <artifactItem> |
| 311 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 312 | <artifactId>examples-myfirstpolicy</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 313 | <version>${project.version}</version> |
| 314 | <type>jar</type> |
| 315 | <overWrite>false</overWrite> |
| 316 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 317 | <includes>etc/**/*,examples/**/*</includes> |
| 318 | </artifactItem> |
| 319 | <artifactItem> |
| 320 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 321 | <artifactId>examples-pcvs</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 322 | <version>${project.version}</version> |
| 323 | <type>jar</type> |
| 324 | <overWrite>false</overWrite> |
| 325 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 326 | <includes>etc/**/*,examples/**/*</includes> |
| 327 | </artifactItem> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 328 | <artifactItem> |
| 329 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 330 | <artifactId>examples-decisionmaker</artifactId> |
| 331 | <version>${project.version}</version> |
| 332 | <type>jar</type> |
| 333 | <overWrite>false</overWrite> |
liamfallon | f28256b | 2018-09-19 21:44:33 +0100 | [diff] [blame] | 334 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 335 | <includes>etc/**/*,examples/**/*</includes> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 336 | </artifactItem> |
| 337 | <artifactItem> |
| 338 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
liamfallon | 3595f7c | 2018-09-27 15:40:13 +0100 | [diff] [blame] | 339 | <artifactId>examples-decisionmaker</artifactId> |
| 340 | <version>${project.version}</version> |
| 341 | <type>jar</type> |
| 342 | <overWrite>false</overWrite> |
| 343 | <outputDirectory>${project.build.directory}/examples/models/DecisionMaker</outputDirectory> |
| 344 | <includes>DecisionMakerPolicyModel.json</includes> |
| 345 | </artifactItem> |
| 346 | <artifactItem> |
| 347 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 348 | <artifactId>examples-periodic</artifactId> |
| 349 | <version>${project.version}</version> |
| 350 | <type>jar</type> |
| 351 | <overWrite>false</overWrite> |
liamfallon | f28256b | 2018-09-19 21:44:33 +0100 | [diff] [blame] | 352 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 353 | <includes>etc/**/*,examples/**/*</includes> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 354 | </artifactItem> |
| 355 | <artifactItem> |
| 356 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
liamfallon | 3595f7c | 2018-09-27 15:40:13 +0100 | [diff] [blame] | 357 | <artifactId>examples-periodic</artifactId> |
| 358 | <version>${project.version}</version> |
| 359 | <type>jar</type> |
| 360 | <overWrite>false</overWrite> |
| 361 | <outputDirectory>${project.build.directory}/examples/models/Periodic</outputDirectory> |
| 362 | <includes>PeriodicPolicyModel.json</includes> |
| 363 | </artifactItem> |
| 364 | <artifactItem> |
| 365 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 366 | <artifactId>examples-onap-vcpe</artifactId> |
| 367 | <version>${project.version}</version> |
| 368 | <type>jar</type> |
| 369 | <overWrite>false</overWrite> |
| 370 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 371 | <includes>etc/**/*,examples/**/*</includes> |
| 372 | </artifactItem> |
| 373 | <artifactItem> |
| 374 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 375 | <artifactId>examples-onap-vcpe</artifactId> |
| 376 | <version>${project.version}</version> |
| 377 | <type>jar</type> |
| 378 | <overWrite>false</overWrite> |
liamfallon | 3595f7c | 2018-09-27 15:40:13 +0100 | [diff] [blame] | 379 | <outputDirectory>${project.build.directory}/examples/models/ONAPvCPE</outputDirectory> |
| 380 | <includes>ONAPvCPEPolicyModel.json</includes> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 381 | </artifactItem> |
ramverma | 9e318f2 | 2018-07-30 19:13:47 +0100 | [diff] [blame] | 382 | <artifactItem> |
| 383 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 384 | <artifactId>examples-servlet</artifactId> |
| 385 | <version>${project.version}</version> |
| 386 | <type>war</type> |
| 387 | <overWrite>false</overWrite> |
liamfallon | f28256b | 2018-09-19 21:44:33 +0100 | [diff] [blame] | 388 | <outputDirectory>${project.build.directory}/examples/servlet</outputDirectory> |
| 389 | <includes>readme_examples-servlet.txt</includes> |
ramverma | 9e318f2 | 2018-07-30 19:13:47 +0100 | [diff] [blame] | 390 | </artifactItem> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 391 | <artifactItem> |
| 392 | <groupId>org.onap.policy.apex-pdp.tools</groupId> |
| 393 | <artifactId>tools-common</artifactId> |
| 394 | <version>${project.version}</version> |
| 395 | <type>jar</type> |
| 396 | <overWrite>false</overWrite> |
| 397 | <outputDirectory>${project.build.directory}/etc</outputDirectory> |
| 398 | <includes>/app-version.txt</includes> |
| 399 | </artifactItem> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 400 | </artifactItems> |
| 401 | <overWriteReleases>true</overWriteReleases> |
| 402 | <overWriteSnapshots>true</overWriteSnapshots> |
| 403 | </configuration> |
| 404 | </execution> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 405 | <execution> |
| 406 | <id>copy-fat-jars</id> |
| 407 | <phase>package</phase> |
| 408 | <goals> |
| 409 | <goal>copy</goal> |
| 410 | </goals> |
| 411 | <configuration> |
| 412 | <artifactItems> |
| 413 | <artifactItem> |
| 414 | <groupId>org.onap.policy.apex-pdp.tools</groupId> |
| 415 | <artifactId>simple-wsclient</artifactId> |
| 416 | <version>${project.version}</version> |
| 417 | <type>jar</type> |
| 418 | <classifier>jar-with-dependencies</classifier> |
| 419 | <outputDirectory>${project.build.directory}/lib/applications</outputDirectory> |
| 420 | </artifactItem> |
| 421 | <artifactItem> |
| 422 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 423 | <artifactId>client-monitoring</artifactId> |
| 424 | <version>${project.version}</version> |
| 425 | <classifier>monitoring</classifier> |
| 426 | <outputDirectory>${project.build.directory}/lib/applications</outputDirectory> |
| 427 | </artifactItem> |
| 428 | <artifactItem> |
| 429 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 430 | <artifactId>client-editor</artifactId> |
| 431 | <version>${project.version}</version> |
| 432 | <classifier>editor</classifier> |
| 433 | <outputDirectory>${project.build.directory}/lib/applications</outputDirectory> |
| 434 | </artifactItem> |
| 435 | <artifactItem> |
| 436 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 437 | <artifactId>client-deployment</artifactId> |
| 438 | <version>${project.version}</version> |
| 439 | <classifier>deployment</classifier> |
| 440 | <outputDirectory>${project.build.directory}/lib/applications</outputDirectory> |
| 441 | </artifactItem> |
| 442 | <artifactItem> |
| 443 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 444 | <artifactId>client-full</artifactId> |
| 445 | <version>${project.version}</version> |
| 446 | <classifier>full</classifier> |
| 447 | <outputDirectory>${project.build.directory}/lib/applications</outputDirectory> |
| 448 | </artifactItem> |
| 449 | </artifactItems> |
| 450 | <overWriteReleases>true</overWriteReleases> |
| 451 | <overWriteSnapshots>true</overWriteSnapshots> |
| 452 | </configuration> |
| 453 | </execution> |
| 454 | |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 455 | </executions> |
| 456 | </plugin> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 457 | |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 458 | <!-- Build the tar ball --> |
| 459 | <plugin> |
| 460 | <groupId>org.apache.maven.plugins</groupId> |
| 461 | <artifactId>maven-assembly-plugin</artifactId> |
| 462 | <executions> |
| 463 | <execution> |
| 464 | <id>generate-complete-tar</id> |
| 465 | <phase>package</phase> |
| 466 | <goals> |
| 467 | <goal>single</goal> |
| 468 | </goals> |
| 469 | <configuration> |
| 470 | <descriptors> |
| 471 | <descriptor>src/main/package/tarball/assembly.xml</descriptor> |
| 472 | </descriptors> |
| 473 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 474 | </configuration> |
| 475 | </execution> |
| 476 | </executions> |
| 477 | </plugin> |
| 478 | <plugin> |
| 479 | <artifactId>maven-antrun-plugin</artifactId> |
| 480 | <executions> |
| 481 | <execution> |
| 482 | <phase>package</phase> |
| 483 | <configuration> |
| 484 | <tasks> |
| 485 | <untar |
| 486 | src="${project.build.directory}/${project.artifactId}-${project.version}-tarball.tar.gz" |
| 487 | dest="${project.build.directory}/install_hierarchy" compression="gzip" /> |
| 488 | </tasks> |
| 489 | </configuration> |
| 490 | <goals> |
| 491 | <goal>run</goal> |
| 492 | </goals> |
| 493 | </execution> |
| 494 | <execution> |
| 495 | <id>fix-permissions</id> |
| 496 | <phase>package</phase> |
| 497 | <configuration> |
| 498 | <tasks> |
| 499 | <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" /> |
| 500 | </tasks> |
| 501 | </configuration> |
| 502 | <goals> |
| 503 | <goal>run</goal> |
| 504 | </goals> |
| 505 | </execution> |
| 506 | </executions> |
| 507 | </plugin> |
| 508 | <!-- Build the dpkg distribution --> |
| 509 | <plugin> |
| 510 | <groupId>org.vafer</groupId> |
| 511 | <artifactId>jdeb</artifactId> |
| 512 | <version>1.5</version> |
| 513 | <executions> |
| 514 | <execution> |
| 515 | <phase>package</phase> |
| 516 | <goals> |
| 517 | <goal>jdeb</goal> |
| 518 | </goals> |
| 519 | <configuration> |
| 520 | <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb> |
| 521 | <controlDir>${basedir}/src/main/package/control</controlDir> |
| 522 | <dataSet> |
| 523 | <!-- Copy the Apex run time configuration --> |
| 524 | <data> |
| 525 | <src>${project.build.directory}/install_hierarchy/lib</src> |
| 526 | <type>directory</type> |
| 527 | <dst>lib</dst> |
| 528 | <mapper> |
| 529 | <type>perm</type> |
liamfallon | 8801bb4 | 2018-09-11 11:30:44 +0100 | [diff] [blame] | 530 | <prefix>/opt/app/policy/${project.artifactId}-${project.version}/lib</prefix> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 531 | <filemode>755</filemode> |
| 532 | </mapper> |
| 533 | </data> |
| 534 | <data> |
| 535 | <src>${project.build.directory}/install_hierarchy/bin</src> |
| 536 | <type>directory</type> |
| 537 | <dst>etc</dst> |
| 538 | <mapper> |
| 539 | <type>perm</type> |
liamfallon | 8801bb4 | 2018-09-11 11:30:44 +0100 | [diff] [blame] | 540 | <prefix>/opt/app/policy/${project.artifactId}-${project.version}/bin</prefix> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 541 | </mapper> |
| 542 | </data> |
| 543 | <data> |
| 544 | <src>${project.build.directory}/install_hierarchy/etc</src> |
| 545 | <type>directory</type> |
| 546 | <dst>etc</dst> |
| 547 | <mapper> |
| 548 | <type>perm</type> |
liamfallon | 8801bb4 | 2018-09-11 11:30:44 +0100 | [diff] [blame] | 549 | <prefix>/opt/app/policy/${project.artifactId}-${project.version}/etc</prefix> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 550 | </mapper> |
| 551 | </data> |
| 552 | <data> |
ramverma | 9e318f2 | 2018-07-30 19:13:47 +0100 | [diff] [blame] | 553 | <src>${project.build.directory}/install_hierarchy/war</src> |
| 554 | <type>directory</type> |
| 555 | <dst>etc</dst> |
| 556 | <mapper> |
| 557 | <type>perm</type> |
liamfallon | 8801bb4 | 2018-09-11 11:30:44 +0100 | [diff] [blame] | 558 | <prefix>/opt/app/policy/${install.package.name}-${project.version}/war</prefix> |
ramverma | 9e318f2 | 2018-07-30 19:13:47 +0100 | [diff] [blame] | 559 | </mapper> |
| 560 | </data> |
| 561 | <data> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 562 | <src>${project.build.directory}/install_hierarchy/examples</src> |
| 563 | <type>directory</type> |
| 564 | <dst>etc</dst> |
| 565 | <mapper> |
| 566 | <type>perm</type> |
liamfallon | 8801bb4 | 2018-09-11 11:30:44 +0100 | [diff] [blame] | 567 | <prefix>/opt/app/policy/${project.artifactId}-${project.version}/examples</prefix> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 568 | </mapper> |
| 569 | </data> |
| 570 | </dataSet> |
| 571 | </configuration> |
| 572 | </execution> |
| 573 | </executions> |
| 574 | </plugin> |
| 575 | </plugins> |
| 576 | </build> |
| 577 | <profiles> |
| 578 | <profile> |
| 579 | <id>Linux</id> |
| 580 | <activation> |
| 581 | <os> |
| 582 | <family>Linux</family> |
| 583 | </os> |
| 584 | </activation> |
| 585 | <build> |
| 586 | <plugins> |
| 587 | <!-- Build the rpm distribution --> |
| 588 | <!-- Skiping RPM Build for now, due to rpmbuild package not available on Jenkins servers --> |
| 589 | <!-- <plugin> |
| 590 | <groupId>org.codehaus.mojo</groupId> |
| 591 | <artifactId>rpm-maven-plugin</artifactId> |
| 592 | <version>2.2.0</version> |
| 593 | <extensions>true</extensions> |
| 594 | <executions> |
| 595 | <execution> |
| 596 | <phase>package</phase> |
| 597 | <goals> |
| 598 | <goal>rpm</goal> |
| 599 | </goals> |
| 600 | </execution> |
| 601 | </executions> |
| 602 | <configuration> |
| 603 | <name>${project.artifactId}</name> |
| 604 | <copyright>2015 Ericsson AB All rights reserved</copyright> |
| 605 | <distribution>${project.parent.artifactId}</distribution> |
| 606 | <group>ERI-APEX</group> |
| 607 | <packager>Ericsson</packager> |
| 608 | <prefix>/opt/app/policy/apex-pdp</prefix> |
| 609 | <changelogFile>src/rpm/changelog</changelogFile> |
| 610 | <needarch>noarch</needarch> |
| 611 | <targetVendor>redhat</targetVendor> |
| 612 | <targetOS>linux</targetOS> |
| 613 | <version>${project.version}</version> |
| 614 | <defineStatements> |
| 615 | <defineStatement>install_dir /opt/app/policy/apex-pdp</defineStatement> |
| 616 | </defineStatements> |
| 617 | <mappings> |
| 618 | <mapping> |
liamfallon | 8801bb4 | 2018-09-11 11:30:44 +0100 | [diff] [blame] | 619 | <directory>/opt/app/policy/${project.artifactId}-${project.version}/lib</directory> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 620 | <username>root</username> |
| 621 | <groupname>root</groupname> |
| 622 | <sources> |
| 623 | <source> |
| 624 | <location>${project.build.directory}/install_hierarchy/lib</location> |
| 625 | </source> |
| 626 | </sources> |
| 627 | </mapping> |
| 628 | <mapping> |
liamfallon | 8801bb4 | 2018-09-11 11:30:44 +0100 | [diff] [blame] | 629 | <directory>/opt/app/policy/${project.artifactId}-${project.version}/bin</directory> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 630 | <username>root</username> |
| 631 | <groupname>root</groupname> |
| 632 | <sources> |
| 633 | <source> |
| 634 | <location>${project.build.directory}/install_hierarchy/bin</location> |
| 635 | </source> |
| 636 | </sources> |
| 637 | </mapping> |
| 638 | <mapping> |
liamfallon | 8801bb4 | 2018-09-11 11:30:44 +0100 | [diff] [blame] | 639 | <directory>/opt/app/policy/${project.artifactId}-${project.version}/etc</directory> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 640 | <username>root</username> |
| 641 | <groupname>root</groupname> |
| 642 | <sources> |
| 643 | <source> |
| 644 | <location>${project.build.directory}/install_hierarchy/etc</location> |
| 645 | </source> |
| 646 | </sources> |
| 647 | </mapping> |
| 648 | <mapping> |
liamfallon | 8801bb4 | 2018-09-11 11:30:44 +0100 | [diff] [blame] | 649 | <directory>/opt/app/policy/${install.package.name}-${project.version}/war</directory> |
ramverma | 9e318f2 | 2018-07-30 19:13:47 +0100 | [diff] [blame] | 650 | <username>root</username> |
| 651 | <groupname>root</groupname> |
| 652 | <sources> |
| 653 | <source> |
| 654 | <location>${project.build.directory}/install_hierarchy/war</location> |
| 655 | </source> |
| 656 | </sources> |
| 657 | </mapping> |
| 658 | <mapping> |
liamfallon | 8801bb4 | 2018-09-11 11:30:44 +0100 | [diff] [blame] | 659 | <directory>/opt/app/policy/${project.artifactId}-${project.version}/examples</directory> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 660 | <username>root</username> |
| 661 | <groupname>root</groupname> |
| 662 | <sources> |
| 663 | <source> |
| 664 | <location>${project.build.directory}/install_hierarchy/examples</location> |
| 665 | </source> |
| 666 | </sources> |
| 667 | </mapping> |
| 668 | </mappings> |
| 669 | <preinstallScriptlet> |
| 670 | <scriptFile>src/main/package/control/preinst</scriptFile> |
| 671 | </preinstallScriptlet> |
| 672 | <postinstallScriptlet> |
| 673 | <scriptFile>src/main/package/control/postinst</scriptFile> |
| 674 | </postinstallScriptlet> |
| 675 | <preremoveScriptlet> |
| 676 | <scriptFile>src/main/package/control/prerm</scriptFile> |
| 677 | </preremoveScriptlet> |
| 678 | <postremoveScriptlet> |
| 679 | <scriptFile>src/main/package/control/postrm</scriptFile> |
| 680 | </postremoveScriptlet> |
| 681 | </configuration> |
| 682 | </plugin> |
| 683 | <plugin> |
| 684 | <groupId>org.codehaus.mojo</groupId> |
| 685 | <artifactId>exec-maven-plugin</artifactId> |
| 686 | <executions> |
| 687 | <execution> |
| 688 | <phase>package</phase> |
| 689 | <goals> |
| 690 | <goal>exec</goal> |
| 691 | </goals> |
| 692 | </execution> |
| 693 | </executions> |
| 694 | <configuration> |
| 695 | <executable>sh</executable> |
| 696 | <arguments> |
| 697 | <argument>-c</argument> |
| 698 | <argument>cp \ |
| 699 | ${project.build.directory}/rpm/${project.artifactId}/RPMS/noarch/${project.artifactId}-${project.version}*.noarch.rpm \ |
| 700 | \ |
| 701 | ${project.build.directory}/${project.artifactId}-${project.version}.rpm</argument> |
| 702 | </arguments> |
| 703 | </configuration> |
| 704 | </plugin> |
| 705 | <plugin> |
| 706 | <groupId>org.codehaus.mojo</groupId> |
| 707 | <artifactId>build-helper-maven-plugin</artifactId> |
| 708 | <version>3.0.0</version> |
| 709 | <executions> |
| 710 | <execution> |
| 711 | <id>attach-artifacts</id> |
| 712 | <phase>package</phase> |
| 713 | <goals> |
| 714 | <goal>attach-artifact</goal> |
| 715 | </goals> |
| 716 | <configuration> |
| 717 | <artifacts> |
| 718 | <artifact> |
| 719 | <file>${project.build.directory}/${project.artifactId}-${project.version}.rpm</file> |
| 720 | <type>rpm</type> |
| 721 | </artifact> |
| 722 | </artifacts> |
| 723 | </configuration> |
| 724 | </execution> |
| 725 | </executions> |
| 726 | </plugin> --> |
| 727 | </plugins> |
| 728 | </build> |
| 729 | </profile> |
| 730 | <profile> |
| 731 | <id>only-eclipse</id> |
| 732 | <activation> |
| 733 | <property> |
| 734 | <name>m2e.version</name> |
| 735 | </property> |
| 736 | </activation> |
| 737 | <build> |
| 738 | <pluginManagement> |
| 739 | <plugins> |
| 740 | <plugin> |
| 741 | <groupId>org.eclipse.m2e</groupId> |
| 742 | <artifactId>lifecycle-mapping</artifactId> |
| 743 | <configuration> |
| 744 | <lifecycleMappingMetadata> |
| 745 | <pluginExecutions> |
| 746 | <pluginExecution> |
| 747 | <pluginExecutionFilter> |
| 748 | <groupId>org.apache.maven.plugins</groupId> |
| 749 | <artifactId>maven-dependency-plugin</artifactId> |
| 750 | <versionRange>${maven-dependency-plugin.version}</versionRange> |
| 751 | <goals> |
| 752 | <goal>unpack</goal> |
| 753 | <goal>copy</goal> |
| 754 | </goals> |
| 755 | </pluginExecutionFilter> |
| 756 | <action> |
| 757 | <ignore /> |
| 758 | </action> |
| 759 | </pluginExecution> |
| 760 | </pluginExecutions> |
| 761 | </lifecycleMappingMetadata> |
| 762 | </configuration> |
| 763 | </plugin> |
| 764 | </plugins> |
| 765 | </pluginManagement> |
| 766 | </build> |
| 767 | </profile> |
Dinh Danh Le | 4f0e4e0 | 2018-08-09 10:51:44 +0100 | [diff] [blame] | 768 | |
| 769 | <profile> |
| 770 | <id>apexSite</id> |
| 771 | <activation> |
| 772 | <property> |
| 773 | <name>apexSite</name> |
| 774 | </property> |
| 775 | </activation> |
| 776 | <distributionManagement> |
| 777 | <site> |
| 778 | <id>${project.artifactId}-site</id> |
| 779 | <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url> |
| 780 | </site> |
| 781 | </distributionManagement> |
| 782 | </profile> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 783 | </profiles> |
liamfallon | 5906f30 | 2018-07-10 12:25:19 +0300 | [diff] [blame] | 784 | </project> |