Code changes needed to resolve openjdk17 issues
[ccsdk/cds.git] / ms / command-executor / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~  Copyright © 2019 Bell Canada.
4   ~
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
8   ~
9   ~      http://www.apache.org/licenses/LICENSE-2.0
10   ~
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.
16   -->
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>
19
20     <parent>
21         <groupId>org.onap.ccsdk.cds</groupId>
22         <artifactId>cds-ms</artifactId>
23         <version>1.5.0-SNAPSHOT</version>
24         <relativePath>..</relativePath>
25     </parent>
26
27     <artifactId>command-executor</artifactId>
28     <packaging>pom</packaging>
29
30     <name>MS Command Executor</name>
31     <description>Micro-service providing python environment with gRPC binding for command execution</description>
32
33     <properties>
34         <image.name>onap/ccsdk-commandexecutor</image.name>
35     </properties>
36
37     <build>
38         <plugins>
39             <plugin>
40                 <artifactId>maven-resources-plugin</artifactId>
41                 <version>2.6</version>
42                 <executions>
43                     <execution>
44                         <id>copy-dockerfile</id>
45                         <goals>
46                             <goal>copy-resources</goal>
47                         </goals>
48                         <phase>validate</phase>
49                         <configuration>
50                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
51                             <resources>
52                                 <resource>
53                                     <directory>src/main/docker</directory>
54                                     <includes>
55                                         <include>Dockerfile</include>
56                                         <include>start.sh</include>
57                                     </includes>
58                                     <filtering>true</filtering>
59                                 </resource>
60                             </resources>
61                         </configuration>
62                     </execution>
63                 </executions>
64             </plugin>
65             <plugin>
66                 <artifactId>maven-assembly-plugin</artifactId>
67                 <version>3.1.0</version>
68                 <configuration>
69                     <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
70                     <descriptors>
71                         <descriptor>src/main/docker/distribution.xml</descriptor>
72                     </descriptors>
73                     <tarLongFileMode>posix</tarLongFileMode>
74                 </configuration>
75                 <executions>
76                     <execution>
77                         <id>${assembly.id}</id>
78                         <phase>package</phase>
79                         <goals>
80                             <goal>single</goal>
81                         </goals>
82                     </execution>
83                 </executions>
84             </plugin>
85             <plugin>
86                 <groupId>org.codehaus.gmaven</groupId>
87                 <artifactId>groovy-maven-plugin</artifactId>
88                 <version>2.1.1</version>
89                 <executions>
90                     <execution>
91                         <phase>validate</phase>
92                         <goals>
93                             <goal>execute</goal>
94                         </goals>
95                         <configuration>
96                             <source>${basedir}/../../TagVersion.groovy</source>
97                         </configuration>
98                     </execution>
99                 </executions>
100             </plugin>
101         </plugins>
102     </build>
103
104     <profiles>
105         <profile>
106             <id>docker</id>
107             <build>
108                 <plugins>
109                     <plugin>
110                         <groupId>io.fabric8</groupId>
111                         <artifactId>docker-maven-plugin</artifactId>
112                         <version>0.34.0</version>
113                         <inherited>false</inherited>
114                         <configuration>
115                             <images>
116                                 <image>
117                                     <name>${image.name}</name>
118                                     <build>
119                                         <cleanup>try</cleanup>
120                                         <noCache>true</noCache>
121                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
122                                         <tags>
123                                             <tag>${project.docker.latestminortag.version}</tag>
124                                             <tag>${project.docker.latestfulltag.version}</tag>
125                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
126                                         </tags>
127                                     </build>
128                                 </image>
129                             </images>
130                             <verbose>${docker.verbose}</verbose>
131                             <skipPush>${docker.skip.push}</skipPush>
132                         </configuration>
133                         <executions>
134                             <execution>
135                                 <id>build-push-images</id>
136                                 <goals>
137                                     <goal>build</goal>
138                                     <goal>push</goal>
139                                 </goals>
140                             </execution>
141                         </executions>
142                     </plugin>
143                 </plugins>
144             </build>
145         </profile>
146     </profiles>
147 </project>