LMCL 1.4.4 - Nexus auth support
[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>3.0.3-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                 <maven.compiler.release>11</maven.compiler.release>
49         </properties>
50         <!-- Dependency/plugin versions are inherited from parent pom -->
51         <dependencies>
52                 <dependency>
53                         <groupId>org.acumos.federation</groupId>
54                         <artifactId>acumos-fgw-client</artifactId>
55                         <version>${acumos-fgw-client.version}</version>
56                 </dependency>
57                 <dependency>
58                         <!-- resolve conflicting transitive dependencies -->
59                         <groupId>com.google.guava</groupId>
60                         <artifactId>guava</artifactId>
61                         <version>${guava.version}</version>
62                 </dependency>
63                 <dependency>
64                         <groupId>com.github.docker-java</groupId>
65                         <artifactId>docker-java</artifactId>
66                         <version>${docker-java.version}</version>
67                 </dependency>
68                 <dependency>
69                         <groupId>io.springfox</groupId>
70                         <artifactId>springfox-swagger2</artifactId>
71                         <version>${springfox.version}</version>
72                 </dependency>
73                 <dependency>
74                         <groupId>org.springframework.boot</groupId>
75                         <artifactId>spring-boot-starter</artifactId>
76                 </dependency>
77                 <dependency>
78                         <groupId>org.springframework.boot</groupId>
79                         <artifactId>spring-boot-starter-json</artifactId>
80                 </dependency>
81                 <dependency>
82                         <groupId>org.springframework.boot</groupId>
83                         <artifactId>spring-boot-starter-web</artifactId>
84                 </dependency>
85                 <dependency>
86                         <groupId>org.springframework.boot</groupId>
87                         <artifactId>spring-boot-configuration-processor</artifactId>
88                 </dependency>
89                 <dependency>
90                         <groupId>org.springframework.boot</groupId>
91                         <artifactId>spring-boot-starter-security</artifactId>
92                 </dependency>
93                 <dependency>
94                         <groupId>org.acumos.security-verification</groupId>
95                         <artifactId>security-verification-client</artifactId>
96                         <version>1.2.0</version>
97                 </dependency>
98                 <dependency>
99                         <groupId>org.acumos.license-manager</groupId>
100                         <artifactId>license-manager-client-library</artifactId>
101                         <version>1.4.4</version>
102                 </dependency>
103                 <dependency>
104                         <groupId>org.acumos.acumos-nexus-client</groupId>
105                         <artifactId>acumos-nexus-client</artifactId>
106                         <version>2.2.1</version>
107                 </dependency>
108                 <!-- Compile time only dependencies -->
109                 <dependency>
110                         <groupId>org.projectlombok</groupId>
111                         <artifactId>lombok</artifactId>
112                         <scope>provided</scope>
113                 </dependency>
114                 <!-- Test dependencies -->
115                 <dependency>
116                         <groupId>org.acumos.federation</groupId>
117                         <artifactId>acumos-fgw-client-test</artifactId>
118                         <scope>test</scope>
119                 </dependency>
120                 <dependency>
121                         <groupId>junit</groupId>
122                         <artifactId>junit</artifactId>
123                         <scope>test</scope>
124                 </dependency>
125                 <!-- Test runtime dependencies -->
126                 <dependency>
127                         <groupId>org.springframework.boot</groupId>
128                         <artifactId>spring-boot-starter-test</artifactId>
129                         <exclusions>
130                                 <exclusion>
131                                         <groupId>com.vaadin.external.google</groupId>
132                                         <artifactId>android-json</artifactId>
133                                 </exclusion>
134                         </exclusions>
135                         <scope>test</scope>
136                 </dependency>
137         </dependencies>
138         <build>
139                 <plugins>
140                         <plugin>
141                                 <groupId>org.projectlombok</groupId>
142                                 <artifactId>lombok-maven-plugin</artifactId>
143                         </plugin>
144                         <plugin>
145                                 <groupId>org.apache.maven.plugins</groupId>
146                                 <artifactId>maven-jar-plugin</artifactId>
147                                 <configuration>
148                                         <archive>
149                                                 <manifest>
150                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
151                                                 </manifest>
152                                                 <manifestEntries>
153                                                         <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
154                                                 </manifestEntries>
155                                         </archive>
156                                 </configuration>
157                         </plugin>
158                         <plugin>
159                                 <groupId>org.springframework.boot</groupId>
160                                 <artifactId>spring-boot-maven-plugin</artifactId>
161                                 <executions>
162                                         <execution>
163                                                 <goals>
164                                                         <goal>repackage</goal>
165                                                 </goals>
166                                         </execution>
167                                 </executions>
168                         </plugin>
169                         <plugin>
170                                 <groupId>org.apache.maven.plugins</groupId>
171                                 <artifactId>maven-deploy-plugin</artifactId>
172                                 <configuration>
173                                         <skip>true</skip>
174                                 </configuration>
175                         </plugin>
176                         <plugin>
177                                 <groupId>io.fabric8</groupId>
178                                 <artifactId>docker-maven-plugin</artifactId>
179                                 <version>0.28.0</version>
180                                 <configuration>
181                                         <verbose>true</verbose>
182                                         <pullRegistry>${docker.pull.registry}</pullRegistry>
183                                         <pushRegistry>${docker.push.registry}</pushRegistry>
184                                         <images>
185                                                 <image>
186                                                         <name>acumos/federation-gateway:${project.version}</name>
187                                                         <build>
188                                                                 <from>adoptopenjdk/openjdk11-openj9:alpine-jre</from>
189                                                                 <tags>
190                                                                         <tag>${project.version}-b${build.number}</tag>
191                                                                 </tags>
192                                                                 <assembly>
193                                                                         <descriptorRef>artifact</descriptorRef>
194                                                                 </assembly>
195                                                                 <runCmds>
196                                                                         <runCmd>mkdir /maven/logs</runCmd>
197                                                                         <runCmd>chmod -R 777 /maven</runCmd>
198                                                                 </runCmds>
199                                                                 <cmd>
200                                                                         <shell><![CDATA[cd /maven; java -Xms256m -Xmx2g -Djava.security.egd=file:/dev/./urandom -jar ${project.artifactId}-${project.version}.${project.packaging}]]></shell>
201                                                                 </cmd>
202                                                         </build>
203                                                 </image>
204                                         </images>
205                                 </configuration>
206                                 <executions>
207                                         <execution>
208                                                 <goals>
209                                                         <!-- build is bound to install phase -->
210                                                         <goal>build</goal>
211                                                         <!-- push is bound to deploy phase -->
212                                                         <goal>push</goal>
213                                                 </goals>
214                                         </execution>
215                                 </executions>
216                         </plugin>
217                         <plugin>
218                                 <groupId>org.jacoco</groupId>
219                                 <artifactId>jacoco-maven-plugin</artifactId>
220                         </plugin>
221                 </plugins>
222         </build>
223 </project>