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> |
| 26 | <version>2.0.0-SNAPSHOT</version> |
| 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 | |
| 44 | <!-- Plugins for Context Distribution --> |
| 45 | <dependency> |
liamfallon | b109c21 | 2018-07-18 11:23:20 +0100 | [diff] [blame] | 46 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId> |
| 47 | <artifactId>plugins-context-distribution-hazelcast</artifactId> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 48 | <version>${project.version}</version> |
| 49 | </dependency> |
| 50 | <dependency> |
liamfallon | b109c21 | 2018-07-18 11:23:20 +0100 | [diff] [blame] | 51 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId> |
| 52 | <artifactId>plugins-context-distribution-infinispan</artifactId> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 53 | <version>${project.version}</version> |
| 54 | </dependency> |
| 55 | |
| 56 | <!-- Plugins for Context Locking --> |
| 57 | <dependency> |
liamfallon | b109c21 | 2018-07-18 11:23:20 +0100 | [diff] [blame] | 58 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId> |
| 59 | <artifactId>plugins-context-locking-hazelcast</artifactId> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 60 | <version>${project.version}</version> |
| 61 | </dependency> |
| 62 | <dependency> |
liamfallon | b109c21 | 2018-07-18 11:23:20 +0100 | [diff] [blame] | 63 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId> |
| 64 | <artifactId>plugins-context-locking-curator</artifactId> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 65 | <version>${project.version}</version> |
| 66 | </dependency> |
| 67 | |
| 68 | <!-- Plugins for Context Schemas --> |
| 69 | <dependency> |
liamfallon | b109c21 | 2018-07-18 11:23:20 +0100 | [diff] [blame] | 70 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId> |
| 71 | <artifactId>plugins-context-schema-avro</artifactId> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 72 | <version>${project.version}</version> |
| 73 | </dependency> |
| 74 | |
| 75 | <!-- Plugins for Executors --> |
| 76 | <dependency> |
| 77 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 78 | <artifactId>plugins-executor-java</artifactId> |
| 79 | <version>${project.version}</version> |
| 80 | </dependency> |
| 81 | <dependency> |
| 82 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 83 | <artifactId>plugins-executor-javascript</artifactId> |
| 84 | <version>${project.version}</version> |
| 85 | </dependency> |
| 86 | <dependency> |
| 87 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 88 | <artifactId>plugins-executor-jruby</artifactId> |
| 89 | <version>${project.version}</version> |
| 90 | </dependency> |
| 91 | <dependency> |
| 92 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 93 | <artifactId>plugins-executor-jython</artifactId> |
| 94 | <version>${project.version}</version> |
| 95 | </dependency> |
| 96 | <dependency> |
| 97 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 98 | <artifactId>plugins-executor-mvel</artifactId> |
| 99 | <version>${project.version}</version> |
| 100 | </dependency> |
| 101 | |
| 102 | <!-- Plugins for Persistence of Models over JPA --> |
| 103 | <dependency> |
| 104 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId> |
| 105 | <artifactId>plugins-persistence-jpa-eclipselink</artifactId> |
| 106 | <version>${project.version}</version> |
| 107 | </dependency> |
| 108 | <dependency> |
| 109 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId> |
| 110 | <artifactId>plugins-persistence-jpa-hibernate</artifactId> |
| 111 | <version>${project.version}</version> |
| 112 | </dependency> |
| 113 | |
| 114 | <!-- Plugins for event carrier technologies --> |
| 115 | <dependency> |
| 116 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 117 | <artifactId>plugins-event-carrier-kafka</artifactId> |
| 118 | <version>${project.version}</version> |
| 119 | </dependency> |
| 120 | <dependency> |
| 121 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 122 | <artifactId>plugins-event-carrier-websocket</artifactId> |
| 123 | <version>${project.version}</version> |
| 124 | </dependency> |
| 125 | <dependency> |
| 126 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 127 | <artifactId>plugins-event-carrier-jms</artifactId> |
| 128 | <version>${project.version}</version> |
| 129 | </dependency> |
| 130 | <dependency> |
| 131 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 132 | <artifactId>plugins-event-carrier-restclient</artifactId> |
| 133 | <version>${project.version}</version> |
| 134 | </dependency> |
| 135 | <dependency> |
| 136 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 137 | <artifactId>plugins-event-carrier-restserver</artifactId> |
| 138 | <version>${project.version}</version> |
| 139 | </dependency> |
| 140 | <dependency> |
| 141 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 142 | <artifactId>plugins-event-carrier-restrequestor</artifactId> |
| 143 | <version>${project.version}</version> |
| 144 | </dependency> |
| 145 | |
| 146 | <!-- Plugins for event protocols --> |
| 147 | <dependency> |
| 148 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId> |
| 149 | <artifactId>plugins-event-protocol-xml</artifactId> |
| 150 | <version>${project.version}</version> |
| 151 | </dependency> |
| 152 | <dependency> |
| 153 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId> |
| 154 | <artifactId>plugins-event-protocol-jms</artifactId> |
| 155 | <version>${project.version}</version> |
| 156 | </dependency> |
| 157 | |
| 158 | <!-- Authoring and Editors --> |
| 159 | <dependency> |
| 160 | <groupId>org.onap.policy.apex-pdp.auth</groupId> |
| 161 | <artifactId>cli-editor</artifactId> |
| 162 | <version>${project.version}</version> |
| 163 | </dependency> |
| 164 | |
ramverma | 28ea336 | 2018-07-18 16:28:07 +0100 | [diff] [blame] | 165 | <!-- Test Data used by examples --> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 166 | <dependency> |
ramverma | 28ea336 | 2018-07-18 16:28:07 +0100 | [diff] [blame] | 167 | <groupId>org.onap.policy.apex-pdp.context</groupId> |
| 168 | <artifactId>context-test-utils</artifactId> |
| 169 | <version>${project.version}</version> |
| 170 | </dependency> |
| 171 | <dependency> |
| 172 | <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId> |
| 173 | <artifactId>integration-common</artifactId> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 174 | <version>${project.version}</version> |
| 175 | </dependency> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 176 | |
| 177 | <!-- Sample Examples --> |
| 178 | <dependency> |
| 179 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 180 | <artifactId>examples-aadm</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 181 | <version>${project.version}</version> |
| 182 | </dependency> |
| 183 | <dependency> |
| 184 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 185 | <artifactId>examples-adaptive</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 186 | <version>${project.version}</version> |
| 187 | </dependency> |
| 188 | <dependency> |
| 189 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 190 | <artifactId>examples-myfirstpolicy</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 191 | <version>${project.version}</version> |
| 192 | </dependency> |
| 193 | <dependency> |
| 194 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 195 | <artifactId>examples-pcvs</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 196 | <version>${project.version}</version> |
| 197 | </dependency> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 198 | <dependency> |
| 199 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 200 | <artifactId>examples-decisionmaker</artifactId> |
| 201 | <version>${project.version}</version> |
| 202 | </dependency> |
| 203 | <dependency> |
| 204 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 205 | <artifactId>examples-periodic</artifactId> |
| 206 | <version>${project.version}</version> |
| 207 | </dependency> |
| 208 | <dependency> |
| 209 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 210 | <artifactId>examples-onap-vcpe</artifactId> |
| 211 | <version>${project.version}</version> |
| 212 | </dependency> |
ramverma | 9e318f2 | 2018-07-30 19:13:47 +0100 | [diff] [blame] | 213 | <dependency> |
| 214 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 215 | <artifactId>examples-servlet</artifactId> |
| 216 | <type>war</type> |
| 217 | <version>${project.version}</version> |
| 218 | </dependency> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 219 | </dependencies> |
| 220 | |
| 221 | <build> |
| 222 | <plugins> |
| 223 | <!-- Copy required resources and examples --> |
| 224 | <plugin> |
| 225 | <groupId>org.apache.maven.plugins</groupId> |
| 226 | <artifactId>maven-dependency-plugin</artifactId> |
| 227 | <executions> |
| 228 | <execution> |
| 229 | <id>unpack-etc-examples</id> |
| 230 | <phase>package</phase> |
| 231 | <goals> |
| 232 | <goal>unpack</goal> |
| 233 | </goals> |
| 234 | <configuration> |
| 235 | <artifactItems> |
| 236 | <artifactItem> |
| 237 | <groupId>org.onap.policy.apex-pdp.auth</groupId> |
| 238 | <artifactId>cli-editor</artifactId> |
ramverma | 28ea336 | 2018-07-18 16:28:07 +0100 | [diff] [blame] | 239 | <version>${project.version}</version> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 240 | <type>jar</type> |
| 241 | <overWrite>false</overWrite> |
| 242 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 243 | <includes>etc/**/*,examples/**/*</includes> |
| 244 | </artifactItem> |
| 245 | <artifactItem> |
ramverma | 28ea336 | 2018-07-18 16:28:07 +0100 | [diff] [blame] | 246 | <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId> |
| 247 | <artifactId>integration-common</artifactId> |
| 248 | <version>${project.version}</version> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 249 | <type>jar</type> |
| 250 | <overWrite>false</overWrite> |
ramverma | 28ea336 | 2018-07-18 16:28:07 +0100 | [diff] [blame] | 251 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 252 | <includes>etc/**/*,examples/**/*</includes> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 253 | </artifactItem> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 254 | <artifactItem> |
| 255 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 256 | <artifactId>examples-aadm</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 257 | <version>${project.version}</version> |
| 258 | <type>jar</type> |
| 259 | <overWrite>false</overWrite> |
| 260 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 261 | <includes>etc/**/*,examples/**/*</includes> |
| 262 | </artifactItem> |
| 263 | <artifactItem> |
| 264 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 265 | <artifactId>examples-adaptive</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 266 | <version>${project.version}</version> |
| 267 | <type>jar</type> |
| 268 | <overWrite>false</overWrite> |
| 269 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 270 | <includes>etc/**/*,examples/**/*</includes> |
| 271 | </artifactItem> |
| 272 | <artifactItem> |
| 273 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 274 | <artifactId>examples-myfirstpolicy</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 275 | <version>${project.version}</version> |
| 276 | <type>jar</type> |
| 277 | <overWrite>false</overWrite> |
| 278 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 279 | <includes>etc/**/*,examples/**/*</includes> |
| 280 | </artifactItem> |
| 281 | <artifactItem> |
| 282 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 283 | <artifactId>examples-pcvs</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 284 | <version>${project.version}</version> |
| 285 | <type>jar</type> |
| 286 | <overWrite>false</overWrite> |
| 287 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 288 | <includes>etc/**/*,examples/**/*</includes> |
| 289 | </artifactItem> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 290 | <artifactItem> |
| 291 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 292 | <artifactId>examples-decisionmaker</artifactId> |
| 293 | <version>${project.version}</version> |
| 294 | <type>jar</type> |
| 295 | <overWrite>false</overWrite> |
| 296 | <outputDirectory>${project.build.directory}/examples/models/DecisionMaker</outputDirectory> |
| 297 | <includes>/DecisionMakerPolicyModel.json</includes> |
| 298 | </artifactItem> |
| 299 | <artifactItem> |
| 300 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 301 | <artifactId>examples-periodic</artifactId> |
| 302 | <version>${project.version}</version> |
| 303 | <type>jar</type> |
| 304 | <overWrite>false</overWrite> |
| 305 | <outputDirectory>${project.build.directory}/examples/models/Periodic</outputDirectory> |
| 306 | <includes>/PeriodicPolicyModel.json</includes> |
| 307 | </artifactItem> |
| 308 | <artifactItem> |
| 309 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 310 | <artifactId>examples-onap-vcpe</artifactId> |
| 311 | <version>${project.version}</version> |
| 312 | <type>jar</type> |
| 313 | <overWrite>false</overWrite> |
| 314 | <outputDirectory>${project.build.directory}/examples/models/ONAPvCPE</outputDirectory> |
| 315 | <includes>/ONAPvCPEPolicyModel.json</includes> |
| 316 | </artifactItem> |
ramverma | 9e318f2 | 2018-07-30 19:13:47 +0100 | [diff] [blame] | 317 | <artifactItem> |
| 318 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 319 | <artifactId>examples-servlet</artifactId> |
| 320 | <version>${project.version}</version> |
| 321 | <type>war</type> |
| 322 | <overWrite>false</overWrite> |
| 323 | <outputDirectory>${project.build.directory}/etc</outputDirectory> |
| 324 | <includes>/readme_examples-servlet.txt</includes> |
| 325 | </artifactItem> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 326 | </artifactItems> |
| 327 | <overWriteReleases>true</overWriteReleases> |
| 328 | <overWriteSnapshots>true</overWriteSnapshots> |
| 329 | </configuration> |
| 330 | </execution> |
| 331 | </executions> |
| 332 | </plugin> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 333 | |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 334 | <!-- Build the tar ball --> |
| 335 | <plugin> |
| 336 | <groupId>org.apache.maven.plugins</groupId> |
| 337 | <artifactId>maven-assembly-plugin</artifactId> |
| 338 | <executions> |
| 339 | <execution> |
| 340 | <id>generate-complete-tar</id> |
| 341 | <phase>package</phase> |
| 342 | <goals> |
| 343 | <goal>single</goal> |
| 344 | </goals> |
| 345 | <configuration> |
| 346 | <descriptors> |
| 347 | <descriptor>src/main/package/tarball/assembly.xml</descriptor> |
| 348 | </descriptors> |
| 349 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 350 | </configuration> |
| 351 | </execution> |
| 352 | </executions> |
| 353 | </plugin> |
| 354 | <plugin> |
| 355 | <artifactId>maven-antrun-plugin</artifactId> |
| 356 | <executions> |
| 357 | <execution> |
| 358 | <phase>package</phase> |
| 359 | <configuration> |
| 360 | <tasks> |
| 361 | <untar |
| 362 | src="${project.build.directory}/${project.artifactId}-${project.version}-tarball.tar.gz" |
| 363 | dest="${project.build.directory}/install_hierarchy" compression="gzip" /> |
| 364 | </tasks> |
| 365 | </configuration> |
| 366 | <goals> |
| 367 | <goal>run</goal> |
| 368 | </goals> |
| 369 | </execution> |
| 370 | <execution> |
| 371 | <id>fix-permissions</id> |
| 372 | <phase>package</phase> |
| 373 | <configuration> |
| 374 | <tasks> |
| 375 | <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" /> |
| 376 | </tasks> |
| 377 | </configuration> |
| 378 | <goals> |
| 379 | <goal>run</goal> |
| 380 | </goals> |
| 381 | </execution> |
| 382 | </executions> |
| 383 | </plugin> |
| 384 | <!-- Build the dpkg distribution --> |
| 385 | <plugin> |
| 386 | <groupId>org.vafer</groupId> |
| 387 | <artifactId>jdeb</artifactId> |
| 388 | <version>1.5</version> |
| 389 | <executions> |
| 390 | <execution> |
| 391 | <phase>package</phase> |
| 392 | <goals> |
| 393 | <goal>jdeb</goal> |
| 394 | </goals> |
| 395 | <configuration> |
| 396 | <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb> |
| 397 | <controlDir>${basedir}/src/main/package/control</controlDir> |
| 398 | <dataSet> |
| 399 | <!-- Copy the Apex run time configuration --> |
| 400 | <data> |
| 401 | <src>${project.build.directory}/install_hierarchy/lib</src> |
| 402 | <type>directory</type> |
| 403 | <dst>lib</dst> |
| 404 | <mapper> |
| 405 | <type>perm</type> |
| 406 | <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/lib</prefix> |
| 407 | <filemode>755</filemode> |
| 408 | </mapper> |
| 409 | </data> |
| 410 | <data> |
| 411 | <src>${project.build.directory}/install_hierarchy/bin</src> |
| 412 | <type>directory</type> |
| 413 | <dst>etc</dst> |
| 414 | <mapper> |
| 415 | <type>perm</type> |
| 416 | <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/bin</prefix> |
| 417 | </mapper> |
| 418 | </data> |
| 419 | <data> |
| 420 | <src>${project.build.directory}/install_hierarchy/etc</src> |
| 421 | <type>directory</type> |
| 422 | <dst>etc</dst> |
| 423 | <mapper> |
| 424 | <type>perm</type> |
| 425 | <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/etc</prefix> |
| 426 | </mapper> |
| 427 | </data> |
| 428 | <data> |
ramverma | 9e318f2 | 2018-07-30 19:13:47 +0100 | [diff] [blame] | 429 | <src>${project.build.directory}/install_hierarchy/war</src> |
| 430 | <type>directory</type> |
| 431 | <dst>etc</dst> |
| 432 | <mapper> |
| 433 | <type>perm</type> |
| 434 | <prefix>/opt/app/policy/apex-pdp/${install.package.name}-${project.version}/war</prefix> |
| 435 | </mapper> |
| 436 | </data> |
| 437 | <data> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 438 | <src>${project.build.directory}/install_hierarchy/examples</src> |
| 439 | <type>directory</type> |
| 440 | <dst>etc</dst> |
| 441 | <mapper> |
| 442 | <type>perm</type> |
| 443 | <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/examples</prefix> |
| 444 | </mapper> |
| 445 | </data> |
| 446 | </dataSet> |
| 447 | </configuration> |
| 448 | </execution> |
| 449 | </executions> |
| 450 | </plugin> |
| 451 | </plugins> |
| 452 | </build> |
| 453 | <profiles> |
| 454 | <profile> |
| 455 | <id>Linux</id> |
| 456 | <activation> |
| 457 | <os> |
| 458 | <family>Linux</family> |
| 459 | </os> |
| 460 | </activation> |
| 461 | <build> |
| 462 | <plugins> |
| 463 | <!-- Build the rpm distribution --> |
| 464 | <!-- Skiping RPM Build for now, due to rpmbuild package not available on Jenkins servers --> |
| 465 | <!-- <plugin> |
| 466 | <groupId>org.codehaus.mojo</groupId> |
| 467 | <artifactId>rpm-maven-plugin</artifactId> |
| 468 | <version>2.2.0</version> |
| 469 | <extensions>true</extensions> |
| 470 | <executions> |
| 471 | <execution> |
| 472 | <phase>package</phase> |
| 473 | <goals> |
| 474 | <goal>rpm</goal> |
| 475 | </goals> |
| 476 | </execution> |
| 477 | </executions> |
| 478 | <configuration> |
| 479 | <name>${project.artifactId}</name> |
| 480 | <copyright>2015 Ericsson AB All rights reserved</copyright> |
| 481 | <distribution>${project.parent.artifactId}</distribution> |
| 482 | <group>ERI-APEX</group> |
| 483 | <packager>Ericsson</packager> |
| 484 | <prefix>/opt/app/policy/apex-pdp</prefix> |
| 485 | <changelogFile>src/rpm/changelog</changelogFile> |
| 486 | <needarch>noarch</needarch> |
| 487 | <targetVendor>redhat</targetVendor> |
| 488 | <targetOS>linux</targetOS> |
| 489 | <version>${project.version}</version> |
| 490 | <defineStatements> |
| 491 | <defineStatement>install_dir /opt/app/policy/apex-pdp</defineStatement> |
| 492 | </defineStatements> |
| 493 | <mappings> |
| 494 | <mapping> |
| 495 | <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/lib</directory> |
| 496 | <username>root</username> |
| 497 | <groupname>root</groupname> |
| 498 | <sources> |
| 499 | <source> |
| 500 | <location>${project.build.directory}/install_hierarchy/lib</location> |
| 501 | </source> |
| 502 | </sources> |
| 503 | </mapping> |
| 504 | <mapping> |
| 505 | <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/bin</directory> |
| 506 | <username>root</username> |
| 507 | <groupname>root</groupname> |
| 508 | <sources> |
| 509 | <source> |
| 510 | <location>${project.build.directory}/install_hierarchy/bin</location> |
| 511 | </source> |
| 512 | </sources> |
| 513 | </mapping> |
| 514 | <mapping> |
| 515 | <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/etc</directory> |
| 516 | <username>root</username> |
| 517 | <groupname>root</groupname> |
| 518 | <sources> |
| 519 | <source> |
| 520 | <location>${project.build.directory}/install_hierarchy/etc</location> |
| 521 | </source> |
| 522 | </sources> |
| 523 | </mapping> |
| 524 | <mapping> |
ramverma | 9e318f2 | 2018-07-30 19:13:47 +0100 | [diff] [blame] | 525 | <directory>/opt/app/policy/apex-pdp/${install.package.name}-${project.version}/war</directory> |
| 526 | <username>root</username> |
| 527 | <groupname>root</groupname> |
| 528 | <sources> |
| 529 | <source> |
| 530 | <location>${project.build.directory}/install_hierarchy/war</location> |
| 531 | </source> |
| 532 | </sources> |
| 533 | </mapping> |
| 534 | <mapping> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 535 | <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/examples</directory> |
| 536 | <username>root</username> |
| 537 | <groupname>root</groupname> |
| 538 | <sources> |
| 539 | <source> |
| 540 | <location>${project.build.directory}/install_hierarchy/examples</location> |
| 541 | </source> |
| 542 | </sources> |
| 543 | </mapping> |
| 544 | </mappings> |
| 545 | <preinstallScriptlet> |
| 546 | <scriptFile>src/main/package/control/preinst</scriptFile> |
| 547 | </preinstallScriptlet> |
| 548 | <postinstallScriptlet> |
| 549 | <scriptFile>src/main/package/control/postinst</scriptFile> |
| 550 | </postinstallScriptlet> |
| 551 | <preremoveScriptlet> |
| 552 | <scriptFile>src/main/package/control/prerm</scriptFile> |
| 553 | </preremoveScriptlet> |
| 554 | <postremoveScriptlet> |
| 555 | <scriptFile>src/main/package/control/postrm</scriptFile> |
| 556 | </postremoveScriptlet> |
| 557 | </configuration> |
| 558 | </plugin> |
| 559 | <plugin> |
| 560 | <groupId>org.codehaus.mojo</groupId> |
| 561 | <artifactId>exec-maven-plugin</artifactId> |
| 562 | <executions> |
| 563 | <execution> |
| 564 | <phase>package</phase> |
| 565 | <goals> |
| 566 | <goal>exec</goal> |
| 567 | </goals> |
| 568 | </execution> |
| 569 | </executions> |
| 570 | <configuration> |
| 571 | <executable>sh</executable> |
| 572 | <arguments> |
| 573 | <argument>-c</argument> |
| 574 | <argument>cp \ |
| 575 | ${project.build.directory}/rpm/${project.artifactId}/RPMS/noarch/${project.artifactId}-${project.version}*.noarch.rpm \ |
| 576 | \ |
| 577 | ${project.build.directory}/${project.artifactId}-${project.version}.rpm</argument> |
| 578 | </arguments> |
| 579 | </configuration> |
| 580 | </plugin> |
| 581 | <plugin> |
| 582 | <groupId>org.codehaus.mojo</groupId> |
| 583 | <artifactId>build-helper-maven-plugin</artifactId> |
| 584 | <version>3.0.0</version> |
| 585 | <executions> |
| 586 | <execution> |
| 587 | <id>attach-artifacts</id> |
| 588 | <phase>package</phase> |
| 589 | <goals> |
| 590 | <goal>attach-artifact</goal> |
| 591 | </goals> |
| 592 | <configuration> |
| 593 | <artifacts> |
| 594 | <artifact> |
| 595 | <file>${project.build.directory}/${project.artifactId}-${project.version}.rpm</file> |
| 596 | <type>rpm</type> |
| 597 | </artifact> |
| 598 | </artifacts> |
| 599 | </configuration> |
| 600 | </execution> |
| 601 | </executions> |
| 602 | </plugin> --> |
| 603 | </plugins> |
| 604 | </build> |
| 605 | </profile> |
| 606 | <profile> |
| 607 | <id>only-eclipse</id> |
| 608 | <activation> |
| 609 | <property> |
| 610 | <name>m2e.version</name> |
| 611 | </property> |
| 612 | </activation> |
| 613 | <build> |
| 614 | <pluginManagement> |
| 615 | <plugins> |
| 616 | <plugin> |
| 617 | <groupId>org.eclipse.m2e</groupId> |
| 618 | <artifactId>lifecycle-mapping</artifactId> |
| 619 | <configuration> |
| 620 | <lifecycleMappingMetadata> |
| 621 | <pluginExecutions> |
| 622 | <pluginExecution> |
| 623 | <pluginExecutionFilter> |
| 624 | <groupId>org.apache.maven.plugins</groupId> |
| 625 | <artifactId>maven-dependency-plugin</artifactId> |
| 626 | <versionRange>${maven-dependency-plugin.version}</versionRange> |
| 627 | <goals> |
| 628 | <goal>unpack</goal> |
| 629 | <goal>copy</goal> |
| 630 | </goals> |
| 631 | </pluginExecutionFilter> |
| 632 | <action> |
| 633 | <ignore /> |
| 634 | </action> |
| 635 | </pluginExecution> |
| 636 | </pluginExecutions> |
| 637 | </lifecycleMappingMetadata> |
| 638 | </configuration> |
| 639 | </plugin> |
| 640 | </plugins> |
| 641 | </pluginManagement> |
| 642 | </build> |
| 643 | </profile> |
Dinh Danh Le | 4f0e4e0 | 2018-08-09 10:51:44 +0100 | [diff] [blame] | 644 | |
| 645 | <profile> |
| 646 | <id>apexSite</id> |
| 647 | <activation> |
| 648 | <property> |
| 649 | <name>apexSite</name> |
| 650 | </property> |
| 651 | </activation> |
| 652 | <distributionManagement> |
| 653 | <site> |
| 654 | <id>${project.artifactId}-site</id> |
| 655 | <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url> |
| 656 | </site> |
| 657 | </distributionManagement> |
| 658 | </profile> |
waqas.ikram | bb89ed3 | 2018-06-18 14:04:52 +0100 | [diff] [blame] | 659 | </profiles> |
liamfallon | 5906f30 | 2018-07-10 12:25:19 +0300 | [diff] [blame] | 660 | </project> |