1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ Copyright © 2019 IBM, Bell Canada.
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
9 ~ http://www.apache.org/licenses/LICENSE-2.0
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.
17 <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">
18 <modelVersion>4.0.0</modelVersion>
21 <groupId>org.onap.ccsdk.cds.sdclistener</groupId>
22 <artifactId>parent</artifactId>
23 <version>0.7.1-SNAPSHOT</version>
24 <relativePath>../parent</relativePath>
27 <artifactId>distribution</artifactId>
28 <packaging>pom</packaging>
30 <name>SDC Listener Distribution</name>
33 <assembly.id>maven</assembly.id>
34 <name.space>org.onap.ccsdk.cds</name.space>
35 <serviceArtifactName>sdclistener</serviceArtifactName>
36 <image.name>onap/ccsdk-sdclistener</image.name>
37 <!--disabled for now to mirror #85964 https://gerrit.onap.org/r/#/c/85964/2/ms/command-executor/pom.xml-->
38 <!--<docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>-->
39 <docker.push.phase>deploy</docker.push.phase>
40 <docker.verbose>true</docker.verbose>
41 <ccsdk.project.version>${project.version}</ccsdk.project.version>
42 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
47 <groupId>org.onap.ccsdk.cds.sdclistener</groupId>
48 <artifactId>application</artifactId>
55 <artifactId>maven-resources-plugin</artifactId>
56 <version>2.6</version>
59 <id>copy-dockerfile</id>
61 <goal>copy-resources</goal>
62 </goals><!-- here the phase you need -->
63 <phase>validate</phase>
65 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
68 <directory>src/main/docker</directory>
72 <filtering>true</filtering>
80 <groupId>org.apache.maven.plugins</groupId>
81 <artifactId>maven-antrun-plugin</artifactId>
85 <phase>package</phase>
88 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
97 <plugin><!--build the final artifact for docker deployment -->
98 <artifactId>maven-assembly-plugin</artifactId>
99 <version>3.1.0</version>
101 <!-- <skipAssembly>${skip.assembly}</skipAssembly> -->
102 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
104 <descriptor>src/main/docker/distribution.xml</descriptor>
106 <tarLongFileMode>posix</tarLongFileMode>
110 <id>${assembly.id}</id>
111 <phase>package</phase>
119 <groupId>org.codehaus.groovy.maven</groupId>
120 <artifactId>gmaven-plugin</artifactId>
121 <version>1.0</version>
124 <phase>validate</phase>
129 <source>${basedir}/../../../TagVersion.groovy</source>
144 <groupId>io.fabric8</groupId>
145 <artifactId>docker-maven-plugin</artifactId>
146 <version>0.26.1</version>
147 <inherited>false</inherited>
151 <name>${image.name}</name>
153 <cleanup>try</cleanup>
154 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
156 <tag>${project.docker.latestminortag.version}</tag>
157 <tag>${project.docker.latestfulltag.version}</tag>
158 <tag>${project.docker.latesttagtimestamp.version}</tag>
163 <verbose>true</verbose>
167 <id>generate-images</id>
168 <phase>package</phase>
175 <phase>${docker.push.phase}</phase>