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"
18 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20 <modelVersion>4.0.0</modelVersion>
22 <groupId>org.onap.ccsdk.apps.blueprintsprocessor</groupId>
23 <artifactId>parent</artifactId>
24 <version>0.4.1-SNAPSHOT</version>
25 <relativePath>../parent</relativePath>
27 <artifactId>distribution</artifactId>
28 <packaging>pom</packaging>
29 <name>Blueprints Processor Distribution</name>
31 <assembly.id>maven</assembly.id>
32 <name.space>org.onap.ccsdk.apps</name.space>
33 <serviceArtifactName>blueprintsprocessor</serviceArtifactName>
34 <image.name>onap/ccsdk-blueprintsprocessor</image.name>
35 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
36 <docker.push.phase>deploy</docker.push.phase>
37 <docker.verbose>true</docker.verbose>
38 <ccsdk.project.version>${project.version}</ccsdk.project.version>
39 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
44 <groupId>org.onap.ccsdk.apps.blueprintsprocessor</groupId>
45 <artifactId>application</artifactId>
51 <artifactId>maven-resources-plugin</artifactId>
52 <version>2.6</version>
55 <id>copy-dockerfile</id>
57 <goal>copy-resources</goal>
58 </goals><!-- here the phase you need -->
59 <phase>validate</phase>
61 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
64 <directory>src/main/docker</directory>
68 <filtering>true</filtering>
76 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-antrun-plugin</artifactId>
81 <phase>package</phase>
84 <fixcrlf srcdir="${basedir}" eol="unix"
85 includes="**/*.sh, **/*.source" />
95 <!--build the final artifact for docker deployment -->
96 <artifactId>maven-assembly-plugin</artifactId>
97 <version>3.1.0</version>
99 <!-- <skipAssembly>${skip.assembly}</skipAssembly> -->
100 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
102 <descriptor>src/main/docker/distribution.xml</descriptor>
104 <tarLongFileMode>posix</tarLongFileMode>
108 <id>${assembly.id}</id>
109 <phase>package</phase>
117 <groupId>org.codehaus.groovy.maven</groupId>
118 <artifactId>gmaven-plugin</artifactId>
119 <version>1.0</version>
122 <phase>validate</phase>
127 <source>${basedir}/../../../TagVersion.groovy</source>
142 <groupId>io.fabric8</groupId>
143 <artifactId>docker-maven-plugin</artifactId>
144 <version>0.26.1</version>
145 <inherited>false</inherited>
149 <name>${image.name}</name>
151 <cleanup>try</cleanup>
152 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
154 <tag>${project.docker.latestminortag.version}</tag>
155 <tag>${project.docker.latestfulltag.version}</tag>
156 <tag>${project.docker.latesttagtimestamp.version}</tag>
161 <verbose>true</verbose>
165 <id>generate-images</id>
166 <phase>package</phase>
173 <phase>${docker.push.phase}</phase>