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.blueprintsprocessor</groupId>
22 <artifactId>parent</artifactId>
23 <version>0.7.0-SNAPSHOT</version>
24 <relativePath>../parent</relativePath>
27 <artifactId>distribution</artifactId>
28 <packaging>pom</packaging>
30 <name>Blueprints Processor Distribution</name>
33 <assembly.id>maven</assembly.id>
34 <name.space>org.onap.ccsdk.cds</name.space>
35 <serviceArtifactName>blueprintsprocessor</serviceArtifactName>
36 <image.name>onap/ccsdk-blueprintsprocessor</image.name>
37 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
38 <docker.push.phase>deploy</docker.push.phase>
39 <docker.verbose>true</docker.verbose>
40 <ccsdk.project.version>${project.version}</ccsdk.project.version>
41 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
46 <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
47 <artifactId>application</artifactId>
54 <artifactId>maven-resources-plugin</artifactId>
55 <version>2.6</version>
58 <id>copy-dockerfile</id>
60 <goal>copy-resources</goal>
61 </goals><!-- here the phase you need -->
62 <phase>validate</phase>
64 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
67 <directory>src/main/docker</directory>
71 <filtering>true</filtering>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-antrun-plugin</artifactId>
84 <phase>package</phase>
87 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
96 <plugin><!--build the final artifact for docker deployment -->
97 <artifactId>maven-assembly-plugin</artifactId>
98 <version>3.1.0</version>
100 <!-- <skipAssembly>${skip.assembly}</skipAssembly> -->
101 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
103 <descriptor>src/main/docker/distribution.xml</descriptor>
105 <tarLongFileMode>posix</tarLongFileMode>
109 <id>${assembly.id}</id>
110 <phase>package</phase>
118 <groupId>org.codehaus.groovy.maven</groupId>
119 <artifactId>gmaven-plugin</artifactId>
120 <version>1.0</version>
123 <phase>validate</phase>
128 <source>${basedir}/../../../TagVersion.groovy</source>
143 <groupId>io.fabric8</groupId>
144 <artifactId>docker-maven-plugin</artifactId>
145 <version>0.26.1</version>
146 <inherited>false</inherited>
150 <name>${image.name}</name>
152 <cleanup>try</cleanup>
153 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
155 <tag>${project.docker.latestminortag.version}</tag>
156 <tag>${project.docker.latestfulltag.version}</tag>
157 <tag>${project.docker.latesttagtimestamp.version}</tag>
162 <verbose>true</verbose>
166 <id>generate-images</id>
167 <phase>package</phase>
174 <phase>${docker.push.phase}</phase>