1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <!-- ===============LICENSE_START=======================================================
5 Acumos ===================================================================================
6 Copyright (C) 2019 AT&T Intellectual Property & Tech Mahindra. All rights
7 reserved. ===================================================================================
8 This Acumos software file is distributed by AT&T and Tech Mahindra under
9 the Apache License, Version 2.0 (the "License"); you may not use this file
10 except in compliance with the License. You may obtain a copy of the License
11 at http://www.apache.org/licenses/LICENSE-2.0 This file is distributed on
12 an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13 or implied. See the License for the specific language governing permissions
14 and limitations under the License. ===============LICENSE_END========================================================= -->
15 <modelVersion>4.0.0</modelVersion>
17 <groupId>org.acumos.elk-client</groupId>
18 <artifactId>elk-client</artifactId>
19 <version>3.0.0-SNAPSHOT</version>
20 <packaging>jar</packaging>
22 <name>elk-client</name>
23 <description>Elk-Client service</description>
26 <groupId>org.springframework.boot</groupId>
27 <artifactId>spring-boot-starter-parent</artifactId>
28 <version>2.1.4.RELEASE</version>
29 <!-- silence warning about parent relative path -->
33 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
35 <java.version>1.8</java.version>
36 <!-- Stand-alone RESTFul application -->
37 <start-class>org.acumos.elk.client.ElkClientServiceApplication</start-class>
38 <!-- Begin extract of POM file spring-boot-dependencies -->
39 <spring.version>5.1.2.RELEASE</spring.version>
40 <swagger.version>1.5.21</swagger.version>
41 <springfox.version>2.9.2</springfox.version>
42 <jackson.version>2.9.7</jackson.version>
43 <jackson-mapper-asl.version>1.9.9</jackson-mapper-asl.version>
44 <json.simple.version>1.1.1</json.simple.version>
45 <elasticsearch.version>6.5.4</elasticsearch.version>
46 <elasticsearch.client.version>6.5.4</elasticsearch.client.version>
47 <!-- tests still depend on Azure host -->
48 <skipTests>false</skipTests>
49 <!-- Jenkins invokes mvn with argument -Dbuild.number=${BUILD_NUMBER} -->
50 <build.number>0</build.number>
51 <!-- Not supplied to all jobs; e.g., Javadoc -->
52 <docker.pull.registry>nexus3.acumos.org:10001</docker.pull.registry>
53 <!--Supplied by Jenkins -->
54 <docker.push.registry>${env.CONTAINER_PUSH_REGISTRY}</docker.push.registry>
60 <groupId>org.springframework.boot</groupId>
61 <artifactId>spring-boot-starter-web</artifactId>
64 <groupId>org.springframework.boot</groupId>
65 <artifactId>spring-boot-starter-test</artifactId>
69 <groupId>org.slf4j</groupId>
70 <artifactId>slf4j-api</artifactId>
75 <groupId>io.springfox</groupId>
76 <artifactId>springfox-swagger2</artifactId>
77 <version>${springfox.version}</version>
80 <groupId>org.slf4j</groupId>
81 <artifactId>slf4j-api</artifactId>
84 <groupId>io.swagger</groupId>
85 <artifactId>swagger-annotations</artifactId>
88 <groupId>io.swagger</groupId>
89 <artifactId>swagger-models</artifactId>
94 <groupId>io.springfox</groupId>
95 <artifactId>springfox-swagger-ui</artifactId>
96 <version>${springfox.version}</version>
99 <groupId>org.slf4j</groupId>
100 <artifactId>slf4j-api</artifactId>
105 <groupId>io.swagger</groupId>
106 <artifactId>swagger-annotations</artifactId>
107 <version>${swagger.version}</version>
110 <groupId>io.swagger</groupId>
111 <artifactId>swagger-models</artifactId>
112 <version>${swagger.version}</version>
115 <groupId>org.springframework</groupId>
116 <artifactId>spring-core</artifactId>
117 <version>${spring.version}</version>
120 <groupId>commons-logging</groupId>
121 <artifactId>commons-logging</artifactId>
126 <groupId>org.springframework</groupId>
127 <artifactId>spring-web</artifactId>
128 <version>${spring.version}</version>
131 <groupId>org.springframework.boot</groupId>
132 <artifactId>spring-boot-configuration-processor</artifactId>
133 <optional>true</optional>
137 <groupId>org.slf4j</groupId>
138 <artifactId>slf4j-api</artifactId>
143 <groupId>com.googlecode.json-simple</groupId>
144 <artifactId>json-simple</artifactId>
145 <version>${json.simple.version}</version>
148 <groupId>com.fasterxml.jackson.core</groupId>
149 <artifactId>jackson-core</artifactId>
150 <version>${jackson.version}</version>
153 <groupId>com.fasterxml.jackson.core</groupId>
154 <artifactId>jackson-databind</artifactId>
155 <version>${jackson.version}</version>
158 <groupId>org.codehaus.jackson</groupId>
159 <artifactId>jackson-mapper-asl</artifactId>
160 <version>${jackson-mapper-asl.version}</version>
163 <groupId>junit</groupId>
164 <artifactId>junit</artifactId>
168 <groupId>org.elasticsearch</groupId>
169 <artifactId>elasticsearch</artifactId>
170 <version>${elasticsearch.version}</version>
173 <groupId>org.elasticsearch.client</groupId>
174 <artifactId>elasticsearch-rest-high-level-client</artifactId>
175 <version>${elasticsearch.client.version}</version>
182 <groupId>org.springframework.boot</groupId>
183 <artifactId>spring-boot-maven-plugin</artifactId>
186 <groupId>org.codehaus.mojo</groupId>
187 <artifactId>exec-maven-plugin</artifactId>
188 <!-- <version>1.4.0</version> -->
191 <groupId>org.apache.maven.plugins</groupId>
192 <artifactId>maven-compiler-plugin</artifactId>
193 <!-- <version>3.0</version> -->
200 <groupId>org.apache.maven.plugins</groupId>
201 <artifactId>maven-jar-plugin</artifactId>
202 <!-- Spring sets the <version>2.5</version> -->
206 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
209 <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
215 <groupId>org.jacoco</groupId>
216 <artifactId>jacoco-maven-plugin</artifactId>
217 <version>0.7.9</version>
220 <id>default-prepare-agent</id>
222 <goal>prepare-agent</goal>
226 <id>default-report</id>
227 <phase>prepare-package</phase>
234 <!-- https://stackoverflow.com/questions/39126226/fabric8-springboot-full-example -->
236 <groupId>io.fabric8</groupId>
237 <artifactId>docker-maven-plugin</artifactId>
238 <version>0.30.0</version>
240 <verbose>true</verbose>
241 <!-- docker runs on the LF build minion so the default value is ok -->
242 <!-- LF <dockerHost>unix:///var/run/docker.sock</dockerHost> LF -->
243 <pullRegistry>${docker.pull.registry}</pullRegistry>
244 <pushRegistry>${docker.push.registry}</pushRegistry>
245 <!-- LF credentials are not supplied here -->
248 <!-- Specify a tag to avoid default tag "latest" -->
249 <name>elk-client:${project.version}</name>
251 <from>openjdk:8-jre-slim</from>
253 <!-- Add tag with build number -->
254 <tag>${project.version}-b${build.number}</tag>
260 <source>script/archive_script.sh</source>
262 <destName>es_archive_script/archive_script.sh</destName>
265 <source>target/${project.artifactId}-${project.version}.${project.packaging}</source>
272 <!-- CDATA prevents Eclipse formatter from breaking line -->
273 <shell><![CDATA[cd /maven; java -Xms128m -Xmx1024m -Djava.security.egd=file:/dev/./urandom -jar ${project.artifactId}-${project.version}.${project.packaging}]]></shell>
279 <!-- build Docker images in install phase, push in deploy phase -->