Fix client setup for recovery after server timeout
[federation.git] / gateway / pom.xml
1 <?xml version="1.0"?>
2         <!--<![CDATA[
3         ===============LICENSE_START=======================================================
4         Acumos
5         ===================================================================================
6         Copyright (C) 2017-2019 AT&T Intellectual Property & Tech Mahindra. All rights reserved.
7         ===================================================================================
8         This Acumos software file is distributed by AT&T and Tech Mahindra
9         under the Apache License, Version 2.0 (the "License");
10         you may not use this file except in compliance with the License.
11         You may obtain a copy of the License at
12
13         http://www.apache.org/licenses/LICENSE-2.0
14
15         This file is distributed on an "AS IS" BASIS,
16         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17         See the License for the specific language governing permissions and
18         limitations under the License.
19         ===============LICENSE_END=========================================================
20         ]]>-->
21 <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">
22         <modelVersion>4.0.0</modelVersion>
23         <parent>
24                 <groupId>org.acumos.federation</groupId>
25                 <artifactId>federation-parent</artifactId>
26                 <version>0</version>
27         </parent>
28         <groupId>org.acumos.federation</groupId>
29         <artifactId>gateway</artifactId>
30         <version>2.3.0-SNAPSHOT</version>
31         <name>Federation Gateway</name>
32         <description>Federated Acumos Interface for inter-acumos communication</description>
33         <properties>
34                 <!-- skip the deploy-jar-to-nexus step -->
35                 <maven.install.skip>true</maven.install.skip>
36                 <maven.deploy.skip>true</maven.deploy.skip>
37                 <!-- Stand-alone RESTFul application -->
38                 <start-class>org.acumos.federation.gateway.Application</start-class>
39                 <!-- dependencies version -->
40                 <acumos-fgw-client.version>${project.version}</acumos-fgw-client.version>
41                 <docker-java.version>3.1.2</docker-java.version>
42                 <springfox.version>2.9.2</springfox.version>
43                 <guava.version>20.0</guava.version>
44                 <!-- Not supplied to all jobs; e.g., Javadoc -->
45                 <docker.pull.registry>nexus3.acumos.org:10001</docker.pull.registry>
46                 <!-- Supplied by Jenkins -->
47                 <docker.push.registry>${env.NEXUS3_PUSH_REGISTRY}</docker.push.registry>
48         </properties>
49         <!-- Dependency/plugin versions are inherited from parent pom -->
50         <dependencies>
51                 <dependency>
52                         <groupId>org.acumos.federation</groupId>
53                         <artifactId>acumos-fgw-client</artifactId>
54                         <version>${acumos-fgw-client.version}</version>
55                 </dependency>
56                 <dependency>
57                         <!-- resolve conflicting transitive dependencies -->
58                         <groupId>com.google.guava</groupId>
59                         <artifactId>guava</artifactId>
60                         <version>${guava.version}</version>
61                 </dependency>
62                 <dependency>
63                         <groupId>com.github.docker-java</groupId>
64                         <artifactId>docker-java</artifactId>
65                         <version>${docker-java.version}</version>
66                 </dependency>
67                 <dependency>
68                         <groupId>io.springfox</groupId>
69                         <artifactId>springfox-swagger2</artifactId>
70                         <version>${springfox.version}</version>
71                 </dependency>
72                 <dependency>
73                         <groupId>org.springframework.boot</groupId>
74                         <artifactId>spring-boot-starter</artifactId>
75                 </dependency>
76                 <dependency>
77                         <groupId>org.springframework.boot</groupId>
78                         <artifactId>spring-boot-starter-json</artifactId>
79                 </dependency>
80                 <dependency>
81                         <groupId>org.springframework.boot</groupId>
82                         <artifactId>spring-boot-starter-web</artifactId>
83                 </dependency>
84                 <dependency>
85                         <groupId>org.springframework.boot</groupId>
86                         <artifactId>spring-boot-configuration-processor</artifactId>
87                 </dependency>
88                 <dependency>
89                         <groupId>org.springframework.boot</groupId>
90                         <artifactId>spring-boot-starter-security</artifactId>
91                 </dependency>
92                 <!-- Compile time only dependencies -->
93                 <dependency>
94                         <groupId>org.projectlombok</groupId>
95                         <artifactId>lombok</artifactId>
96                         <scope>provided</scope>
97                 </dependency>
98                 <!-- Test dependencies -->
99                 <dependency>
100                         <groupId>org.acumos.federation</groupId>
101                         <artifactId>acumos-fgw-client-test</artifactId>
102                         <scope>test</scope>
103                 </dependency>
104                 <dependency>
105                         <groupId>junit</groupId>
106                         <artifactId>junit</artifactId>
107                         <scope>test</scope>
108                 </dependency>
109                 <!-- Test runtime dependencies -->
110                 <dependency>
111                         <groupId>org.springframework.boot</groupId>
112                         <artifactId>spring-boot-starter-test</artifactId>
113                         <exclusions>
114                                 <exclusion>
115                                         <groupId>com.vaadin.external.google</groupId>
116                                         <artifactId>android-json</artifactId>
117                                 </exclusion>
118                         </exclusions>
119                         <scope>test</scope>
120                 </dependency>
121         </dependencies>
122         <build>
123                 <plugins>
124                         <plugin>
125                                 <groupId>org.projectlombok</groupId>
126                                 <artifactId>lombok-maven-plugin</artifactId>
127                         </plugin>
128                         <plugin>
129                                 <groupId>org.apache.maven.plugins</groupId>
130                                 <artifactId>maven-jar-plugin</artifactId>
131                                 <configuration>
132                                         <archive>
133                                                 <manifest>
134                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
135                                                 </manifest>
136                                                 <manifestEntries>
137                                                         <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
138                                                 </manifestEntries>
139                                         </archive>
140                                 </configuration>
141                         </plugin>
142                         <plugin>
143                                 <groupId>org.springframework.boot</groupId>
144                                 <artifactId>spring-boot-maven-plugin</artifactId>
145                                 <executions>
146                                         <execution>
147                                                 <goals>
148                                                         <goal>repackage</goal>
149                                                 </goals>
150                                         </execution>
151                                 </executions>
152                         </plugin>
153                         <plugin>
154                                 <groupId>org.apache.maven.plugins</groupId>
155                                 <artifactId>maven-deploy-plugin</artifactId>
156                                 <configuration>
157                                         <skip>true</skip>
158                                 </configuration>
159                         </plugin>
160                         <plugin>
161                                 <groupId>io.fabric8</groupId>
162                                 <artifactId>docker-maven-plugin</artifactId>
163                                 <version>0.28.0</version>
164                                 <configuration>
165                                         <verbose>true</verbose>
166                                         <pullRegistry>${docker.pull.registry}</pullRegistry>
167                                         <pushRegistry>${docker.push.registry}</pushRegistry>
168                                         <images>
169                                                 <image>
170                                                         <name>federation-gateway:${project.version}</name>
171                                                         <build>
172                                                                 <from>openjdk:8-jre-slim</from>
173                                                                 <tags>
174                                                                         <tag>${project.version}-b${build.number}</tag>
175                                                                 </tags>
176                                                                 <assembly>
177                                                                         <descriptorRef>artifact</descriptorRef>
178                                                                 </assembly>
179                                                                 <runCmds>
180                                                                         <runCmd>mkdir /maven/logs</runCmd>
181                                                                         <runCmd>chmod -R 777 /maven</runCmd>
182                                                                 </runCmds>
183                                                                 <cmd>
184                                                                         <shell><![CDATA[cd /maven; java -Xms256m -Xmx2g -Djava.security.egd=file:/dev/./urandom -jar ${project.artifactId}-${project.version}.${project.packaging}]]></shell>
185                                                                 </cmd>
186                                                         </build>
187                                                 </image>
188                                         </images>
189                                 </configuration>
190                                 <executions>
191                                         <execution>
192                                                 <goals>
193                                                         <!-- build is bound to install phase -->
194                                                         <goal>build</goal>
195                                                         <!-- push is bound to deploy phase -->
196                                                         <goal>push</goal>
197                                                 </goals>
198                                         </execution>
199                                 </executions>
200                         </plugin>
201                         <plugin>
202                                 <groupId>org.jacoco</groupId>
203                                 <artifactId>jacoco-maven-plugin</artifactId>
204                         </plugin>
205                 </plugins>
206         </build>
207 </project>