VES-mapper - Switch CBS client library to 1.8.6 or higher
[dcaegen2/services/mapper.git] / UniversalVesAdapter / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * ============LICENSE_START=======================================================
4 * ONAP : DCAEGEN2
5 * ================================================================================
6 * Copyright 2018-2019 TechMahindra
7 * Copyright (C) 2020 Huawei Technologies Co., Ltd.
8 * ================================================================================
9 * Licensed 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 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
21  -->
22
23 <project xmlns="http://maven.apache.org/POM/4.0.0"
24         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26         <modelVersion>4.0.0</modelVersion>
27
28         <groupId>org.onap.dcaegen2.services.mapper.vesadapter</groupId>
29         <artifactId>UniversalVesAdapter</artifactId>
30         <version>1.3.0-SNAPSHOT</version>
31
32
33         <parent>
34                 <groupId>org.onap.dcaegen2.services.mapper</groupId>
35                 <artifactId>mapper</artifactId>
36                 <version>1.3.0-SNAPSHOT</version>
37         </parent>
38
39         <properties>
40
41                 <!-- PROJECT SETTINGS -->
42                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
44                 <java.version>11</java.version>
45                 <docker.image.name>onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor</docker.image.name>
46
47                 <!-- PLUGIN SETTINGS -->
48                 <dependency.locations.enabled>false</dependency.locations.enabled>
49
50                 <!-- NEXUS RELATED SETTINGS -->
51                 <nexusproxy>https://nexus.onap.org</nexusproxy>
52                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
53                 <releases.path>content/repositories/releases/</releases.path>
54                 <site.path>
55                         content/sites/site/org/onap/dcaegen2/services/mapper/${project.artifactId}/${project.version}
56                 </site.path>
57                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
58
59                 <!-- DCAE SDK version -->
60                 <sdk.version>1.8.7</sdk.version>
61
62         </properties>
63         <dependencies>
64                 <!-- Junit, Mockito, PowerMock -->
65                 <dependency>
66                         <groupId>junit</groupId>
67                         <artifactId>junit</artifactId>
68                         <version>4.12</version>
69                         <scope>test</scope>
70                 </dependency>
71                 <dependency>
72                         <groupId>org.mockito</groupId>
73                         <artifactId>mockito-core</artifactId>
74                         <version>2.0.5-beta</version>
75                         <scope>test</scope>
76                 </dependency>
77
78                 <dependency>
79                         <groupId>org.powermock</groupId>
80                         <artifactId>powermock-api-mockito</artifactId>
81                         <version>1.6.2</version>
82                         <scope>test</scope>
83                 </dependency>
84                 <dependency>
85                         <groupId>org.powermock</groupId>
86                         <artifactId>powermock-module-junit4</artifactId>
87                         <version>1.6.2</version>
88                         <scope>test</scope>
89                 </dependency>
90                 <dependency>
91                         <groupId>org.javassist</groupId>
92                         <artifactId>javassist</artifactId>
93                         <version>3.27.0-GA</version>
94                 </dependency>
95                 <dependency>
96                         <groupId>com.googlecode.json-simple</groupId>
97                         <artifactId>json-simple</artifactId>
98                         <version>1.1.1</version>
99                 </dependency>
100                 <dependency>
101                         <groupId>com.google.guava</groupId>
102                         <artifactId>guava</artifactId>
103                 </dependency>
104                 <dependency>
105                         <groupId>commons-configuration</groupId>
106                         <artifactId>commons-configuration</artifactId>
107                         <version>1.10</version>
108                 </dependency>
109                 <dependency>
110                         <groupId>com.google.code.gson</groupId>
111                         <artifactId>gson</artifactId>
112                         <version>2.8.5</version>
113                 </dependency>
114                 <dependency>
115                         <groupId>com.google.inject</groupId>
116                         <artifactId>guice</artifactId>
117                         <version>4.2.0</version>
118                 </dependency>
119                 <dependency>
120                         <groupId>org.apache.commons</groupId>
121                         <artifactId>commons-lang3</artifactId>
122                         <version>3.5</version>
123                 </dependency>
124                 <dependency>
125                         <groupId>com.google.inject.extensions</groupId>
126                         <artifactId>guice-assistedinject</artifactId>
127                         <version>4.2.0</version>
128                 </dependency>
129                 <dependency>
130                         <groupId>org.milyn</groupId>
131                         <artifactId>milyn-smooks-all</artifactId>
132                         <version>1.7.0</version>
133                         <exclusions>
134                                 <exclusion>
135                                         <groupId>javax.servlet</groupId>
136                                         <artifactId>servlet-api</artifactId>
137                                 </exclusion>
138                                 <exclusion>
139                                         <groupId>ognl</groupId>
140                                         <artifactId>ognl</artifactId>
141                                 </exclusion>
142                                 <exclusion>
143                                         <groupId>javax.jms</groupId>
144                                         <artifactId>jms</artifactId>
145                                 </exclusion>
146                         </exclusions>
147                 </dependency>
148                 <dependency>
149                         <groupId>ognl</groupId>
150                         <artifactId>ognl</artifactId>
151                         <version>3.1.12</version>
152                 </dependency>
153                 <dependency>
154                         <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
155                         <artifactId>dmaapClient</artifactId>
156                         <version>1.1.3</version>
157                         <exclusions>
158                                 <exclusion>
159                                         <groupId>javax.jms</groupId>
160                                         <artifactId>jms</artifactId>
161                                 </exclusion>
162                         </exclusions>
163                 </dependency>
164                 <!-- Database dependency -->
165                 <dependency>
166                         <groupId>org.postgresql</groupId>
167                         <artifactId>postgresql</artifactId>
168                         <version>42.2.18</version>
169                 </dependency>
170                 <dependency>
171                         <groupId>org.springframework</groupId>
172                         <artifactId>spring-jdbc</artifactId>
173                         <version>5.1.3.RELEASE</version>
174                 </dependency>
175                 <dependency>
176                         <groupId>org.springframework.boot</groupId>
177                         <artifactId>spring-boot-starter-web</artifactId>
178                         <version>2.1.1.RELEASE</version>
179                 </dependency>
180                 <dependency>
181                         <groupId>org.springframework.boot</groupId>
182                         <artifactId>spring-boot-starter-test</artifactId>
183                         <version>2.1.1.RELEASE</version>
184                         <scope>test</scope>
185                 </dependency>
186                 <dependency>
187                         <groupId>org.springframework.data</groupId>
188                         <artifactId>spring-data-commons</artifactId>
189                         <version>2.1.3.RELEASE</version>
190                 </dependency>
191                 <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
192                 <dependency>
193                         <groupId>org.slf4j</groupId>
194                         <artifactId>slf4j-api</artifactId>
195                         <version>1.7.25</version>
196                 </dependency>
197                 <dependency>
198                         <groupId>org.apache.logging.log4j</groupId>
199                         <artifactId>log4j-core</artifactId>
200                         <version>2.14.1</version>
201                 </dependency>
202                 <dependency>
203                         <groupId>org.codehaus.groovy</groupId>
204                         <artifactId>groovy-all</artifactId>
205                         <version>2.4.21</version>
206                 </dependency>
207                 <dependency>
208                         <groupId>com.jayway.jsonpath</groupId>
209                         <artifactId>json-path</artifactId>
210                         <version>2.4.0</version>
211                         <scope>test</scope>
212                 </dependency>
213                 <dependency>
214                         <groupId>com.fasterxml.jackson.core</groupId>
215                         <artifactId>jackson-core</artifactId>
216                         <version>2.11.2</version>
217                 </dependency>
218                 <dependency>
219                         <groupId>com.fasterxml.jackson.core</groupId>
220                         <artifactId>jackson-databind</artifactId>
221                         <version>2.11.2</version>
222                 </dependency>
223                 <dependency>
224                         <groupId>hsqldb</groupId>
225                         <artifactId>hsqldb</artifactId>
226                         <version>1.8.0.10</version>
227                         <scope>test</scope>
228                 </dependency>
229                 <!-- https://mvnrepository.com/artifact/xalan/xalan -->
230                 <dependency>
231                         <groupId>xalan</groupId>
232                         <artifactId>xalan</artifactId>
233                         <version>2.7.2</version>
234                 </dependency>
235                 <!-- https://mvnrepository.com/artifact/xerces/xercesImpl -->
236                 <dependency>
237                         <groupId>xerces</groupId>
238                         <artifactId>xercesImpl</artifactId>
239                         <version>2.12.1</version>
240                 </dependency>
241                 <!-- https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream -->
242                 <dependency>
243                         <groupId>com.thoughtworks.xstream</groupId>
244                         <artifactId>xstream</artifactId>
245                         <version>1.4.16</version>
246                 </dependency>
247                 <!-- https://mvnrepository.com/artifact/xml-apis/xml-apis -->
248                 <dependency>
249                         <groupId>xml-apis</groupId>
250                         <artifactId>xml-apis</artifactId>
251                         <version>1.4.01</version>
252                 </dependency>
253                 <!-- http client -->
254                 <dependency>
255                         <groupId>org.apache.httpcomponents</groupId>
256                         <artifactId>httpclient</artifactId>
257                         <version>${httpclient.version}</version>
258                         <scope>compile</scope>
259                 </dependency>
260                 <dependency>
261                         <groupId>org.apache.httpcomponents</groupId>
262                         <artifactId>httpmime</artifactId>
263                         <version>${httpclient.version}</version>
264                         <scope>compile</scope>
265                 </dependency>
266                 <dependency>
267                         <groupId>org.springframework.boot</groupId>
268                         <artifactId>spring-boot-configuration-processor</artifactId>
269                         <optional>true</optional>
270                         <version>2.1.1.RELEASE</version>
271                 </dependency>
272
273                 <!-- DCAE sdk dependency -->
274
275                 <dependency>
276                         <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
277                         <artifactId>cbs-client</artifactId>
278                         <version>${sdk.version}</version>
279                 </dependency>
280                 <!-- https://mvnrepository.com/artifact/io.projectreactor.netty/reactor-netty -->
281                 <dependency>
282                         <groupId>io.projectreactor.netty</groupId>
283                         <artifactId>reactor-netty</artifactId>
284                         <version>0.9.12.RELEASE</version>
285                 </dependency>
286         </dependencies>
287
288         <build>
289                 <pluginManagement>
290                         <plugins>
291                                 <plugin>
292                                         <artifactId>maven-assembly-plugin</artifactId>
293                                         <version>3.1.0</version>
294                                 </plugin>
295                                 <plugin>
296                                         <groupId>com.spotify</groupId>
297                                         <artifactId>docker-maven-plugin</artifactId>
298                                         <version>1.0.0</version>
299                                 </plugin>
300                         </plugins>
301                 </pluginManagement>
302                 <plugins>
303                         <plugin>
304                                 <artifactId>maven-assembly-plugin</artifactId>
305                                 <configuration>
306                                         <descriptors>
307                                                 <descriptor>src/assembly/dep.xml</descriptor>
308                                         </descriptors>
309                                         <attach>false</attach>
310                                         <appendAssemblyId>false</appendAssemblyId>
311                                         <updateOnly>true</updateOnly>
312                                 </configuration>
313                                 <executions>
314                                         <execution>
315                                                 <id>make-assembly</id>
316                                                 <phase>package</phase>
317                                                 <goals>
318                                                         <goal>single</goal>
319                                                 </goals>
320                                         </execution>
321                                 </executions>
322                         </plugin>
323                         <plugin>
324                                 <groupId>com.spotify</groupId>
325                                 <artifactId>docker-maven-plugin</artifactId>
326                                 <version>1.2.0</version>
327                                 <configuration>
328                                         <skipDockerBuild>false</skipDockerBuild>
329                                         <serverId>${onap.nexus.dockerregistry.daily}</serverId>
330                                         <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
331                                         <imageTags>
332                                                 <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
333                                                 <imageTag>${project.version}</imageTag>
334                                                 <imageTag>latest</imageTag>
335                                         </imageTags>
336                                         <baseImage>openjdk:11-jre-slim</baseImage>
337                                         <env>
338                                                 <HOSTALIASES>/etc/host.aliases</HOSTALIASES>
339                                         </env>
340                                         <workdir>/opt/app/VESAdapter</workdir>
341                                         <resources>
342                                                 <resource>
343                                                         <targetPath>.</targetPath>
344                                                         <directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
345                                                 </resource>
346                                         </resources>
347                                         <runs>
348                                                 <run>chmod +x bin/run.sh</run>
349                                                 <run>
350                                                         <![CDATA[apt-get update && apt-get install -y --no-install-recommends procps && apt-get install -y vim && apt-get install -y curl && apt-get clean all]]>
351                                                 </run>
352                                         </runs>
353                                         <exposes>
354                                                 <expose>8080</expose>
355                                                 <expose>8443</expose>
356                                         </exposes>
357                                         <entryPoint>bin/run.sh</entryPoint>
358
359                                 </configuration>
360                                 <!--<executions> <execution> <id>build-image</id> <phase>package</phase> 
361                                         <goals> <goal>build</goal> </goals> </execution> <execution> <id>tag-and-push-image-latest</id> 
362                                         <phase>deploy</phase> <goals> <goal>tag</goal> </goals> <configuration> <image>${docker.image.name}:latest</image> 
363                                         <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName> 
364                                         <pushImage>true</pushImage> </configuration> </execution> <execution> <id>tag-and-push-image-with-version</id> 
365                                         <phase>deploy</phase> <goals> <goal>tag</goal> </goals> <configuration> <image>${docker.image.name}:latest</image> 
366                                         <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version} 
367                                         </newName> <pushImage>true</pushImage> </configuration> </execution> <execution> 
368                                         <id>tag-and-push-image-with-version-and-date</id> <phase>deploy</phase> <goals> 
369                                         <goal>tag</goal> </goals> <configuration> <image>${docker.image.name}:latest</image> 
370                                         <newName> ${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z 
371                                         </newName> <pushImage>true</pushImage> </configuration> </execution> </executions> -->
372                         </plugin>
373                         <plugin>
374                                 <groupId>org.springframework.boot</groupId>
375                                 <artifactId>spring-boot-maven-plugin</artifactId>
376                                 <version>2.1.1.RELEASE</version>
377                                 <executions>
378                                         <execution>
379                                                 <goals>
380                                                         <goal>repackage</goal>
381                                                 </goals>
382                                                 <configuration>
383                                                         <mainClass>org.onap.universalvesadapter.Application</mainClass>
384                                                 </configuration>
385                                         </execution>
386                                 </executions>
387                         </plugin>
388                         <plugin>
389                                 <groupId>org.codehaus.mojo</groupId>
390                                 <artifactId>build-helper-maven-plugin</artifactId>
391                                 <version>1.9.1</version>
392                                 <executions>
393                                         <execution>
394                                                 <id>add-source</id>
395                                                 <phase>generate-sources</phase>
396                                                 <goals>
397                                                         <goal>add-source</goal>
398                                                 </goals>
399                                                 <configuration>
400                                                         <sources>
401                                                                 <source>src/gen/java</source>
402                                                         </sources>
403                                                 </configuration>
404                                         </execution>
405                                         <!-- <execution> <id>regex-property</id> <goals> <goal>regex-property</goal> 
406                                                 </goals> <configuration> <name>docker.version</name> <value>${project.version}</value> 
407                                                 <regex>(^[0-9]+.[0-9]+.[0-9]+$)</regex> <replacement>$1-STAGING</replacement> 
408                                                 <failIfNoMatch>false</failIfNoMatch> </configuration> </execution> -->
409                                 </executions>
410                         </plugin>
411                 </plugins>
412                 <!-- <finalName>UniversalVesAdapter</finalName> -->
413         </build>
414
415         <profiles>
416                 <profile>
417                         <id>with-system-proxy</id>
418                         <build>
419                                 <plugins>
420                                         <plugin>
421                                                 <groupId>com.spotify</groupId>
422                                                 <artifactId>docker-maven-plugin</artifactId>
423                                                 <configuration>
424                                                         <buildArgs>
425                                                                 <http_proxy>${env.http_proxy}</http_proxy>
426                                                         </buildArgs>
427                                                 </configuration>
428                                         </plugin>
429                                 </plugins>
430                         </build>
431                 </profile>
432         </profiles>
433
434
435         <repositories>
436                 <repository>
437                         <id>spring-releases</id>
438                         <url>https://repo.spring.io/libs-release</url>
439                 </repository>
440         </repositories>
441         <pluginRepositories>
442                 <pluginRepository>
443                         <id>spring-releases</id>
444                         <url>https://repo.spring.io/libs-release</url>
445                 </pluginRepository>
446         </pluginRepositories>
447 </project>