1 <?xml version="1.0"?>
\r
3 ================================================================================
\r
4 Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
\r
5 Copyright (c) 2018 Nokia. All rights reserved.
\r
6 ================================================================================
\r
7 Licensed under the Apache License, Version 2.0 (the "License"); you may not
\r
8 use this file except in compliance with the License. You may obtain a copy
\r
9 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
\r
10 by applicable law or agreed to in writing, software distributed under the
\r
11 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
\r
12 OF ANY KIND, either express or implied. See the License for the specific
\r
13 language governing permissions and limitations under the License.
\r
14 ============LICENSE_END=========================================================
\r
16 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
\r
17 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
\r
18 <modelVersion>4.0.0</modelVersion>
\r
20 <groupId>org.onap.oparent</groupId>
\r
21 <artifactId>oparent</artifactId>
\r
22 <version>2.0.0</version>
\r
25 <groupId>org.onap.dcaegen2.collectors.ves</groupId>
\r
26 <artifactId>VESCollector</artifactId>
\r
27 <version>1.5.2-SNAPSHOT</version>
\r
28 <name>dcaegen2-collectors-ves</name>
\r
29 <description>VESCollector</description>
\r
31 <!-- PROJECT SETTINGS -->
\r
32 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
\r
33 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
\r
34 <java.version>8</java.version>
\r
35 <docker.image.name>onap/org.onap.dcaegen2.collectors.ves.vescollector</docker.image.name>
\r
36 <!-- TEST SETTINGS -->
\r
37 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
\r
38 <!-- PLUGIN SETTINGS -->
\r
39 <dependency.locations.enabled>false</dependency.locations.enabled>
\r
40 <!-- NEXUS RELATED SETTINGS -->
\r
41 <nexusproxy>https://nexus.onap.org</nexusproxy>
\r
42 <snapshots.path>content/repositories/snapshots/</snapshots.path>
\r
43 <releases.path>content/repositories/releases/</releases.path>
\r
44 <site.path>content/sites/site/org/onap/dcaegen2/collectors/ves/${project.artifactId}/${project.version}</site.path>
\r
45 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
\r
46 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
\r
52 <groupId>org.springframework.boot</groupId>
\r
53 <artifactId>spring-boot-maven-plugin</artifactId>
\r
56 <artifactId>maven-assembly-plugin</artifactId>
\r
57 <version>3.1.0</version>
\r
60 <artifactId>maven-javadoc-plugin</artifactId>
\r
61 <version>3.0.1</version>
\r
64 <artifactId>maven-project-info-reports-plugin</artifactId>
\r
65 <version>2.9</version>
\r
68 <groupId>org.apache.maven.plugins</groupId>
\r
69 <artifactId>maven-surefire-plugin</artifactId>
\r
70 <version>3.0.0-M1</version>
\r
73 <groupId>com.spotify</groupId>
\r
74 <artifactId>docker-maven-plugin</artifactId>
\r
75 <version>1.2.0</version>
\r
78 <groupId>org.apache.maven.plugins</groupId>
\r
79 <artifactId>maven-enforcer-plugin</artifactId>
\r
88 <artifactId>maven-assembly-plugin</artifactId>
\r
91 <descriptor>src/assembly/dep.xml</descriptor>
\r
93 <attach>false</attach>
\r
94 <appendAssemblyId>false</appendAssemblyId>
\r
95 <updateOnly>true</updateOnly>
\r
99 <id>make-assembly</id>
\r
100 <phase>package</phase>
\r
102 <goal>single</goal>
\r
108 <groupId>org.springframework.boot</groupId>
\r
109 <artifactId>spring-boot-maven-plugin</artifactId>
\r
113 <goal>repackage</goal>
\r
119 <artifactId>maven-javadoc-plugin</artifactId>
\r
121 <quiet>true</quiet>
\r
122 <verbose>false</verbose>
\r
123 <useStandardDocletOptions>false</useStandardDocletOptions>
\r
128 <phase>site</phase>
\r
130 <goal>aggregate</goal>
\r
134 <id>attach-javadoc</id>
\r
142 <groupId>com.spotify</groupId>
\r
143 <artifactId>docker-maven-plugin</artifactId>
\r
145 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
\r
146 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
\r
148 <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
\r
149 <imageTag>${project.version}</imageTag>
\r
150 <imageTag>latest</imageTag>
\r
152 <baseImage>openjdk:8-jre-slim</baseImage>
\r
153 <user>vescollector</user>
\r
155 <HOSTALIASES>/etc/host.aliases</HOSTALIASES>
\r
157 <workdir>/opt/app/VESCollector</workdir>
\r
160 <targetPath>.</targetPath>
\r
161 <directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
\r
165 <run>useradd -r -U vescollector</run>
\r
166 <run>chown -R vescollector:vescollector /opt/app</run>
\r
167 <run>mkdir /opt/app/VESCollector/logs</run>
\r
168 <run>chown -R vescollector:vescollector /opt/app/VESCollector/logs</run>
\r
169 <run>chown -R vescollector:vescollector /opt/app/VESCollector/etc</run>
\r
170 <!-- Maven is loosing file permissions during artifacts copy -->
\r
171 <run>chmod +x bin/*.sh</run>
\r
173 <![CDATA[apt-get update && apt-get install -y --no-install-recommends procps && apt-get install -y vim && apt-get install -y curl && apt-get clean all]]></run>
\r
176 <expose>8080</expose>
\r
177 <expose>8443</expose>
\r
179 <cmd>bin/docker-entry.sh</cmd>
\r
183 <id>build-image</id>
\r
184 <phase>package</phase>
\r
186 <goal>deploy</goal>
\r
190 <id>tag-and-push-image-latest</id>
\r
191 <phase>deploy</phase>
\r
196 <image>${docker.image.name}:latest</image>
\r
197 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
\r
198 <pushImage>true</pushImage>
\r
202 <id>tag-and-push-image-with-version</id>
\r
203 <phase>deploy</phase>
\r
208 <image>${docker.image.name}:latest</image>
\r
209 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
\r
210 <pushImage>true</pushImage>
\r
214 <id>tag-and-push-image-with-version-and-date</id>
\r
215 <phase>deploy</phase>
\r
220 <image>${docker.image.name}:latest</image>
\r
221 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
\r
222 <pushImage>true</pushImage>
\r
231 <id>with-system-proxy</id>
\r
235 <groupId>com.spotify</groupId>
\r
236 <artifactId>docker-maven-plugin</artifactId>
\r
239 <http_proxy>${env.http_proxy}</http_proxy>
\r
250 <artifactId>maven-project-info-reports-plugin</artifactId>
\r
254 <report>dependencies</report>
\r
255 <report>license</report>
\r
261 <artifactId>maven-javadoc-plugin</artifactId>
\r
263 <failOnError>false</failOnError>
\r
264 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
\r
266 <groupId>org.umlgraph</groupId>
\r
267 <artifactId>umlgraph</artifactId>
\r
268 <version>5.6</version>
\r
270 <additionalparam>-views</additionalparam>
\r
271 <useStandardDocletOptions>true</useStandardDocletOptions>
\r
276 <dependencyManagement>
\r
279 <!-- Import dependency management from Spring Boot -->
\r
280 <groupId>org.springframework.boot</groupId>
\r
281 <artifactId>spring-boot-dependencies</artifactId>
\r
282 <version>2.1.0.RELEASE</version>
\r
284 <scope>import</scope>
\r
287 </dependencyManagement>
\r
289 <!-- JSON RELATED -->
\r
291 <groupId>com.googlecode.json-simple</groupId>
\r
292 <artifactId>json-simple</artifactId>
\r
293 <version>1.1.1</version>
\r
296 <groupId>com.github.fge</groupId>
\r
297 <artifactId>json-schema-validator</artifactId>
\r
298 <version>2.2.6</version>
\r
301 <groupId>com.github.fge</groupId>
\r
302 <artifactId>json-schema-core</artifactId>
\r
303 <version>1.2.5</version>
\r
306 <groupId>com.google.code.gson</groupId>
\r
307 <artifactId>gson</artifactId>
\r
308 <version>2.8.5</version>
\r
311 <groupId>org.json</groupId>
\r
312 <artifactId>json</artifactId>
\r
313 <version>20160810</version>
\r
315 <!-- REST API RELATED -->
\r
317 <groupId>com.att.nsa</groupId>
\r
318 <artifactId>cambriaClient</artifactId>
\r
319 <version>0.0.1</version>
\r
322 <groupId>com.mashape.unirest</groupId>
\r
323 <artifactId>unirest-java</artifactId>
\r
324 <version>1.4.9</version>
\r
326 <!-- MISCELLANEOUS -->
\r
328 <groupId>commons-collections</groupId>
\r
329 <artifactId>commons-collections</artifactId>
\r
330 <version>3.2.2</version>
\r
333 <groupId>commons-configuration</groupId>
\r
334 <artifactId>commons-configuration</artifactId>
\r
335 <version>1.10</version>
\r
338 <groupId>io.vavr</groupId>
\r
339 <artifactId>vavr</artifactId>
\r
340 <version>0.9.2</version>
\r
343 <groupId>org.springframework.boot</groupId>
\r
344 <artifactId>spring-boot-starter-web</artifactId>
\r
347 <groupId>org.springframework.boot</groupId>
\r
348 <artifactId>spring-boot-starter-logging</artifactId>
\r
353 <groupId>org.springframework.boot</groupId>
\r
354 <artifactId>spring-boot-starter-log4j2</artifactId>
\r
355 <version>2.1.5.RELEASE</version>
\r
358 <groupId>org.apache.logging.log4j</groupId>
\r
359 <artifactId>log4j-slf4j-impl</artifactId>
\r
364 <groupId>io.springfox</groupId>
\r
365 <artifactId>springfox-swagger2</artifactId>
\r
366 <version>2.8.0</version>
\r
369 <groupId>io.springfox</groupId>
\r
370 <artifactId>springfox-swagger-ui</artifactId>
\r
371 <version>2.8.0</version>
\r
372 <scope>compile</scope>
\r
376 <groupId>org.junit.jupiter</groupId>
\r
377 <artifactId>junit-jupiter-api</artifactId>
\r
378 <version>5.3.1</version>
\r
379 <scope>test</scope>
\r
382 <groupId>org.junit.jupiter</groupId>
\r
383 <artifactId>junit-jupiter-engine</artifactId>
\r
384 <version>5.3.1</version>
\r
385 <scope>test</scope>
\r
388 <groupId>org.junit.vintage</groupId>
\r
389 <artifactId>junit-vintage-engine</artifactId>
\r
390 <version>5.3.1</version>
\r
391 <scope>test</scope>
\r
394 <groupId>org.mockito</groupId>
\r
395 <artifactId>mockito-junit-jupiter</artifactId>
\r
396 <version>2.23.0</version>
\r
397 <scope>test</scope>
\r
400 <groupId>org.assertj</groupId>
\r
401 <artifactId>assertj-core</artifactId>
\r
402 <version>3.8.0</version>
\r
403 <scope>test</scope>
\r
406 <groupId>com.google.jimfs</groupId>
\r
407 <artifactId>jimfs</artifactId>
\r
408 <version>1.1</version>
\r
409 <scope>test</scope>
\r
412 <groupId>com.github.tomakehurst</groupId>
\r
413 <artifactId>wiremock-standalone</artifactId>
\r
414 <version>2.17.0</version>
\r
415 <scope>test</scope>
\r
418 <groupId>org.springframework.security</groupId>
\r
419 <artifactId>spring-security-test</artifactId>
\r
420 <version>5.1.1.RELEASE</version>
\r
421 <scope>test</scope>
\r
424 <groupId>org.springframework.boot</groupId>
\r
425 <artifactId>spring-boot-starter-test</artifactId>
\r
426 <version>2.1.0.RELEASE</version>
\r
427 <scope>test</scope>
\r
430 <groupId>org.onap.dcaegen2.services.sdk.security.crypt</groupId>
\r
431 <artifactId>crypt-password</artifactId>
\r
432 <version>1.3.1</version>
\r
435 <groupId>org.onap.dcaegen2.services.sdk.standardization</groupId>
\r
436 <artifactId>api-custom-header</artifactId>
\r
437 <version>1.1.4</version>
\r
442 <id>external-repository</id>
\r
443 <url>https://oss.sonatype.org/content/repositories</url>
\r
446 <pluginRepositories>
\r
447 <!-- Black Duck plugin dependencies -->
\r
450 <name>JCenter Repository</name>
\r
451 <url>http://jcenter.bintray.com</url>
\r
452 </pluginRepository>
\r
455 <name>Restlet Repository</name>
\r
456 <url>http://maven.restlet.com</url>
\r
457 </pluginRepository>
\r
458 </pluginRepositories>
\r