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