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