1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ Copyright © 2019 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</groupId>
21 <artifactId>ms</artifactId>
22 <version>0.5.2-SNAPSHOT</version>
23 <relativePath>..</relativePath>
25 <artifactId>command-executor</artifactId>
26 <packaging>pom</packaging>
27 <name>Command Executor</name>
28 <description>Micro-service providing python environment with gRPC binding for command execution</description>
31 <assembly.id>maven</assembly.id>
32 <image.name>onap/ccsdk-commandexecutor</image.name>
33 <docker.push.phase>deploy</docker.push.phase>
34 <docker.verbose>true</docker.verbose>
35 <ccsdk.project.version>${project.version}</ccsdk.project.version>
36 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
37 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
43 <artifactId>maven-resources-plugin</artifactId>
44 <version>2.6</version>
47 <id>copy-dockerfile</id>
49 <goal>copy-resources</goal>
51 <phase>validate</phase>
53 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
56 <directory>src/main/docker</directory>
58 <include>Dockerfile</include>
59 <include>start.sh</include>
61 <filtering>true</filtering>
69 <artifactId>maven-assembly-plugin</artifactId>
70 <version>3.1.0</version>
72 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
74 <descriptor>src/main/docker/distribution.xml</descriptor>
76 <tarLongFileMode>posix</tarLongFileMode>
80 <id>${assembly.id}</id>
81 <phase>package</phase>
89 <groupId>org.codehaus.groovy.maven</groupId>
90 <artifactId>gmaven-plugin</artifactId>
91 <version>1.0</version>
94 <phase>validate</phase>
99 <source>${basedir}/../../TagVersion.groovy</source>
113 <groupId>io.fabric8</groupId>
114 <artifactId>docker-maven-plugin</artifactId>
115 <version>0.26.1</version>
116 <inherited>false</inherited>
120 <name>${image.name}</name>
122 <cleanup>try</cleanup>
123 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
125 <tag>${project.docker.latestminortag.version}</tag>
126 <tag>${project.docker.latestfulltag.version}</tag>
127 <tag>${project.docker.latesttagtimestamp.version}</tag>
132 <verbose>true</verbose>
136 <id>generate-images</id>
137 <phase>package</phase>
144 <phase>${docker.push.phase}</phase>