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>sdclistener-parent</artifactId>
23 <version>1.5.0-SNAPSHOT</version>
24 <relativePath>../parent</relativePath>
27 <artifactId>sdclistener-distribution</artifactId>
28 <packaging>pom</packaging>
30 <name>MS SDC Listener - Distribution</name>
33 <serviceArtifactName>sdclistener</serviceArtifactName>
34 <image.name>onap/ccsdk-sdclistener</image.name>
39 <groupId>org.onap.ccsdk.cds.sdclistener</groupId>
40 <artifactId>sdclistener-application</artifactId>
47 <artifactId>maven-resources-plugin</artifactId>
48 <version>2.6</version>
51 <id>copy-dockerfile</id>
53 <goal>copy-resources</goal>
54 </goals><!-- here the phase you need -->
55 <phase>validate</phase>
57 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
60 <directory>src/main/docker</directory>
64 <filtering>true</filtering>
72 <groupId>org.apache.maven.plugins</groupId>
73 <artifactId>maven-antrun-plugin</artifactId>
77 <phase>package</phase>
80 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
89 <plugin><!--build the final artifact for docker deployment -->
90 <artifactId>maven-assembly-plugin</artifactId>
91 <version>3.1.0</version>
93 <!-- <skipAssembly>${skip.assembly}</skipAssembly> -->
94 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
96 <descriptor>src/main/docker/distribution.xml</descriptor>
98 <tarLongFileMode>posix</tarLongFileMode>
102 <id>${assembly.id}</id>
103 <phase>package</phase>
111 <groupId>org.codehaus.gmaven</groupId>
112 <artifactId>groovy-maven-plugin</artifactId>
113 <version>2.1.1</version>
116 <phase>validate</phase>
121 <source>${basedir}/../../../TagVersion.groovy</source>
136 <groupId>io.fabric8</groupId>
137 <artifactId>docker-maven-plugin</artifactId>
138 <version>0.34.0</version>
139 <inherited>false</inherited>
143 <name>${image.name}</name>
145 <cleanup>try</cleanup>
146 <noCache>true</noCache>
147 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
149 <tag>${project.docker.latestminortag.version}</tag>
150 <tag>${project.docker.latestfulltag.version}</tag>
151 <tag>${project.docker.latesttagtimestamp.version}</tag>
156 <verbose>${docker.verbose}</verbose>
157 <skipPush>${docker.skip.push}</skipPush>
161 <id>build-push-images</id>