upgrade OAM to 3.0.6
[platform-oam.git] / elk-client / pom.xml
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>
16
17         <groupId>org.acumos.elk-client</groupId>
18         <artifactId>elk-client</artifactId>
19         <version>3.0.6-SNAPSHOT</version>
20         <packaging>jar</packaging>
21
22         <name>elk-client</name>
23         <description>Elk-Client service</description>
24
25         <parent>
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 -->
30                 <relativePath />
31         </parent>
32         <properties>
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>
55
56         </properties>
57
58         <dependencies>
59                 <dependency>
60                         <groupId>org.springframework.boot</groupId>
61                         <artifactId>spring-boot-starter-web</artifactId>
62                 </dependency>
63                 <dependency>
64                         <groupId>org.springframework.boot</groupId>
65                         <artifactId>spring-boot-starter-test</artifactId>
66                         <scope>test</scope>
67                         <exclusions>
68                                 <exclusion>
69                                         <groupId>org.slf4j</groupId>
70                                         <artifactId>slf4j-api</artifactId>
71                                 </exclusion>
72                         </exclusions>
73                 </dependency>
74                 <dependency>
75                         <groupId>io.springfox</groupId>
76                         <artifactId>springfox-swagger2</artifactId>
77                         <version>${springfox.version}</version>
78                         <exclusions>
79                                 <exclusion>
80                                         <groupId>org.slf4j</groupId>
81                                         <artifactId>slf4j-api</artifactId>
82                                 </exclusion>
83                                 <exclusion>
84                                         <groupId>io.swagger</groupId>
85                                         <artifactId>swagger-annotations</artifactId>
86                                 </exclusion>
87                                 <exclusion>
88                                         <groupId>io.swagger</groupId>
89                                         <artifactId>swagger-models</artifactId>
90                                 </exclusion>
91                         </exclusions>
92                 </dependency>
93                 <dependency>
94                         <groupId>io.springfox</groupId>
95                         <artifactId>springfox-swagger-ui</artifactId>
96                         <version>${springfox.version}</version>
97                         <exclusions>
98                                 <exclusion>
99                                         <groupId>org.slf4j</groupId>
100                                         <artifactId>slf4j-api</artifactId>
101                                 </exclusion>
102                         </exclusions>
103                 </dependency>
104                 <dependency>
105                         <groupId>io.swagger</groupId>
106                         <artifactId>swagger-annotations</artifactId>
107                         <version>${swagger.version}</version>
108                 </dependency>
109                 <dependency>
110                         <groupId>io.swagger</groupId>
111                         <artifactId>swagger-models</artifactId>
112                         <version>${swagger.version}</version>
113                 </dependency>
114                 <dependency>
115                         <groupId>org.springframework</groupId>
116                         <artifactId>spring-core</artifactId>
117                         <version>${spring.version}</version>
118                         <exclusions>
119                                 <exclusion>
120                                         <groupId>commons-logging</groupId>
121                                         <artifactId>commons-logging</artifactId>
122                                 </exclusion>
123                         </exclusions>
124                 </dependency>
125                 <dependency>
126                         <groupId>org.springframework</groupId>
127                         <artifactId>spring-web</artifactId>
128                         <version>${spring.version}</version>
129                 </dependency>
130                 <dependency>
131                         <groupId>org.springframework.boot</groupId>
132                         <artifactId>spring-boot-configuration-processor</artifactId>
133                         <optional>true</optional>
134
135                         <exclusions>
136                                 <exclusion>
137                                         <groupId>org.slf4j</groupId>
138                                         <artifactId>slf4j-api</artifactId>
139                                 </exclusion>
140                         </exclusions>
141                 </dependency>
142                 <dependency>
143                         <groupId>com.googlecode.json-simple</groupId>
144                         <artifactId>json-simple</artifactId>
145                         <version>${json.simple.version}</version>
146                 </dependency>
147                 <dependency>
148                         <groupId>com.fasterxml.jackson.core</groupId>
149                         <artifactId>jackson-core</artifactId>
150                         <version>${jackson.version}</version>
151                 </dependency>
152                 <dependency>
153                         <groupId>com.fasterxml.jackson.core</groupId>
154                         <artifactId>jackson-databind</artifactId>
155                         <version>${jackson.version}</version>
156                 </dependency>
157                 <dependency>
158                         <groupId>org.codehaus.jackson</groupId>
159                         <artifactId>jackson-mapper-asl</artifactId>
160                         <version>${jackson-mapper-asl.version}</version>
161                 </dependency>
162                 <dependency>
163                         <groupId>junit</groupId>
164                         <artifactId>junit</artifactId>
165                         <scope>test</scope>
166                 </dependency>
167                 <dependency>
168                         <groupId>org.elasticsearch</groupId>
169                         <artifactId>elasticsearch</artifactId>
170                         <version>${elasticsearch.version}</version>
171                 </dependency>
172                 <dependency>
173                         <groupId>org.elasticsearch.client</groupId>
174                         <artifactId>elasticsearch-rest-high-level-client</artifactId>
175                         <version>${elasticsearch.client.version}</version>
176                 </dependency>
177         </dependencies>
178
179         <build>
180                 <plugins>
181                         <plugin>
182                                 <groupId>org.springframework.boot</groupId>
183                                 <artifactId>spring-boot-maven-plugin</artifactId>
184                         </plugin>
185                         <plugin>
186                                 <groupId>org.codehaus.mojo</groupId>
187                                 <artifactId>exec-maven-plugin</artifactId>
188                                 <!-- <version>1.4.0</version> -->
189                         </plugin>
190                         <plugin>
191                                 <groupId>org.apache.maven.plugins</groupId>
192                                 <artifactId>maven-compiler-plugin</artifactId>
193                                 <version>3.8.1</version>
194                         </plugin>
195                         <plugin>
196                                 <groupId>org.apache.maven.plugins</groupId>
197                                 <artifactId>maven-jar-plugin</artifactId>
198                                 <!-- Spring sets the <version>2.5</version> -->
199                                 <configuration>
200                                         <archive>
201                                                 <manifest>
202                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
203                                                 </manifest>
204                                                 <manifestEntries>
205                                                         <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
206                                                 </manifestEntries>
207                                         </archive>
208                                 </configuration>
209                         </plugin>
210                         <plugin>
211                                 <groupId>org.jacoco</groupId>
212                                 <artifactId>jacoco-maven-plugin</artifactId>
213                                 <version>0.8.1</version>
214                                 <executions>
215                                         <execution>
216                                                 <id>default-prepare-agent</id>
217                                                 <goals>
218                                                         <goal>prepare-agent</goal>
219                                                 </goals>
220                                         </execution>
221                                         <execution>
222                                                 <id>default-report</id>
223                                                 <phase>prepare-package</phase>
224                                                 <goals>
225                                                         <goal>report</goal>
226                                                 </goals>
227                                         </execution>
228                                 </executions>
229                         </plugin>
230                         <!-- https://stackoverflow.com/questions/39126226/fabric8-springboot-full-example -->
231                         <plugin>
232                                 <groupId>io.fabric8</groupId>
233                                 <artifactId>docker-maven-plugin</artifactId>
234                                 <version>0.30.0</version>
235                                 <configuration>
236                                         <verbose>true</verbose>
237                                         <!-- docker runs on the LF build minion so the default value is ok -->
238                                         <!-- LF <dockerHost>unix:///var/run/docker.sock</dockerHost> LF -->
239                                         <pullRegistry>${docker.pull.registry}</pullRegistry>
240                                         <pushRegistry>${docker.push.registry}</pushRegistry>
241                                         <!-- LF credentials are not supplied here -->
242                                         <images>
243                                                 <image>
244                                                         <!-- Prefix must be "acumos/" -->
245                                                         <!-- Specify a tag to avoid default tag "latest" -->
246                                                         <name>acumos/elk-client:${project.version}</name>
247                                                         <build>
248                                                                 <from>openjdk:11-jre-slim</from>
249                                                                 <tags>
250                                                                         <!-- Add tag with build number -->
251                                                                         <tag>${project.version}-b${build.number}</tag>
252                                                                 </tags>
253                                                                 <assembly>
254                                                                         <inline>
255                                                                                 <files>
256                                                                                     <file>
257                                                                                                 <source>script/archive_script.sh</source>
258                                                                                                 <outputDirectory />
259                                                                                                 <destName>es_archive_script/archive_script.sh</destName>
260                                                                                         </file>
261                                                                                         <file>
262                                                                                                 <source>target/${project.artifactId}-${project.version}.${project.packaging}</source>
263                                                                                                 <outputDirectory />
264                                                                                         </file>
265                                                                                 </files>
266                                                                         </inline>
267                                                                 </assembly>
268                                                                 <cmd>
269                                                                         <!-- CDATA prevents Eclipse formatter from breaking line -->
270                                                                         <shell><![CDATA[cd /maven; java -Xms128m -Xmx1024m -Djava.security.egd=file:/dev/./urandom -jar ${project.artifactId}-${project.version}.${project.packaging}]]></shell>
271                                                                 </cmd>
272                                                         </build>
273                                                 </image>
274                                         </images>
275                                 </configuration>
276                                 <!-- build Docker images in install phase, push in deploy phase -->
277                                 <executions>
278                                         <execution>
279                                                 <goals>
280                                                         <goal>build</goal>
281                                                         <goal>push</goal>
282                                                 </goals>
283                                         </execution>
284                                 </executions>
285                         </plugin>
286                 </plugins>
287         </build>
288 </project>