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