Remove proxy docker buildArg
[ccsdk/cds.git] / ms / cds-sdc-listener / application / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright (C) 2019 Bell Canada. All rights reserved.
4   ~
5   ~ NOTICE:  All the intellectual and technical concepts contained herein are
6   ~ proprietary to Bell Canada and are protected by trade secret or copyright law.
7   ~ Unauthorized copying of this file, via any medium is strictly prohibited.
8   -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11
12   <parent>
13     <groupId>org.onap.ccsdk.parent</groupId>
14     <artifactId>spring-boot-starter-parent</artifactId>
15     <version>1.2.2-SNAPSHOT</version>
16   </parent>
17
18   <groupId>org.onap.ccsdk.cds</groupId>
19   <modelVersion>4.0.0</modelVersion>
20   <artifactId>cds-sdc-listener-application</artifactId>
21   <version>0.4.2-SNAPSHOT</version>
22   <name>CDS-SDC Listener Application</name>
23
24   <properties>
25     <grpc.version>1.17.1</grpc.version>
26     <protobuf.version>3.6.1</protobuf.version>
27     <image.name>onap/ccsdk-cds-sdc-listener</image.name>
28     <docker.push.phase>deploy</docker.push.phase>
29     <project.version>${parent.version}</project.version>
30     <!-- Start of Docker Related Properties -->
31     <docker.fabric.version>0.26.1</docker.fabric.version>
32     <ccsdk.project.version>${project.version}</ccsdk.project.version>
33   </properties>
34
35   <dependencies>
36     <!-- Spring boot -->
37     <dependency>
38       <groupId>org.springframework.boot</groupId>
39       <artifactId>spring-boot-starter-web</artifactId>
40     </dependency>
41     <dependency>
42       <groupId>org.springframework.boot</groupId>
43       <artifactId>spring-boot-starter-test</artifactId>
44       <scope>test</scope>
45     </dependency>
46
47     <!-- SDC Distribution client dependency -->
48     <dependency>
49       <groupId>org.onap.sdc.sdc-distribution-client</groupId>
50       <artifactId>sdc-distribution-client</artifactId>
51       <version>1.3.0</version>
52     </dependency>
53
54     <dependency>
55       <groupId>org.jmockit</groupId>
56       <artifactId>jmockit</artifactId>
57       <version>1.19</version>
58       <scope>test</scope>
59     </dependency>
60
61     <!-- GRPC Dependencies -->
62     <dependency>
63       <groupId>io.grpc</groupId>
64       <artifactId>grpc-netty</artifactId>
65       <version>${grpc.version}</version>
66     </dependency>
67     <dependency>
68       <groupId>io.grpc</groupId>
69       <artifactId>grpc-protobuf</artifactId>
70       <version>${grpc.version}</version>
71     </dependency>
72     <dependency>
73       <groupId>io.grpc</groupId>
74       <artifactId>grpc-stub</artifactId>
75       <version>${grpc.version}</version>
76     </dependency>
77     <dependency>
78       <groupId>com.google.protobuf</groupId>
79       <artifactId>protobuf-java</artifactId>
80       <version>${protobuf.version}</version>
81     </dependency>
82     <dependency>
83       <groupId>io.grpc</groupId>
84       <artifactId>grpc-testing</artifactId>
85       <version>${grpc.version}</version>
86       <scope>test</scope>
87     </dependency>
88     <dependency>
89       <groupId>org.onap.ccsdk.cds.components</groupId>
90       <artifactId>proto-definition</artifactId>
91       <version>${project.version}</version>
92     </dependency>
93
94     <dependency>
95       <groupId>io.projectreactor</groupId>
96       <artifactId>reactor-core</artifactId>
97       <version>3.2.6.RELEASE</version>
98       <scope>compile</scope>
99     </dependency>
100   </dependencies>
101
102   <build>
103     <plugins>
104       <plugin>
105         <groupId>org.springframework.boot</groupId>
106         <artifactId>spring-boot-maven-plugin</artifactId>
107         <executions>
108           <execution>
109             <id>repackage</id>
110             <goals>
111               <goal>repackage</goal>
112             </goals>
113           </execution>
114         </executions>
115       </plugin>
116       <plugin>
117         <artifactId>maven-antrun-plugin</artifactId>
118         <version>1.8</version>
119         <executions>
120           <execution>
121             <id>copy</id>
122             <phase>package</phase>
123             <configuration>
124               <target>
125                 <echo>ANT TASK - copying Docker files</echo>
126                 <copy todir="${basedir}/target/docker-stage" overwrite="true" flatten="true">
127                   <fileset dir="${basedir}/src/main/docker">
128                     <include name="Dockerfile"/>
129                     <include name="start.sh"/>
130                   </fileset>
131                   <fileset dir="${basedir}/target">
132                     <include name="*.jar"/>
133                   </fileset>
134                   <fileset dir="${basedir}/src/main/resources/">
135                     <include name="application.yml"/>
136                   </fileset>
137                 </copy>
138               </target>
139             </configuration>
140             <goals>
141               <goal>run</goal>
142             </goals>
143           </execution>
144         </executions>
145       </plugin>
146       <plugin>
147         <groupId>org.codehaus.groovy.maven</groupId>
148         <artifactId>gmaven-plugin</artifactId>
149         <version>1.0</version>
150         <executions>
151           <execution>
152             <phase>validate</phase>
153             <goals>
154               <goal>execute</goal>
155             </goals>
156             <configuration>
157               <source>${basedir}/../../../TagVersion.groovy</source>
158             </configuration>
159           </execution>
160         </executions>
161       </plugin>
162     </plugins>
163   </build>
164
165   <profiles>
166     <profile>
167       <id>docker</id>
168       <build>
169         <plugins>
170           <plugin>
171             <groupId>io.fabric8</groupId>
172             <artifactId>docker-maven-plugin</artifactId>
173             <version>${docker.fabric.version}</version>
174             <inherited>false</inherited>
175             <configuration>
176               <images>
177                 <image>
178                   <name>${image.name}</name>
179                   <build>
180                     <cleanup>try</cleanup>
181                     <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
182                     <tags>
183                       <tag>${project.docker.latestminortag.version}</tag>
184                       <tag>${project.docker.latestfulltag.version}</tag>
185                       <tag>${project.docker.latesttagtimestamp.version}</tag>
186                     </tags>
187                   </build>
188                 </image>
189               </images>
190               <verbose>true</verbose>
191             </configuration>
192             <executions>
193               <execution>
194                 <id>generate-images</id>
195                 <phase>package</phase>
196                 <goals>
197                   <goal>build</goal>
198                 </goals>
199               </execution>
200               <execution>
201                 <id>push-images</id>
202                 <phase>${docker.push.phase}</phase>
203                 <goals>
204                   <goal>build</goal>
205                   <goal>push</goal>
206                 </goals>
207               </execution>
208             </executions>
209           </plugin>
210         </plugins>
211       </build>
212     </profile>
213   </profiles>
214
215 </project>