Remove log4j transitive dependency from VES-Mapper
[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.1-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.codehaus.groovy</groupId>
197             <artifactId>groovy-all</artifactId>
198             <version>2.4.21</version>
199         </dependency>
200         <dependency>
201             <groupId>com.jayway.jsonpath</groupId>
202             <artifactId>json-path</artifactId>
203             <version>2.4.0</version>
204             <scope>test</scope>
205         </dependency>
206         <dependency>
207             <groupId>com.fasterxml.jackson.core</groupId>
208             <artifactId>jackson-core</artifactId>
209             <version>2.12.6</version>
210         </dependency>
211         <dependency>
212             <groupId>com.fasterxml.jackson.core</groupId>
213             <artifactId>jackson-databind</artifactId>
214             <version>2.12.6</version>
215         </dependency>
216         <dependency>
217             <groupId>hsqldb</groupId>
218             <artifactId>hsqldb</artifactId>
219             <version>1.8.0.10</version>
220             <scope>test</scope>
221         </dependency>
222         <!-- https://mvnrepository.com/artifact/xalan/xalan -->
223         <dependency>
224             <groupId>xalan</groupId>
225             <artifactId>xalan</artifactId>
226             <version>2.7.2</version>
227         </dependency>
228         <!-- https://mvnrepository.com/artifact/xerces/xercesImpl -->
229         <dependency>
230             <groupId>xerces</groupId>
231             <artifactId>xercesImpl</artifactId>
232             <version>2.12.1</version>
233         </dependency>
234         <!-- https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream -->
235         <dependency>
236             <groupId>com.thoughtworks.xstream</groupId>
237             <artifactId>xstream</artifactId>
238             <version>1.4.18</version>
239         </dependency>
240         <!-- https://mvnrepository.com/artifact/xml-apis/xml-apis -->
241         <dependency>
242             <groupId>xml-apis</groupId>
243             <artifactId>xml-apis</artifactId>
244             <version>1.4.01</version>
245         </dependency>
246         <!-- http client -->
247         <dependency>
248             <groupId>org.apache.httpcomponents</groupId>
249             <artifactId>httpclient</artifactId>
250             <version>${httpclient.version}</version>
251             <scope>compile</scope>
252         </dependency>
253         <dependency>
254             <groupId>org.apache.httpcomponents</groupId>
255             <artifactId>httpmime</artifactId>
256             <version>${httpclient.version}</version>
257             <scope>compile</scope>
258         </dependency>
259         <dependency>
260             <groupId>org.springframework.boot</groupId>
261             <artifactId>spring-boot-configuration-processor</artifactId>
262             <optional>true</optional>
263             <version>2.1.1.RELEASE</version>
264         </dependency>
265
266         <!-- DCAE sdk dependency -->
267
268         <dependency>
269             <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
270             <artifactId>cbs-client</artifactId>
271             <version>${sdk.version}</version>
272         </dependency>
273         <!-- https://mvnrepository.com/artifact/io.projectreactor.netty/reactor-netty -->
274         <dependency>
275             <groupId>io.projectreactor.netty</groupId>
276             <artifactId>reactor-netty</artifactId>
277             <version>0.9.12.RELEASE</version>
278         </dependency>
279     </dependencies>
280
281     <build>
282         <pluginManagement>
283             <plugins>
284                 <plugin>
285                     <artifactId>maven-assembly-plugin</artifactId>
286                     <version>3.1.0</version>
287                 </plugin>
288                 <plugin>
289                     <groupId>com.spotify</groupId>
290                     <artifactId>docker-maven-plugin</artifactId>
291                     <version>1.0.0</version>
292                 </plugin>
293             </plugins>
294         </pluginManagement>
295         <plugins>
296             <plugin>
297                 <artifactId>maven-assembly-plugin</artifactId>
298                 <configuration>
299                     <descriptors>
300                         <descriptor>src/assembly/dep.xml</descriptor>
301                     </descriptors>
302                     <attach>false</attach>
303                     <appendAssemblyId>false</appendAssemblyId>
304                     <updateOnly>true</updateOnly>
305                 </configuration>
306                 <executions>
307                     <execution>
308                         <id>make-assembly</id>
309                         <phase>package</phase>
310                         <goals>
311                             <goal>single</goal>
312                         </goals>
313                     </execution>
314                 </executions>
315             </plugin>
316             <plugin>
317                 <groupId>com.spotify</groupId>
318                 <artifactId>docker-maven-plugin</artifactId>
319                 <version>1.2.0</version>
320                 <configuration>
321                     <skipDockerBuild>false</skipDockerBuild>
322                     <serverId>${onap.nexus.dockerregistry.daily}</serverId>
323                     <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
324                     <imageTags>
325                         <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
326                         <imageTag>${project.version}</imageTag>
327                         <imageTag>latest</imageTag>
328                     </imageTags>
329                     <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
330                     <resources>
331                         <resource>
332                             <targetPath>.</targetPath>
333                             <directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
334                         </resource>
335                     </resources>
336                 </configuration>
337                 <!--<executions> <execution> <id>build-image</id> <phase>package</phase> 
338                     <goals> <goal>build</goal> </goals> </execution> <execution> <id>tag-and-push-image-latest</id> 
339                     <phase>deploy</phase> <goals> <goal>tag</goal> </goals> <configuration> <image>${docker.image.name}:latest</image> 
340                     <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName> 
341                     <pushImage>true</pushImage> </configuration> </execution> <execution> <id>tag-and-push-image-with-version</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}:${project.version} 
344                     </newName> <pushImage>true</pushImage> </configuration> </execution> <execution> 
345                     <id>tag-and-push-image-with-version-and-date</id> <phase>deploy</phase> <goals> 
346                     <goal>tag</goal> </goals> <configuration> <image>${docker.image.name}:latest</image> 
347                     <newName> ${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z 
348                     </newName> <pushImage>true</pushImage> </configuration> </execution> </executions> -->
349             </plugin>
350             <plugin>
351                 <groupId>org.springframework.boot</groupId>
352                 <artifactId>spring-boot-maven-plugin</artifactId>
353                 <version>2.1.1.RELEASE</version>
354                 <executions>
355                     <execution>
356                         <goals>
357                             <goal>repackage</goal>
358                         </goals>
359                         <configuration>
360                             <mainClass>org.onap.universalvesadapter.Application</mainClass>
361                         </configuration>
362                     </execution>
363                 </executions>
364             </plugin>
365             <plugin>
366                 <groupId>org.codehaus.mojo</groupId>
367                 <artifactId>build-helper-maven-plugin</artifactId>
368                 <version>1.9.1</version>
369                 <executions>
370                     <execution>
371                         <id>add-source</id>
372                         <phase>generate-sources</phase>
373                         <goals>
374                             <goal>add-source</goal>
375                         </goals>
376                         <configuration>
377                             <sources>
378                                 <source>src/gen/java</source>
379                             </sources>
380                         </configuration>
381                     </execution>
382                     <!-- <execution> <id>regex-property</id> <goals> <goal>regex-property</goal> 
383                         </goals> <configuration> <name>docker.version</name> <value>${project.version}</value> 
384                         <regex>(^[0-9]+.[0-9]+.[0-9]+$)</regex> <replacement>$1-STAGING</replacement> 
385                         <failIfNoMatch>false</failIfNoMatch> </configuration> </execution> -->
386                 </executions>
387             </plugin>
388         </plugins>
389         <!-- <finalName>UniversalVesAdapter</finalName> -->
390     </build>
391
392     <profiles>
393         <profile>
394             <id>with-system-proxy</id>
395             <build>
396                 <plugins>
397                     <plugin>
398                         <groupId>com.spotify</groupId>
399                         <artifactId>docker-maven-plugin</artifactId>
400                         <configuration>
401                             <buildArgs>
402                                 <http_proxy>${env.http_proxy}</http_proxy>
403                             </buildArgs>
404                         </configuration>
405                     </plugin>
406                 </plugins>
407             </build>
408         </profile>
409     </profiles>
410
411
412     <repositories>
413         <repository>
414             <id>spring-releases</id>
415             <url>https://repo.spring.io/libs-release</url>
416         </repository>
417     </repositories>
418     <pluginRepositories>
419         <pluginRepository>
420             <id>spring-releases</id>
421             <url>https://repo.spring.io/libs-release</url>
422         </pluginRepository>
423     </pluginRepositories>
424 </project>