2 ================================================================================
3 Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
4 Copyright (c) 2018 Nokia. All rights reserved.
5 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ============LICENSE_END=========================================================
20 <project xmlns="http://maven.apache.org/POM/4.0.0"
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.onap.oparent</groupId>
27 <artifactId>oparent</artifactId>
28 <version>0.1.1</version>
32 <groupId>org.onap.dcaegen2.collectors.ves</groupId>
33 <artifactId>VESCollector</artifactId>
34 <version>1.3.0-SNAPSHOT</version>
36 <name>dcaegen2-collectors-ves</name>
37 <description>VESCollector</description>
40 <!-- PROJECT SETTINGS -->
41 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
43 <java.version>8</java.version>
44 <docker.image.name>onap/org.onap.dcaegen2.collectors.ves.vescollector</docker.image.name>
46 <!-- TEST SETTINGS -->
47 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
49 <!-- PLUGIN SETTINGS -->
50 <dependency.locations.enabled>false</dependency.locations.enabled>
52 <!-- NEXUS RELATED SETTINGS -->
53 <nexusproxy>https://nexus.onap.org</nexusproxy>
54 <snapshots.path>content/repositories/snapshots/</snapshots.path>
55 <releases.path>content/repositories/releases/</releases.path>
57 content/sites/site/org/onap/dcaegen2/collectors/ves/${project.artifactId}/${project.version}
59 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
67 <artifactId>maven-compiler-plugin</artifactId>
68 <version>3.7.0</version>
71 <artifactId>maven-source-plugin</artifactId>
72 <version>3.0.1</version>
75 <artifactId>maven-jar-plugin</artifactId>
76 <version>3.1.0</version>
79 <artifactId>maven-assembly-plugin</artifactId>
80 <version>3.1.0</version>
83 <artifactId>maven-javadoc-plugin</artifactId>
84 <version>3.0.1</version>
87 <artifactId>maven-project-info-reports-plugin</artifactId>
88 <version>2.9</version>
91 <groupId>com.spotify</groupId>
92 <artifactId>docker-maven-plugin</artifactId>
93 <version>1.1.1</version>
100 <artifactId>maven-compiler-plugin</artifactId>
102 <source>${java.version}</source>
103 <target>${java.version}</target>
104 <showWarnings>true</showWarnings>
105 <showDeprecation>true</showDeprecation>
110 <artifactId>maven-source-plugin</artifactId>
112 <excludeResources>true</excludeResources>
116 <id>attach-sources</id>
117 <phase>verify</phase>
119 <goal>jar-no-fork</goal>
126 <artifactId>maven-jar-plugin</artifactId>
130 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
133 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
140 <artifactId>maven-assembly-plugin</artifactId>
143 <descriptor>src/assembly/dep.xml</descriptor>
145 <attach>false</attach>
146 <appendAssemblyId>false</appendAssemblyId>
147 <updateOnly>true</updateOnly>
151 <id>make-assembly</id>
152 <phase>package</phase>
161 <artifactId>maven-javadoc-plugin</artifactId>
163 <!-- minimize console output messages -->
165 <verbose>false</verbose>
166 <useStandardDocletOptions>false</useStandardDocletOptions>
173 <goal>aggregate</goal>
177 <id>attach-javadoc</id>
186 <groupId>com.spotify</groupId>
187 <artifactId>docker-maven-plugin</artifactId>
189 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
190 <imageName>${docker.image.name}</imageName>
195 <baseImage>openjdk:8-jre-slim</baseImage>
197 <HOSTALIASES>/etc/host.aliases</HOSTALIASES>
199 <workdir>/opt/app/VESCollector</workdir>
202 <targetPath>.</targetPath>
203 <directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
207 <run>chmod +x bin/*.sh</run> <!-- Maven is loosing file permissions during artifacts copy -->
210 <expose>8080</expose>
211 <expose>8443</expose>
213 <cmd>bin/docker-entry.sh</cmd>
219 <phase>package</phase>
225 <id>tag-and-push-image-latest</id>
226 <phase>deploy</phase>
231 <image>${docker.image.name}:latest</image>
232 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
233 <pushImage>true</pushImage>
237 <id>tag-and-push-image-with-version</id>
238 <phase>deploy</phase>
243 <image>${docker.image.name}:latest</image>
244 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
245 <pushImage>true</pushImage>
249 <id>tag-and-push-image-with-version-and-date</id>
250 <phase>deploy</phase>
255 <image>${docker.image.name}:latest</image>
256 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
257 <pushImage>true</pushImage>
268 <artifactId>maven-project-info-reports-plugin</artifactId>
272 <report>dependencies</report>
273 <report>license</report>
280 <artifactId>maven-javadoc-plugin</artifactId>
282 <failOnError>false</failOnError>
283 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
285 <groupId>org.umlgraph</groupId>
286 <artifactId>umlgraph</artifactId>
287 <version>5.6</version>
289 <additionalparam>-views</additionalparam>
290 <useStandardDocletOptions>true</useStandardDocletOptions>
297 <!-- JSON RELATED -->
299 <groupId>com.googlecode.json-simple</groupId>
300 <artifactId>json-simple</artifactId>
301 <version>1.1.1</version>
304 <groupId>com.github.fge</groupId>
305 <artifactId>json-schema-validator</artifactId>
306 <version>2.2.6</version>
309 <groupId>com.github.fge</groupId>
310 <artifactId>json-schema-core</artifactId>
311 <version>1.2.5</version>
314 <groupId>com.google.code.gson</groupId>
315 <artifactId>gson</artifactId>
316 <version>2.3.1</version>
319 <groupId>org.json</groupId>
320 <artifactId>json</artifactId>
321 <version>20160810</version>
324 <!-- REST API RELATED -->
326 <groupId>org.apache.tomcat.embed</groupId>
327 <artifactId>tomcat-embed-core</artifactId>
328 <version>8.5.23</version>
331 <groupId>org.apache.tomcat</groupId>
332 <artifactId>tomcat-catalina</artifactId>
333 <version>8.5.23</version>
336 <groupId>org.apache.tomcat</groupId>
337 <artifactId>tomcat-coyote</artifactId>
338 <version>8.5.23</version>
341 <groupId>com.att.nsa</groupId>
342 <artifactId>nsaServerLibrary</artifactId>
343 <version>1.0.10</version>
346 <groupId>org.apache.httpcomponents</groupId>
347 <artifactId>httpclient</artifactId>
348 <version>4.5.3</version>
351 <groupId>com.fasterxml.jackson.core</groupId>
352 <artifactId>jackson-databind</artifactId>
353 <version>2.8.11</version>
356 <!-- LOGGING RELATED -->
358 <groupId>org.slf4j</groupId>
359 <artifactId>slf4j-log4j12</artifactId>
360 <version>1.7.21</version>
363 <groupId>log4j</groupId>
364 <artifactId>apache-log4j-extras</artifactId>
365 <version>1.2.17</version>
368 <!-- MISCELLANEOUS -->
370 <groupId>com.google.guava</groupId>
371 <artifactId>guava</artifactId>
372 <version>18.0</version>
375 <groupId>commons-collections</groupId>
376 <artifactId>commons-collections</artifactId>
377 <version>3.2.2</version>
380 <groupId>commons-configuration</groupId>
381 <artifactId>commons-configuration</artifactId>
382 <version>1.10</version>
385 <groupId>javax.mail</groupId>
386 <artifactId>mail</artifactId>
387 <version>1.4.7</version>
392 <groupId>org.mockito</groupId>
393 <artifactId>mockito-core</artifactId>
394 <version>2.18.0</version>
398 <groupId>org.assertj</groupId>
399 <artifactId>assertj-core</artifactId>
400 <version>3.8.0</version>
407 <id>external-repository</id>
408 <url>https://oss.sonatype.org/content/repositories</url>
413 <!-- Black Duck plugin dependencies -->
416 <name>JCenter Repository</name>
417 <url>http://jcenter.bintray.com</url>
421 <name>Restlet Repository</name>
422 <url>http://maven.restlet.com</url>
424 </pluginRepositories>