[DCAE] INFO.yaml update
[dcaegen2/collectors/ves.git] / pom.xml
1 <?xml version="1.0"?>
2 <!--
3     ================================================================================
4         Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
5         Copyright (c) 2020-2021 Nokia. All rights reserved.
6         ================================================================================
7         Licensed under the Apache License, Version 2.0 (the "License"); you may not
8         use this file except in compliance with the License. You may obtain a copy
9         of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
10         by applicable law or agreed to in writing, software distributed under the
11         License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
12         OF ANY KIND, either express or implied. See the License for the specific
13         language governing permissions and limitations under the License.
14         ============LICENSE_END=========================================================
15 -->
16 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
18   <modelVersion>4.0.0</modelVersion>
19   <parent>
20     <groupId>org.onap.oparent</groupId>
21     <artifactId>oparent</artifactId>
22     <version>3.2.0</version>
23     <relativePath/>
24   </parent>
25   <groupId>org.onap.dcaegen2.collectors.ves</groupId>
26   <artifactId>VESCollector</artifactId>
27   <version>1.10.1-SNAPSHOT</version>
28   <name>dcaegen2-collectors-ves</name>
29   <description>VESCollector</description>
30   <properties>
31     <!-- PROJECT SETTINGS -->
32     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
34     <java.version>11</java.version>
35     <docker.image.name>onap/org.onap.dcaegen2.collectors.ves.vescollector</docker.image.name>
36     <!-- TEST SETTINGS -->
37     <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
38     <!-- PLUGIN SETTINGS -->
39     <dependency.locations.enabled>false</dependency.locations.enabled>
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>content/sites/site/org/onap/dcaegen2/collectors/ves/${project.artifactId}/${project.version}</site.path>
45     <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
46     <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
47     <maven.compiler.target>${java.version}</maven.compiler.target>
48     <maven.compiler.source>${java.version}</maven.compiler.source>
49     <sonar.coverage.jacoco.xmlReportPaths>
50         ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
51     </sonar.coverage.jacoco.xmlReportPaths>
52     <!-- DEPENDENCY RELATED SETTINGS -->
53     <micrometer.version>1.6.5</micrometer.version>
54     <spring.version>2.4.3</spring.version>
55     <maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version>
56     <maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
57     <maven-project-info-reports-plugin.version>2.9</maven-project-info-reports-plugin.version>
58     <maven-surefire-plugin.version>3.0.0-M1</maven-surefire-plugin.version>
59     <docker-maven-plugin.version>1.2.0</docker-maven-plugin.version>
60     <json-simple.version>1.1.1</json-simple.version>
61     <json-schema-validator.version>1.0.49</json-schema-validator.version>
62     <gson.version>2.8.6</gson.version>
63     <json.version>20210307</json.version>
64     <unirest-java.version>1.4.9</unirest-java.version>
65     <commons-collections.version>3.2.2</commons-collections.version>
66     <commons-configuration.version>1.10</commons-configuration.version>
67     <vavr.version>0.10.3</vavr.version>
68     <spring-boot-starter-log4j2.version>2.4.3</spring-boot-starter-log4j2.version>
69     <springfox-swagger2.version>3.0.0</springfox-swagger2.version>
70     <assertj-core.version>3.19.0</assertj-core.version>
71     <spring-boot-starter-test.version>2.2.13.RELEASE</spring-boot-starter-test.version>
72     <sdk.version>1.8.7</sdk.version>
73     <guava.version>30.1-jre</guava.version>
74     <mock-server.version>5.11.1</mock-server.version>
75     <reactor-test.version>3.4.0</reactor-test.version>
76     <testcontainers.version>1.15.1</testcontainers.version>
77     <junit-jupiter.version>1.15.1</junit-jupiter.version>
78   </properties>
79   <build>
80     <pluginManagement>
81       <plugins>
82         <plugin>
83           <groupId>org.springframework.boot</groupId>
84           <artifactId>spring-boot-maven-plugin</artifactId>
85           <version>${spring.version}</version>
86         </plugin>
87         <plugin>
88           <artifactId>maven-assembly-plugin</artifactId>
89           <version>${maven-assembly-plugin.version}</version>
90         </plugin>
91         <plugin>
92           <artifactId>maven-javadoc-plugin</artifactId>
93           <version>${maven-javadoc-plugin.version}</version>
94         </plugin>
95         <plugin>
96           <artifactId>maven-project-info-reports-plugin</artifactId>
97           <version>${maven-project-info-reports-plugin.version}</version>
98         </plugin>
99         <plugin>
100           <groupId>org.apache.maven.plugins</groupId>
101           <artifactId>maven-surefire-plugin</artifactId>
102           <version>${maven-surefire-plugin.version}</version>
103           <configuration>
104             <environmentVariables>
105               <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
106             </environmentVariables>
107           </configuration>
108         </plugin>
109         <plugin>
110           <groupId>com.spotify</groupId>
111           <artifactId>docker-maven-plugin</artifactId>
112           <version>${docker-maven-plugin.version}</version>
113         </plugin>
114         <plugin>
115           <groupId>org.apache.maven.plugins</groupId>
116           <artifactId>maven-enforcer-plugin</artifactId>
117           <configuration>
118             <skip>true</skip>
119           </configuration>
120         </plugin>
121       </plugins>
122     </pluginManagement>
123     <plugins>
124       <plugin>
125         <artifactId>maven-assembly-plugin</artifactId>
126         <configuration>
127           <descriptors>
128             <descriptor>src/assembly/dep.xml</descriptor>
129           </descriptors>
130           <attach>false</attach>
131           <appendAssemblyId>false</appendAssemblyId>
132           <updateOnly>true</updateOnly>
133         </configuration>
134         <executions>
135           <execution>
136             <id>make-assembly</id>
137             <phase>package</phase>
138             <goals>
139               <goal>single</goal>
140             </goals>
141           </execution>
142         </executions>
143       </plugin>
144       <plugin>
145         <groupId>org.springframework.boot</groupId>
146         <artifactId>spring-boot-maven-plugin</artifactId>
147         <executions>
148           <execution>
149             <goals>
150               <goal>repackage</goal>
151             </goals>
152           </execution>
153         </executions>
154       </plugin>
155       <plugin>
156         <artifactId>maven-javadoc-plugin</artifactId>
157         <configuration>
158           <quiet>true</quiet>
159           <verbose>false</verbose>
160           <useStandardDocletOptions>false</useStandardDocletOptions>
161         </configuration>
162         <executions>
163           <execution>
164             <id>aggregate</id>
165             <phase>site</phase>
166             <goals>
167               <goal>aggregate</goal>
168             </goals>
169           </execution>
170           <execution>
171             <id>attach-javadoc</id>
172             <goals>
173               <goal>jar</goal>
174             </goals>
175           </execution>
176         </executions>
177       </plugin>
178       <plugin>
179         <groupId>com.spotify</groupId>
180         <artifactId>docker-maven-plugin</artifactId>
181         <configuration>
182           <serverId>${onap.nexus.dockerregistry.daily}</serverId>
183           <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
184           <imageTags>
185             <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
186             <imageTag>${project.version}</imageTag>
187             <imageTag>latest</imageTag>
188           </imageTags>
189           <baseImage>openjdk:11.0.11-jre-slim</baseImage>
190           <user>vescollector</user>
191           <env>
192             <HOSTALIASES>/etc/host.aliases</HOSTALIASES>
193           </env>
194           <workdir>/opt/app/VESCollector</workdir>
195           <resources>
196             <resource>
197               <targetPath>.</targetPath>
198               <directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
199             </resource>
200           </resources>
201           <runs>
202             <run>useradd -r -U vescollector</run>
203             <run>chown -R vescollector:vescollector /opt/app</run>
204             <run>mkdir /opt/app/VESCollector/logs</run>
205             <run>chown -R vescollector:vescollector /opt/app/VESCollector/logs</run>
206             <run>chown -R vescollector:vescollector /opt/app/VESCollector/etc</run>
207             <!-- Maven is loosing file permissions during artifacts copy -->
208             <run>chmod +x bin/*.sh</run>
209             <run>
210               <![CDATA[apt-get update && apt-get install -y --no-install-recommends procps && apt-get install -y less && apt-get install -y vim && apt-get install -y curl && apt-get clean all]]></run>
211           </runs>
212           <exposes>
213             <expose>8080</expose>
214             <expose>8443</expose>
215           </exposes>
216           <cmd>bin/docker-entry.sh</cmd>
217         </configuration>
218       </plugin>
219     </plugins>
220   </build>
221   <profiles>
222     <profile>
223       <id>buildForPerfTests</id>
224       <activation>
225         <activeByDefault>false</activeByDefault>
226       </activation>
227       <dependencies>
228         <!-- Libraries related with performance tests-->
229         <dependency>
230           <groupId>org.springframework.boot</groupId>
231           <artifactId>spring-boot-starter-actuator</artifactId>
232           <version>${spring.version}</version>
233         </dependency>
234         <dependency>
235           <groupId>io.micrometer</groupId>
236           <artifactId>micrometer-registry-prometheus</artifactId>
237           <version>${micrometer.version}</version>
238         </dependency>
239         <dependency>
240           <groupId>io.micrometer</groupId>
241           <artifactId>micrometer-core</artifactId>
242           <version>${micrometer.version}</version>
243         </dependency>
244       </dependencies>
245     </profile>
246     <profile>
247       <id>with-system-proxy</id>
248       <build>
249         <plugins>
250           <plugin>
251             <groupId>com.spotify</groupId>
252             <artifactId>docker-maven-plugin</artifactId>
253             <configuration>
254               <buildArgs>
255                 <http_proxy>${env.http_proxy}</http_proxy>
256               </buildArgs>
257             </configuration>
258           </plugin>
259         </plugins>
260       </build>
261     </profile>
262   </profiles>
263   <reporting>
264     <plugins>
265       <plugin>
266         <artifactId>maven-project-info-reports-plugin</artifactId>
267         <reportSets>
268           <reportSet>
269             <reports>
270               <report>dependencies</report>
271               <report>license</report>
272             </reports>
273           </reportSet>
274         </reportSets>
275       </plugin>
276       <plugin>
277         <artifactId>maven-javadoc-plugin</artifactId>
278         <configuration>
279           <failOnError>false</failOnError>
280           <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
281           <docletArtifact>
282             <groupId>org.umlgraph</groupId>
283             <artifactId>umlgraph</artifactId>
284             <version>5.6</version>
285           </docletArtifact>
286           <additionalparam>-views</additionalparam>
287           <useStandardDocletOptions>true</useStandardDocletOptions>
288         </configuration>
289       </plugin>
290     </plugins>
291   </reporting>
292   <dependencyManagement>
293     <dependencies>
294       <dependency>
295         <!-- Import dependency management from Spring Boot -->
296         <groupId>org.springframework.boot</groupId>
297         <artifactId>spring-boot-dependencies</artifactId>
298         <version>${spring.version}</version>
299         <type>pom</type>
300         <scope>import</scope>
301       </dependency>
302     </dependencies>
303   </dependencyManagement>
304   <dependencies>
305     <!-- JSON RELATED -->
306     <dependency>
307       <groupId>com.networknt</groupId>
308       <artifactId>json-schema-validator</artifactId>
309       <version>${json-schema-validator.version}</version>
310       <exclusions>
311         <exclusion>
312           <groupId>com.fasterxml.jackson.core</groupId>
313           <artifactId>jackson-databind</artifactId>
314         </exclusion>
315       </exclusions>
316     </dependency>
317     <dependency>
318       <groupId>com.google.code.gson</groupId>
319       <artifactId>gson</artifactId>
320       <version>${gson.version}</version>
321     </dependency>
322     <dependency>
323       <groupId>org.json</groupId>
324       <artifactId>json</artifactId>
325       <version>${json.version}</version>
326     </dependency>
327     <dependency>
328       <groupId>com.google.guava</groupId>
329       <artifactId>guava</artifactId>
330       <version>${guava.version}</version>
331     </dependency>
332     <!-- REST API RELATED -->
333     <dependency>
334       <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
335       <artifactId>dmaap-client</artifactId>
336       <version>${sdk.version}</version>
337       <exclusions>
338         <exclusion>
339           <groupId>ch.qos.logback</groupId>
340           <artifactId>logback-classic</artifactId>
341         </exclusion>
342       </exclusions>
343     </dependency>
344     <dependency>
345       <groupId>io.projectreactor</groupId>
346       <artifactId>reactor-test</artifactId>
347       <version>${reactor-test.version}</version>
348       <scope>test</scope>
349     </dependency>
350     <dependency>
351       <groupId>org.testcontainers</groupId>
352       <artifactId>testcontainers</artifactId>
353       <version>${testcontainers.version}</version>
354     </dependency>
355     <dependency>
356       <groupId>org.testcontainers</groupId>
357       <artifactId>junit-jupiter</artifactId>
358       <version>${junit-jupiter.version}</version>
359     </dependency>
360     <dependency>
361       <groupId>com.mashape.unirest</groupId>
362       <artifactId>unirest-java</artifactId>
363       <version>${unirest-java.version}</version>
364     </dependency>
365     <!-- MISCELLANEOUS -->
366     <dependency>
367       <groupId>commons-collections</groupId>
368       <artifactId>commons-collections</artifactId>
369       <version>${commons-collections.version}</version>
370     </dependency>
371     <dependency>
372       <groupId>commons-configuration</groupId>
373       <artifactId>commons-configuration</artifactId>
374       <version>${commons-configuration.version}</version>
375     </dependency>
376     <dependency>
377       <groupId>io.vavr</groupId>
378       <artifactId>vavr</artifactId>
379       <version>${vavr.version}</version>
380     </dependency>
381     <dependency>
382       <groupId>org.springframework.boot</groupId>
383       <artifactId>spring-boot-starter-web</artifactId>
384       <exclusions>
385         <exclusion>
386           <groupId>org.springframework.boot</groupId>
387           <artifactId>spring-boot-starter-logging</artifactId>
388         </exclusion>
389       </exclusions>
390     </dependency>
391     <dependency>
392       <groupId>org.springframework.boot</groupId>
393       <artifactId>spring-boot-starter-log4j2</artifactId>
394       <version>${spring-boot-starter-log4j2.version}</version>
395     </dependency>
396     <dependency>
397       <groupId>io.springfox</groupId>
398       <artifactId>springfox-swagger2</artifactId>
399       <version>${springfox-swagger2.version}</version>
400     </dependency>
401     <dependency>
402       <groupId>io.springfox</groupId>
403       <artifactId>springfox-swagger-ui</artifactId>
404       <version>${springfox-swagger2.version}</version>
405       <scope>compile</scope>
406     </dependency>
407     <dependency>
408       <groupId>org.mock-server</groupId>
409       <artifactId>mockserver-junit-jupiter</artifactId>
410       <version>${mock-server.version}</version>
411       <scope>test</scope>
412     </dependency>
413     <dependency>
414       <groupId>org.assertj</groupId>
415       <artifactId>assertj-core</artifactId>
416       <version>${assertj-core.version}</version>
417       <scope>test</scope>
418     </dependency>
419     <dependency>
420       <groupId>org.springframework.boot</groupId>
421       <artifactId>spring-boot-starter-test</artifactId>
422       <version>${spring-boot-starter-test.version}</version>
423       <scope>test</scope>
424       <exclusions>
425         <exclusion>
426           <groupId>com.vaadin.external.google</groupId>
427           <artifactId>android-json</artifactId>
428         </exclusion>
429       </exclusions>
430     </dependency>
431     <dependency>
432       <groupId>org.onap.dcaegen2.services.sdk.security.crypt</groupId>
433       <artifactId>crypt-password</artifactId>
434       <classifier>slim</classifier>
435       <version>${sdk.version}</version>
436     </dependency>
437     <dependency>
438       <groupId>org.onap.dcaegen2.services.sdk</groupId>
439       <artifactId>dcaegen2-services-sdk-services-external-schema-manager</artifactId>
440       <version>${sdk.version}</version>
441     </dependency>
442     <dependency>
443       <groupId>org.springframework.security</groupId>
444       <artifactId>spring-security-crypto</artifactId>
445     </dependency>
446     <dependency>
447       <groupId>org.onap.dcaegen2.services.sdk.standardization</groupId>
448       <artifactId>api-custom-header</artifactId>
449       <version>${sdk.version}</version>
450     </dependency>
451     <dependency>
452       <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
453       <artifactId>cbs-client</artifactId>
454       <version>${sdk.version}</version>
455     </dependency>
456   </dependencies>
457   <repositories>
458     <repository>
459       <id>external-repository</id>
460       <url>https://oss.sonatype.org/content/repositories</url>
461     </repository>
462   </repositories>
463   <pluginRepositories>
464     <!-- Black Duck plugin dependencies -->
465     <pluginRepository>
466       <id>JCenter</id>
467       <name>JCenter Repository</name>
468       <url>http://jcenter.bintray.com</url>
469     </pluginRepository>
470     <pluginRepository>
471       <id>Restlet</id>
472       <name>Restlet Repository</name>
473       <url>http://maven.restlet.com</url>
474     </pluginRepository>
475   </pluginRepositories>
476 </project>