Upgrade federation GW to CDS 1.14.4
[federation.git] / gateway / pom.xml
1 <?xml version="1.0"?>
2 <!--
3 ===============LICENSE_START=======================================================
4 Acumos Apache-2.0
5 ===================================================================================
6 Copyright (C) 2017 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
22         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
23         xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
24         <modelVersion>4.0.0</modelVersion>
25         <groupId>org.acumos.federation</groupId>
26         <artifactId>gateway</artifactId>
27         <version>1.1.3-SNAPSHOT</version>
28         <name>Federation Gateway</name>
29         <description>Federated Acumos Interface for inter-acumos and ONAP communication</description>
30
31         <parent>
32                 <groupId>org.springframework.boot</groupId>
33                 <artifactId>spring-boot-starter-parent</artifactId>
34                 <version>1.5.10.RELEASE</version>
35                 <!-- silence warning about parent relative path -->
36                 <relativePath />
37         </parent>
38
39         <properties>
40                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
42                 <!-- Stand-alone RESTFul application -->
43                 <start-class>org.acumos.federation.gateway.Application</start-class>
44                 <!-- Jenkins invokes mvn with argument -Dbuild.number=${BUILD_NUMBER} -->
45                 <build.number>0</build.number>
46                 <skipTests>false</skipTests>
47                 <!-- dependencies versions -->
48                 <slf4j.version>1.7.25</slf4j.version>
49                 <logback.version>1.2.3</logback.version>
50                 <spring.boot.devtools.version>1.5.8.RELEASE</spring.boot.devtools.version>
51                 <spring.boot.starter.web.version>1.5.8.RELEASE</spring.boot.starter.web.version>
52                 <spring.boot.starter.security.version>1.5.8.RELEASE</spring.boot.starter.security.version>
53                 <spring.boot.starter.test.version>1.5.8.RELEASE</spring.boot.starter.test.version>
54                 <spring.boot.configuration.processor.version>1.5.8.RELEASE</spring.boot.configuration.processor.version>
55                 <!-- Not supplied to all jobs; e.g., Javadoc -->
56                 <docker.pull.registry>nexus3.acumos.org:10001</docker.pull.registry>
57                 <!-- Supplied by Jenkins -->
58                 <docker.push.registry>${env.NEXUS3_PUSH_REGISTRY}</docker.push.registry>
59                 <maven.build.timestamp.format>yyyy.MM.dd_HH.mm</maven.build.timestamp.format>
60         </properties>
61
62         <!-- Some dependencies are specific to Acumos, but this POM defines no repositories 
63                 section. The Jenkins server specifies Acumos repositories. Developers should 
64                 ensure their ~/.m2/settings.xml file has the following URLs in both the repositories 
65                 and pluginRepositories sections or in a profile: https://nexus.acumos.org/content/repositories/snapshots/ 
66                 https://nexus.acumos.org/content/repositories/releases/ -->
67
68         <dependencies>
69                 <dependency>
70                         <groupId>org.acumos.acumos-nexus-client</groupId>
71                         <artifactId>acumos-nexus-client</artifactId>
72                         <version>2.0.0</version>
73                 </dependency>
74                 <dependency>
75                         <groupId>org.acumos.common-dataservice</groupId>
76                         <artifactId>cmn-data-svc-client</artifactId>
77                         <version>1.14.4</version>
78                 </dependency>
79                 <dependency>
80                         <groupId>org.json</groupId>
81                         <artifactId>json</artifactId>
82                         <version>20160212</version>
83                 </dependency>
84                 <dependency>
85                         <groupId>org.slf4j</groupId>
86                         <artifactId>slf4j-api</artifactId>
87                         <!-- spring sets the <version>${slf4j.version}</version> -->
88                 </dependency>
89                 <dependency>
90                         <groupId>ch.qos.logback</groupId>
91                         <artifactId>logback-classic</artifactId>
92                         <!-- spring sets the <version>${logback.version}</version> -->
93                 </dependency>
94                 <dependency>
95                         <groupId>ch.qos.logback</groupId>
96                         <artifactId>logback-core</artifactId>
97                         <!-- spring sets the <version>${logback.version}</version> -->
98                 </dependency>
99                 <dependency>
100                         <groupId>org.springframework.boot</groupId>
101                         <artifactId>spring-boot-starter-security</artifactId>
102                         <!-- spring sets the ${spring.boot.starter.security.version}</version> -->
103                 </dependency>
104                 <dependency>
105                         <groupId>org.springframework.boot</groupId>
106                         <artifactId>spring-boot-starter-web</artifactId>
107                         <!-- spring sets the <version>${spring.boot.starter.web.version}</version> -->
108                 </dependency>
109                 <dependency>
110                         <groupId>org.springframework.boot</groupId>
111                         <artifactId>spring-boot-configuration-processor</artifactId>
112                         <!-- spring sets the <version>${spring.boot.configuration.processor.version}</version> -->
113                         <optional>true</optional>
114                 </dependency>
115                 <dependency>
116                         <groupId>org.apache.httpcomponents</groupId>
117                         <artifactId>httpclient</artifactId>
118                         <!-- spring sets the <version>4.5</version> -->
119                 </dependency>
120                 <dependency>
121                         <groupId>org.springframework.shell</groupId>
122                         <artifactId>spring-shell</artifactId>
123                         <version>1.2.0.RELEASE</version>
124                 </dependency>
125                 <dependency>
126                         <groupId>io.springfox</groupId>
127                         <artifactId>springfox-swagger2</artifactId>
128                         <version>2.6.1</version>
129                 </dependency>
130                 <dependency>
131                         <groupId>io.springfox</groupId>
132                         <artifactId>springfox-swagger-ui</artifactId>
133                         <version>2.6.1</version>
134                 </dependency>
135                 <dependency>
136                         <groupId>com.att.eelf</groupId>
137                         <artifactId>eelf-core</artifactId>
138                         <version>1.0.0</version>
139                 </dependency>
140                 <dependency>
141                         <groupId>javax.inject</groupId>
142                         <artifactId>javax.inject</artifactId>
143                         <version>1</version>
144                 </dependency>
145                 <dependency>
146                         <groupId>io.jsonwebtoken</groupId>
147                         <artifactId>jjwt</artifactId>
148                         <version>0.6.0</version>
149                 </dependency>
150                 <dependency>
151                         <groupId>org.python</groupId>
152                         <artifactId>jython-standalone</artifactId>
153                         <version>2.7.1-rc3</version>
154                 </dependency>
155                 <dependency>
156                         <groupId>junit</groupId>
157                         <artifactId>junit</artifactId>
158                         <!-- spring sets the <version>3.8.1</version> -->
159                         <scope>test</scope>
160                 </dependency>
161                 <dependency>
162                         <groupId>commons-cli</groupId>
163                         <artifactId>commons-cli</artifactId>
164                         <version>1.2</version>
165                 </dependency>
166                 <dependency>
167                         <groupId>org.apache.commons</groupId>
168                         <artifactId>commons-lang3</artifactId>
169                         <version>3.6</version>
170                 </dependency>
171                 <dependency>
172                         <groupId>org.aspectj</groupId>
173                         <artifactId>aspectjweaver</artifactId>
174                         <version>1.8.13</version>
175                 </dependency>
176                 <dependency>
177                         <groupId>org.assertj</groupId>
178                         <artifactId>assertj-core</artifactId>
179                         <!-- spring sets the <version>3.8.0</version> -->
180                         <scope>test</scope>
181                 </dependency>
182                 <dependency>
183                         <groupId>org.springframework.boot</groupId>
184                         <artifactId>spring-boot-starter-test</artifactId>
185                         <!-- spring sets the <version>1.5.3.RELEASE</version> -->
186                         <scope>test</scope>
187                 </dependency>
188         </dependencies>
189
190         <build>
191                 <plugins>
192                         <plugin>
193                                 <groupId>org.apache.maven.plugins</groupId>
194                                 <artifactId>maven-compiler-plugin</artifactId>
195                                 <!-- spring sets the <version>3.0</version> -->
196                                 <configuration>
197                                         <source>1.8</source>
198                                         <target>1.8</target>
199                                 </configuration>
200                         </plugin>
201                         <!-- Add the build number to the jar manifest. Spring-Boot uses a complex 
202                                 packaging process that makes access to the original Manifest.MF very difficult. 
203                                 However, Java provides access to the implementation version for a package, 
204                                 so cram the build number into there. -->
205                         <plugin>
206                                 <groupId>org.apache.maven.plugins</groupId>
207                                 <artifactId>maven-jar-plugin</artifactId>
208                                 <configuration>
209                                         <archive>
210                                                 <manifest>
211                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
212                                                 </manifest>
213                                                 <manifestEntries>
214                                                         <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
215                                                 </manifestEntries>
216                                         </archive>
217                                 </configuration>
218                                 <executions>
219                                         <execution>
220                                                 <goals>
221                                                         <goal>test-jar</goal>
222                                                 </goals>
223                                         </execution>
224                                 </executions>
225                         </plugin>
226                         <plugin>
227                                 <groupId>org.springframework.boot</groupId>
228                                 <artifactId>spring-boot-maven-plugin</artifactId>
229                                 <executions>
230                                         <execution>
231                                                 <goals>
232                                                         <goal>repackage</goal>
233                                                 </goals>
234                                         </execution>
235                                 </executions>
236                         </plugin>
237                         <plugin>
238                                 <groupId>org.apache.maven.plugins</groupId>
239                                 <artifactId>maven-dependency-plugin</artifactId>
240                                 <version>2.10</version>
241                                 <executions>
242                                         <execution>
243                                                 <id>copy-dependencies</id>
244                                                 <phase>package</phase>
245                                                 <goals>
246                                                         <goal>copy-dependencies</goal>
247                                                 </goals>
248                                                 <configuration>
249                                                         <outputDirectory>${project.build.directory}/deps</outputDirectory>
250                                                         <overWriteReleases>true</overWriteReleases>
251                                                         <overWriteSnapshots>true</overWriteSnapshots>
252                                                         <overWriteIfNewer>true</overWriteIfNewer>
253                                                 </configuration>
254                                         </execution>
255                                 </executions>
256                         </plugin>
257                         <!-- No need to deploy Spring super-boot -->
258                         <plugin>
259                                 <groupId>org.apache.maven.plugins</groupId>
260                                 <artifactId>maven-deploy-plugin</artifactId>
261                                 <!-- Spring sets the <version>2.8</version> -->
262                                 <configuration>
263                                         <skip>true</skip>
264                                 </configuration>
265                         </plugin>
266                         <plugin>
267                                 <groupId>io.fabric8</groupId>
268                                 <artifactId>docker-maven-plugin</artifactId>
269                                 <version>0.23.0</version>
270                                 <configuration>
271                                         <verbose>true</verbose>
272                                         <dockerHost>${docker.host.url}</dockerHost>
273                                         <registry>${docker.registry.url}</registry>
274                                         <authConfig>
275                                                 <username>${docker.registry.login}</username>
276                                                 <password>${docker.registry.password}</password>
277                                         </authConfig>
278                                         <images>
279                                                 <image>
280                                                         <!-- Specify a tag to avoid default tag "latest" -->
281                                                         <name>federation-gateway:${project.version}</name>
282                                                         <build>
283                                                                 <from>frolvlad/alpine-oraclejdk8:slim</from>
284                                                                 <tags>
285                                                                         <!-- Add tag with build number -->
286                                                                         <tag>${project.version}-b${build.number}</tag>
287                                                                 </tags>
288                                                                 <assembly>
289                                                                         <inline>
290                                                                                 <files>
291                                                                                         <file>
292                                                                                                 <source>target/${project.artifactId}-${project.version}.${project.packaging}</source>
293                                                                                                 <outputDirectory />
294                                                                                         </file>
295                                                                                 </files>
296                                                                         </inline>
297                                                                 </assembly>
298                                                                 <!-- This is the same CMD used in a Dockerfile -->
299                                                                 <cmd>
300                                                                         <!-- CDATA prevents Eclipse formatter from breaking line -->
301                                                                         <shell><![CDATA[cd /maven; java -Xms128m -Xmx512m -Djava.security.egd=file:/dev/./urandom -jar ${project.artifactId}-${project.version}.${project.packaging}]]></shell>
302                                                                 </cmd>
303                                                         </build>
304                                                 </image>
305                                                 <image>
306                                                         <name>federation-gateway-test:${project.version}</name>
307                                                         <build>
308                                                                 <from>frolvlad/alpine-oraclejdk8:slim</from>
309                                                                 <tags>
310                                                                         <tag>${project.version}-b${build.number}</tag>
311                                                                 </tags>
312                                                                 <assembly>
313                                                                         <inline>
314                                                                                 <files>
315                                                                                         <file>
316                                                                                                 <source>target/${project.artifactId}-${project.version}.${project.packaging}.original</source>
317                                                                                                 <outputDirectory />
318                                                                                                 <!-- <destName>target/${project.artifactId}-${project.version}.${project.packaging}</destName> -->
319                                                                                         </file>
320                                                                                         <file>
321                                                                                                 <source>target/${project.artifactId}-${project.version}-tests.${project.packaging}</source>
322                                                                                                 <outputDirectory />
323                                                                                         </file>
324                                                                                 </files>
325                                                                                 <fileSets>
326                                                                                         <fileSet>
327                                                                                                 <!-- <directory>${project.build.directory}/deps/</directory> -->
328                                                                                                 <directory>target/deps/</directory>
329                                                                                                 <outputDirectory>/libs/</outputDirectory>
330                                                                                                 <includes>
331                                                                                                         <include>*</include>
332                                                                                                 </includes>
333                                                                                                 <fileMode>0755</fileMode>
334                                                                                         </fileSet>
335                                                                                 </fileSets>
336                                                                         </inline>
337                                                                 </assembly>
338                                                                 <cmd>
339                                                                         <!-- CDATA prevents Eclipse formatter from breaking line -->
340                                                                         <shell><![CDATA[cd /maven; java -Xms128m -Xmx512m -cp ${project.artifactId}-${project.version}.${project.packaging}.original:${project.artifactId}-${project.version}-tests.${project.packaging}:/libs/* -Djava.security.egd=file:/dev/./urandom org.springframework.boot.loader.PropertiesLauncher]]></shell>
341                                                                 </cmd>
342                                                         </build>
343                                                 </image>
344                                         </images>
345                                 </configuration>
346                                 <executions>
347                                         <execution>
348                                                 <goals>
349                                                         <!-- build is bound to install phase -->
350                                                         <goal>build</goal>
351                                                         <!-- push is bound to deploy phase -->
352                                                         <goal>push</goal>
353                                                 </goals>
354                                         </execution>
355                                 </executions>
356                         </plugin>
357                         <plugin>
358                                 <groupId>org.codehaus.mojo</groupId>
359                                 <artifactId>license-maven-plugin</artifactId>
360                                 <version>1.14</version>
361                                 <configuration>
362                                         <licenseName>acumos</licenseName>
363                                         <licenseResolver>${project.baseUri}/src/license</licenseResolver>
364                                         <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
365                                         <processStartTag>===============LICENSE_START=======================================================</processStartTag>
366                                         <processEndTag>===============LICENSE_END=========================================================</processEndTag>
367                                         <sectionDelimiter>===================================================================================</sectionDelimiter>
368                                         <inceptionYear>2017</inceptionYear>
369                                         <organizationName>AT&amp;T Intellectual Property &amp; Tech
370                                                 Mahindra. All rights reserved.</organizationName>
371                                         <projectName>Acumos</projectName>
372                                         <canUpdateCopyright>true</canUpdateCopyright>
373                                         <canUpdateDescription>true</canUpdateDescription>
374                                         <canUpdateLicense>true</canUpdateLicense>
375                                         <emptyLineAfterHeader>true</emptyLineAfterHeader>
376                                         <includes>
377                                                 <include>**/*.java</include>
378                                         </includes>
379                                 </configuration>
380                                 <!-- <executions> <execution> <id>first</id> <goals> <goal>update-file-header</goal> 
381                                         </goals> <phase>process-sources</phase> </execution> </executions> -->
382                         </plugin>
383                         <plugin>
384                                 <groupId>org.jacoco</groupId>
385                                 <artifactId>jacoco-maven-plugin</artifactId>
386                                 <version>0.7.9</version>
387                                 <executions>
388                                         <execution>
389                                                 <id>default-prepare-agent</id>
390                                                 <goals>
391                                                         <goal>prepare-agent</goal>
392                                                 </goals>
393                                         </execution>
394                                         <execution>
395                                                 <id>default-report</id>
396                                                 <phase>prepare-package</phase>
397                                                 <goals>
398                                                         <goal>report</goal>
399                                                 </goals>
400                                         </execution>
401                                 </executions>
402                         </plugin>
403
404                 </plugins>
405         </build>
406 </project>