mmis | ef24b05 | 2018-07-10 10:50:05 +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-docker</artifactId> |
| 30 | <packaging>pom</packaging> |
| 31 | <name>Policy APEX PDP - Docker build</name> |
| 32 | <description>ONAP Policy APEX PDP Docker Build</description> |
| 33 | |
| 34 | <build> |
| 35 | <plugins> |
| 36 | <plugin> |
| 37 | <groupId>org.apache.maven.plugins</groupId> |
| 38 | <artifactId>maven-dependency-plugin</artifactId> |
| 39 | <executions> |
| 40 | <execution> |
| 41 | <id>copy-apex-tarball</id> |
| 42 | <phase>prepare-package</phase> |
| 43 | <goals> |
| 44 | <goal>copy</goal> |
| 45 | </goals> |
| 46 | <configuration> |
| 47 | <outputDirectory>${project.build.directory}/policy-apex-pdp</outputDirectory> |
| 48 | <overWriteReleases>false</overWriteReleases> |
| 49 | <overWriteSnapshots>true</overWriteSnapshots> |
| 50 | <artifactItems> |
| 51 | <artifactItem> |
| 52 | <groupId>org.onap.policy.apex-pdp.packages</groupId> |
| 53 | <artifactId>apex-pdp-package-full</artifactId> |
| 54 | <version>${project.version}</version> |
| 55 | <classifier>tarball</classifier> |
| 56 | <type>tar.gz</type> |
| 57 | <destFileName>apex-pdp-package-full.tar.gz</destFileName> |
| 58 | </artifactItem> |
| 59 | </artifactItems> |
| 60 | </configuration> |
| 61 | </execution> |
| 62 | </executions> |
| 63 | </plugin> |
| 64 | <plugin> |
| 65 | <artifactId>maven-resources-plugin</artifactId> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 66 | <executions> |
| 67 | <execution> |
| 68 | <id>copy-resources</id> |
| 69 | <phase>prepare-package</phase> |
| 70 | <goals> |
| 71 | <goal>copy-resources</goal> |
| 72 | </goals> |
| 73 | <configuration> |
| 74 | <outputDirectory>${project.build.directory}/policy-apex-pdp</outputDirectory> |
| 75 | <resources> |
| 76 | <resource> |
| 77 | <directory>src/main/docker</directory> |
| 78 | </resource> |
| 79 | </resources> |
| 80 | </configuration> |
| 81 | </execution> |
| 82 | </executions> |
| 83 | </plugin> |
| 84 | |
| 85 | <plugin> |
| 86 | <groupId>org.codehaus.mojo</groupId> |
| 87 | <artifactId>exec-maven-plugin</artifactId> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 88 | <executions> |
| 89 | <execution> |
| 90 | <id>get-target-version</id> |
| 91 | <phase>prepare-package</phase> |
| 92 | <goals> |
| 93 | <goal>exec</goal> |
| 94 | </goals> |
| 95 | </execution> |
| 96 | </executions> |
| 97 | <configuration> |
| 98 | <executable>echo</executable> |
| 99 | <workingDirectory>${project.build.directory}</workingDirectory> |
| 100 | <arguments> |
| 101 | <argument>${project.version}</argument> |
| 102 | </arguments> |
| 103 | <outputFile>${project.build.directory}/version</outputFile> |
| 104 | </configuration> |
| 105 | </plugin> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 106 | </plugins> |
| 107 | </build> |
| 108 | |
Dinh Danh Le | 4f0e4e0 | 2018-08-09 10:51:44 +0100 | [diff] [blame] | 109 | <profiles> |
| 110 | <profile> |
| 111 | <id>apexSite</id> |
| 112 | <activation> |
| 113 | <property> |
| 114 | <name>apexSite</name> |
| 115 | </property> |
| 116 | </activation> |
| 117 | <distributionManagement> |
| 118 | <site> |
| 119 | <id>${project.artifactId}-site</id> |
Dinh Danh Le | a5a4427 | 2018-08-22 12:41:50 +0100 | [diff] [blame^] | 120 | <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url> |
Dinh Danh Le | 4f0e4e0 | 2018-08-09 10:51:44 +0100 | [diff] [blame] | 121 | </site> |
| 122 | </distributionManagement> |
| 123 | </profile> |
| 124 | </profiles> |
| 125 | </project> |