ad34a6fee4c49e6fa8647f38eca6ba232ad5a438
[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 * 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.0-SNAPSHOT</version>
32     <parent>
33         <groupId>org.onap.dcaegen2.services.mapper</groupId>
34         <artifactId>mapper</artifactId>
35         <version>1.4.0-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
57         <!-- DCAE SDK version -->
58         <sdk.version>1.8.7</sdk.version>
59
60     </properties>
61     <dependencies>
62         <!-- Junit, Mockito, PowerMock -->
63         <dependency>
64             <groupId>junit</groupId>
65             <artifactId>junit</artifactId>
66             <version>4.12</version>
67             <scope>test</scope>
68         </dependency>
69         <dependency>
70             <groupId>org.mockito</groupId>
71             <artifactId>mockito-core</artifactId>
72             <version>2.0.5-beta</version>
73             <scope>test</scope>
74         </dependency>
75
76         <dependency>
77             <groupId>org.powermock</groupId>
78             <artifactId>powermock-api-mockito</artifactId>
79             <version>1.6.2</version>
80             <scope>test</scope>
81         </dependency>
82         <dependency>
83             <groupId>org.powermock</groupId>
84             <artifactId>powermock-module-junit4</artifactId>
85             <version>1.6.2</version>
86             <scope>test</scope>
87         </dependency>
88         <dependency>
89             <groupId>org.javassist</groupId>
90             <artifactId>javassist</artifactId>
91             <version>3.27.0-GA</version>
92         </dependency>
93         <dependency>
94             <groupId>com.googlecode.json-simple</groupId>
95             <artifactId>json-simple</artifactId>
96             <version>1.1.1</version>
97         </dependency>
98         <dependency>
99             <groupId>com.google.guava</groupId>
100             <artifactId>guava</artifactId>
101         </dependency>
102         <dependency>
103             <groupId>commons-configuration</groupId>
104             <artifactId>commons-configuration</artifactId>
105             <version>1.10</version>
106         </dependency>
107         <dependency>
108             <groupId>com.google.code.gson</groupId>
109             <artifactId>gson</artifactId>
110             <version>2.8.9</version>
111         </dependency>
112         <dependency>
113             <groupId>com.google.inject</groupId>
114             <artifactId>guice</artifactId>
115             <version>4.2.0</version>
116         </dependency>
117         <dependency>
118             <groupId>org.apache.commons</groupId>
119             <artifactId>commons-lang3</artifactId>
120             <version>3.5</version>
121         </dependency>
122         <dependency>
123             <groupId>com.google.inject.extensions</groupId>
124             <artifactId>guice-assistedinject</artifactId>
125             <version>4.2.0</version>
126         </dependency>
127         <dependency>
128             <groupId>org.milyn</groupId>
129             <artifactId>milyn-smooks-all</artifactId>
130             <version>1.7.0</version>
131             <exclusions>
132                 <exclusion>
133                     <groupId>javax.servlet</groupId>
134                     <artifactId>servlet-api</artifactId>
135                 </exclusion>
136                 <exclusion>
137                     <groupId>ognl</groupId>
138                     <artifactId>ognl</artifactId>
139                 </exclusion>
140                 <exclusion>
141                     <groupId>javax.jms</groupId>
142                     <artifactId>jms</artifactId>
143                 </exclusion>
144             </exclusions>
145         </dependency>
146         <dependency>
147             <groupId>ognl</groupId>
148             <artifactId>ognl</artifactId>
149             <version>3.1.12</version>
150         </dependency>
151         <dependency>
152             <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
153             <artifactId>dmaapClient</artifactId>
154             <version>1.1.3</version>
155             <exclusions>
156                 <exclusion>
157                     <groupId>javax.jms</groupId>
158                     <artifactId>jms</artifactId>
159                 </exclusion>
160             </exclusions>
161         </dependency>
162         <!-- Database dependency -->
163         <dependency>
164             <groupId>org.postgresql</groupId>
165             <artifactId>postgresql</artifactId>
166             <version>42.2.18</version>
167         </dependency>
168         <dependency>
169             <groupId>org.springframework</groupId>
170             <artifactId>spring-jdbc</artifactId>
171             <version>5.1.3.RELEASE</version>
172         </dependency>
173         <dependency>
174             <groupId>org.springframework.boot</groupId>
175             <artifactId>spring-boot-starter-web</artifactId>
176             <version>2.1.1.RELEASE</version>
177         </dependency>
178         <dependency>
179             <groupId>org.springframework.boot</groupId>
180             <artifactId>spring-boot-starter-test</artifactId>
181             <version>2.1.1.RELEASE</version>
182             <scope>test</scope>
183         </dependency>
184         <dependency>
185             <groupId>org.springframework.data</groupId>
186             <artifactId>spring-data-commons</artifactId>
187             <version>2.1.3.RELEASE</version>
188         </dependency>
189         <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
190         <dependency>
191             <groupId>org.slf4j</groupId>
192             <artifactId>slf4j-api</artifactId>
193             <version>1.7.25</version>
194         </dependency>
195         <dependency>
196             <groupId>org.apache.logging.log4j</groupId>
197             <artifactId>log4j-core</artifactId>
198             <version>2.17.1</version>
199         </dependency>
200         <dependency>
201             <groupId>org.apache.logging.log4j</groupId>
202             <artifactId>log4j-api</artifactId>
203             <version>2.17.1</version>
204         </dependency>
205         <dependency>
206             <groupId>org.codehaus.groovy</groupId>
207             <artifactId>groovy-all</artifactId>
208             <version>2.4.21</version>
209         </dependency>
210         <dependency>
211             <groupId>com.jayway.jsonpath</groupId>
212             <artifactId>json-path</artifactId>
213             <version>2.4.0</version>
214             <scope>test</scope>
215         </dependency>
216         <dependency>
217             <groupId>com.fasterxml.jackson.core</groupId>
218             <artifactId>jackson-core</artifactId>
219             <version>2.12.6</version>
220         </dependency>
221         <dependency>
222             <groupId>com.fasterxml.jackson.core</groupId>
223             <artifactId>jackson-databind</artifactId>
224             <version>2.12.6</version>
225         </dependency>
226         <dependency>
227             <groupId>hsqldb</groupId>
228             <artifactId>hsqldb</artifactId>
229             <version>1.8.0.10</version>
230             <scope>test</scope>
231         </dependency>
232         <!-- https://mvnrepository.com/artifact/xalan/xalan -->
233         <dependency>
234             <groupId>xalan</groupId>
235             <artifactId>xalan</artifactId>
236             <version>2.7.2</version>
237         </dependency>
238         <!-- https://mvnrepository.com/artifact/xerces/xercesImpl -->
239         <dependency>
240             <groupId>xerces</groupId>
241             <artifactId>xercesImpl</artifactId>
242             <version>2.12.1</version>
243         </dependency>
244         <!-- https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream -->
245         <dependency>
246             <groupId>com.thoughtworks.xstream</groupId>
247             <artifactId>xstream</artifactId>
248             <version>1.4.18</version>
249         </dependency>
250         <!-- https://mvnrepository.com/artifact/xml-apis/xml-apis -->
251         <dependency>
252             <groupId>xml-apis</groupId>
253             <artifactId>xml-apis</artifactId>
254             <version>1.4.01</version>
255         </dependency>
256         <!-- http client -->
257         <dependency>
258             <groupId>org.apache.httpcomponents</groupId>
259             <artifactId>httpclient</artifactId>
260             <version>${httpclient.version}</version>
261             <scope>compile</scope>
262         </dependency>
263         <dependency>
264             <groupId>org.apache.httpcomponents</groupId>
265             <artifactId>httpmime</artifactId>
266             <version>${httpclient.version}</version>
267             <scope>compile</scope>
268         </dependency>
269         <dependency>
270             <groupId>org.springframework.boot</groupId>
271             <artifactId>spring-boot-configuration-processor</artifactId>
272             <optional>true</optional>
273             <version>2.1.1.RELEASE</version>
274         </dependency>
275
276         <!-- DCAE sdk dependency -->
277
278         <dependency>
279             <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
280             <artifactId>cbs-client</artifactId>
281             <version>${sdk.version}</version>
282         </dependency>
283         <!-- https://mvnrepository.com/artifact/io.projectreactor.netty/reactor-netty -->
284         <dependency>
285             <groupId>io.projectreactor.netty</groupId>
286             <artifactId>reactor-netty</artifactId>
287             <version>0.9.12.RELEASE</version>
288         </dependency>
289     </dependencies>
290
291     <build>
292         <pluginManagement>
293             <plugins>
294                 <plugin>
295                     <artifactId>maven-assembly-plugin</artifactId>
296                     <version>3.1.0</version>
297                 </plugin>
298                 <plugin>
299                     <groupId>com.spotify</groupId>
300                     <artifactId>docker-maven-plugin</artifactId>
301                     <version>1.0.0</version>
302                 </plugin>
303             </plugins>
304         </pluginManagement>
305         <plugins>
306             <plugin>
307                 <artifactId>maven-assembly-plugin</artifactId>
308                 <configuration>
309                     <descriptors>
310                         <descriptor>src/assembly/dep.xml</descriptor>
311                     </descriptors>
312                     <attach>false</attach>
313                     <appendAssemblyId>false</appendAssemblyId>
314                     <updateOnly>true</updateOnly>
315                 </configuration>
316                 <executions>
317                     <execution>
318                         <id>make-assembly</id>
319                         <phase>package</phase>
320                         <goals>
321                             <goal>single</goal>
322                         </goals>
323                     </execution>
324                 </executions>
325             </plugin>
326             <plugin>
327                 <groupId>com.spotify</groupId>
328                 <artifactId>docker-maven-plugin</artifactId>
329                 <version>1.2.0</version>
330                 <configuration>
331                     <skipDockerBuild>false</skipDockerBuild>
332                     <serverId>${onap.nexus.dockerregistry.daily}</serverId>
333                     <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
334                     <imageTags>
335                         <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
336                         <imageTag>${project.version}</imageTag>
337                         <imageTag>latest</imageTag>
338                     </imageTags>
339                     <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
340                     <resources>
341                         <resource>
342                             <targetPath>.</targetPath>
343                             <directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
344                         </resource>
345                     </resources>
346                 </configuration>
347                 <!--<executions> <execution> <id>build-image</id> <phase>package</phase> 
348                     <goals> <goal>build</goal> </goals> </execution> <execution> <id>tag-and-push-image-latest</id> 
349                     <phase>deploy</phase> <goals> <goal>tag</goal> </goals> <configuration> <image>${docker.image.name}:latest</image> 
350                     <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName> 
351                     <pushImage>true</pushImage> </configuration> </execution> <execution> <id>tag-and-push-image-with-version</id> 
352                     <phase>deploy</phase> <goals> <goal>tag</goal> </goals> <configuration> <image>${docker.image.name}:latest</image> 
353                     <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version} 
354                     </newName> <pushImage>true</pushImage> </configuration> </execution> <execution> 
355                     <id>tag-and-push-image-with-version-and-date</id> <phase>deploy</phase> <goals> 
356                     <goal>tag</goal> </goals> <configuration> <image>${docker.image.name}:latest</image> 
357                     <newName> ${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z 
358                     </newName> <pushImage>true</pushImage> </configuration> </execution> </executions> -->
359             </plugin>
360             <plugin>
361                 <groupId>org.springframework.boot</groupId>
362                 <artifactId>spring-boot-maven-plugin</artifactId>
363                 <version>2.1.1.RELEASE</version>
364                 <executions>
365                     <execution>
366                         <goals>
367                             <goal>repackage</goal>
368                         </goals>
369                         <configuration>
370                             <mainClass>org.onap.universalvesadapter.Application</mainClass>
371                         </configuration>
372                     </execution>
373                 </executions>
374             </plugin>
375             <plugin>
376                 <groupId>org.codehaus.mojo</groupId>
377                 <artifactId>build-helper-maven-plugin</artifactId>
378                 <version>1.9.1</version>
379                 <executions>
380                     <execution>
381                         <id>add-source</id>
382                         <phase>generate-sources</phase>
383                         <goals>
384                             <goal>add-source</goal>
385                         </goals>
386                         <configuration>
387                             <sources>
388                                 <source>src/gen/java</source>
389                             </sources>
390                         </configuration>
391                     </execution>
392                     <!-- <execution> <id>regex-property</id> <goals> <goal>regex-property</goal> 
393                         </goals> <configuration> <name>docker.version</name> <value>${project.version}</value> 
394                         <regex>(^[0-9]+.[0-9]+.[0-9]+$)</regex> <replacement>$1-STAGING</replacement> 
395                         <failIfNoMatch>false</failIfNoMatch> </configuration> </execution> -->
396                 </executions>
397             </plugin>
398         </plugins>
399         <!-- <finalName>UniversalVesAdapter</finalName> -->
400     </build>
401
402     <profiles>
403         <profile>
404             <id>with-system-proxy</id>
405             <build>
406                 <plugins>
407                     <plugin>
408                         <groupId>com.spotify</groupId>
409                         <artifactId>docker-maven-plugin</artifactId>
410                         <configuration>
411                             <buildArgs>
412                                 <http_proxy>${env.http_proxy}</http_proxy>
413                             </buildArgs>
414                         </configuration>
415                     </plugin>
416                 </plugins>
417             </build>
418         </profile>
419     </profiles>
420
421
422     <repositories>
423         <repository>
424             <id>spring-releases</id>
425             <url>https://repo.spring.io/libs-release</url>
426         </repository>
427     </repositories>
428     <pluginRepositories>
429         <pluginRepository>
430             <id>spring-releases</id>
431             <url>https://repo.spring.io/libs-release</url>
432         </pluginRepository>
433     </pluginRepositories>
434 </project>