blob: a56750a50097ee04884c5d2bda65d8af076cd687 [file] [log] [blame]
mmisef24b052018-07-10 10:50:05 +01001<!--
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-->
liamfallon3aa7cbe2018-10-31 16:35:54 +000020<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
mmisef24b052018-07-10 10:50:05 +010021 <modelVersion>4.0.0</modelVersion>
22 <parent>
23 <groupId>org.onap.policy.apex-pdp.packages</groupId>
24 <artifactId>packages</artifactId>
liamfallon3aa7cbe2018-10-31 16:35:54 +000025 <version>2.1.0-SNAPSHOT</version>
mmisef24b052018-07-10 10:50:05 +010026 </parent>
27
28 <artifactId>apex-pdp-docker</artifactId>
29 <packaging>pom</packaging>
30 <name>Policy APEX PDP - Docker build</name>
31 <description>ONAP Policy APEX PDP Docker Build</description>
32
33 <build>
34 <plugins>
35 <plugin>
36 <groupId>org.apache.maven.plugins</groupId>
37 <artifactId>maven-dependency-plugin</artifactId>
38 <executions>
39 <execution>
40 <id>copy-apex-tarball</id>
41 <phase>prepare-package</phase>
42 <goals>
43 <goal>copy</goal>
44 </goals>
45 <configuration>
46 <outputDirectory>${project.build.directory}/policy-apex-pdp</outputDirectory>
47 <overWriteReleases>false</overWriteReleases>
48 <overWriteSnapshots>true</overWriteSnapshots>
49 <artifactItems>
50 <artifactItem>
51 <groupId>org.onap.policy.apex-pdp.packages</groupId>
52 <artifactId>apex-pdp-package-full</artifactId>
53 <version>${project.version}</version>
54 <classifier>tarball</classifier>
55 <type>tar.gz</type>
56 <destFileName>apex-pdp-package-full.tar.gz</destFileName>
57 </artifactItem>
58 </artifactItems>
59 </configuration>
60 </execution>
61 </executions>
62 </plugin>
63 <plugin>
64 <artifactId>maven-resources-plugin</artifactId>
mmisef24b052018-07-10 10:50:05 +010065 <executions>
66 <execution>
67 <id>copy-resources</id>
68 <phase>prepare-package</phase>
69 <goals>
70 <goal>copy-resources</goal>
71 </goals>
72 <configuration>
73 <outputDirectory>${project.build.directory}/policy-apex-pdp</outputDirectory>
74 <resources>
75 <resource>
76 <directory>src/main/docker</directory>
77 </resource>
78 </resources>
79 </configuration>
80 </execution>
81 </executions>
82 </plugin>
83
84 <plugin>
85 <groupId>org.codehaus.mojo</groupId>
86 <artifactId>exec-maven-plugin</artifactId>
mmisef24b052018-07-10 10:50:05 +010087 <executions>
88 <execution>
89 <id>get-target-version</id>
90 <phase>prepare-package</phase>
91 <goals>
92 <goal>exec</goal>
93 </goals>
94 </execution>
95 </executions>
96 <configuration>
97 <executable>echo</executable>
98 <workingDirectory>${project.build.directory}</workingDirectory>
99 <arguments>
100 <argument>${project.version}</argument>
101 </arguments>
102 <outputFile>${project.build.directory}/version</outputFile>
103 </configuration>
104 </plugin>
mmisef24b052018-07-10 10:50:05 +0100105 </plugins>
106 </build>
107
Dinh Danh Le4f0e4e02018-08-09 10:51:44 +0100108 <profiles>
109 <profile>
110 <id>apexSite</id>
111 <activation>
112 <property>
113 <name>apexSite</name>
114 </property>
115 </activation>
liamfallona41c8772018-09-05 15:46:31 +0100116 <properties>
117 <adsite-packages-docker-dir>${project.basedir}/src</adsite-packages-docker-dir>
118 </properties>
Dinh Danh Le4f0e4e02018-08-09 10:51:44 +0100119 <distributionManagement>
120 <site>
121 <id>${project.artifactId}-site</id>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100122 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
Dinh Danh Le4f0e4e02018-08-09 10:51:44 +0100123 </site>
124 </distributionManagement>
125 </profile>
126 </profiles>
127</project>