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>
20 <groupId>org.onap.ccsdk.cds.sdclistener</groupId>
21 <artifactId>parent</artifactId>
22 <version>0.5.0-SNAPSHOT</version>
23 <relativePath>../parent</relativePath>
25 <artifactId>distribution</artifactId>
26 <packaging>pom</packaging>
27 <name>SDC Listener Distribution</name>
29 <assembly.id>maven</assembly.id>
30 <name.space>org.onap.ccsdk.cds</name.space>
31 <serviceArtifactName>sdclistener</serviceArtifactName>
32 <image.name>onap/ccsdk-sdclistener</image.name>
33 <!--disabled for now to mirror #85964 https://gerrit.onap.org/r/#/c/85964/2/ms/command-executor/pom.xml-->
34 <!--<docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>-->
35 <docker.push.phase>deploy</docker.push.phase>
36 <docker.verbose>true</docker.verbose>
37 <ccsdk.project.version>${project.version}</ccsdk.project.version>
38 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
43 <groupId>org.onap.ccsdk.cds.sdclistener</groupId>
44 <artifactId>application</artifactId>
50 <artifactId>maven-resources-plugin</artifactId>
51 <version>2.6</version>
54 <id>copy-dockerfile</id>
56 <goal>copy-resources</goal>
57 </goals><!-- here the phase you need -->
58 <phase>validate</phase>
60 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
63 <directory>src/main/docker</directory>
67 <filtering>true</filtering>
75 <groupId>org.apache.maven.plugins</groupId>
76 <artifactId>maven-antrun-plugin</artifactId>
80 <phase>package</phase>
83 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
93 <!--build the final artifact for docker deployment -->
94 <artifactId>maven-assembly-plugin</artifactId>
95 <version>3.1.0</version>
97 <!-- <skipAssembly>${skip.assembly}</skipAssembly> -->
98 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
100 <descriptor>src/main/docker/distribution.xml</descriptor>
102 <tarLongFileMode>posix</tarLongFileMode>
106 <id>${assembly.id}</id>
107 <phase>package</phase>
115 <groupId>org.codehaus.groovy.maven</groupId>
116 <artifactId>gmaven-plugin</artifactId>
117 <version>1.0</version>
120 <phase>validate</phase>
125 <source>${basedir}/../../../TagVersion.groovy</source>
140 <groupId>io.fabric8</groupId>
141 <artifactId>docker-maven-plugin</artifactId>
142 <version>0.26.1</version>
143 <inherited>false</inherited>
147 <name>${image.name}</name>
149 <cleanup>try</cleanup>
150 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
152 <tag>${project.docker.latestminortag.version}</tag>
153 <tag>${project.docker.latestfulltag.version}</tag>
154 <tag>${project.docker.latesttagtimestamp.version}</tag>
159 <verbose>true</verbose>
163 <id>generate-images</id>
164 <phase>package</phase>
171 <phase>${docker.push.phase}</phase>