blob: 9f2a12cffdd10e2203d3c4937a00ad9b96670ddf [file] [log] [blame]
elinuxhenrikd661dbc2018-08-17 12:34:58 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ ============LICENSE_START=======================================================
RehanRaza958f0b02019-02-22 10:04:34 +00004 ~ Copyright (C) 2018 NOKIA Intellectual Property, 2018-2019 Nordix Foundation. All rights reserved.
elinuxhenrikf3945942018-09-14 15:49:10 +02005 ~ ================================================================================
elinuxhenrikd661dbc2018-08-17 12:34:58 +02006 ~ 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
9 ~
elinuxhenrikf3945942018-09-14 15:49:10 +020010 ~ http://www.apache.org/licenses/LICENSE-2.0
elinuxhenrikd661dbc2018-08-17 12:34:58 +020011 ~
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=========================================================
18 -->
19<project xmlns="http://maven.apache.org/POM/4.0.0"
20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Vijay Venkatesh Kumar0ae7a7f2018-10-05 14:14:00 +020022 <modelVersion>4.0.0</modelVersion>
23
elinuxhenrikd661dbc2018-08-17 12:34:58 +020024 <parent>
elinuxhenrikd661dbc2018-08-17 12:34:58 +020025 <groupId>org.onap.dcaegen2.collectors</groupId>
elinuxhenrikf3945942018-09-14 15:49:10 +020026 <artifactId>datafile</artifactId>
TamasBakai8e3c45f2019-05-05 08:32:53 +000027 <version>1.2.0-SNAPSHOT</version>
elinuxhenrikd661dbc2018-08-17 12:34:58 +020028 </parent>
elinuxhenrikd661dbc2018-08-17 12:34:58 +020029
elinuxhenrikd661dbc2018-08-17 12:34:58 +020030 <groupId>org.onap.dcaegen2.collectors.datafile</groupId>
elinuxhenrikf3945942018-09-14 15:49:10 +020031 <artifactId>datafile-app-server</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +020032 <packaging>jar</packaging>
elinuxhenrikf3945942018-09-14 15:49:10 +020033
elinuxhenrikd661dbc2018-08-17 12:34:58 +020034 <properties>
elinuxhenrikf3945942018-09-14 15:49:10 +020035 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
elinuxhenrikd661dbc2018-08-17 12:34:58 +020036 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
elinuxhenrikd661dbc2018-08-17 12:34:58 +020037 </properties>
elinuxhenrikf3945942018-09-14 15:49:10 +020038
elinuxhenrik215ab932019-04-17 11:07:48 +020039 <dependencies>
40 <dependency>
41 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
42 <artifactId>cbs-client</artifactId>
43 </dependency>
44 <dependency>
45 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
46 <artifactId>dmaap-client</artifactId>
47 </dependency>
48 <dependency>
49 <groupId>org.apache.httpcomponents</groupId>
50 <artifactId>httpasyncclient</artifactId>
51 </dependency>
52 <dependency>
53 <groupId>org.apache.commons</groupId>
54 <artifactId>commons-lang3</artifactId>
55 </dependency>
56 <dependency>
57 <groupId>commons-io</groupId>
58 <artifactId>commons-io</artifactId>
59 </dependency>
60 <dependency>
61 <groupId>commons-net</groupId>
62 <artifactId>commons-net</artifactId>
63 </dependency>
64 <dependency>
65 <groupId>com.jcraft</groupId>
66 <artifactId>jsch</artifactId>
67 </dependency>
PatrikBuhr4229afc2019-05-29 09:39:53 +000068 <dependency>
69 <groupId>org.springframework.boot</groupId>
elinuxhenrikaddf3f12019-06-05 08:54:17 +000070 <artifactId>spring-boot-configuration-processor</artifactId>
71 <optional>true</optional>
72 </dependency>
73
74 <!-- Actuator dependencies -->
75 <dependency>
76 <groupId>org.springframework.boot</groupId>
PatrikBuhr4229afc2019-05-29 09:39:53 +000077 <artifactId>spring-boot-starter-actuator</artifactId>
elinuxhenrikaddf3f12019-06-05 08:54:17 +000078 </dependency>
PatrikBuhr4229afc2019-05-29 09:39:53 +000079 <dependency>
80 <groupId>javax.xml.bind</groupId>
81 <artifactId>jaxb-api</artifactId>
82 </dependency>
elinuxhenrik215ab932019-04-17 11:07:48 +020083
84 <!--TESTS DEPENDENCIES -->
85 <dependency>
86 <groupId>io.projectreactor</groupId>
87 <artifactId>reactor-test</artifactId>
88 <scope>test</scope>
89 </dependency>
90 <dependency>
91 <groupId>org.junit.jupiter</groupId>
92 <artifactId>junit-jupiter-engine</artifactId>
93 <scope>test</scope>
94 </dependency>
95 <dependency>
96 <groupId>org.springframework.boot</groupId>
97 <artifactId>spring-boot-starter-test</artifactId>
98 <scope>test</scope>
99 </dependency>
100 <dependency>
101 <groupId>org.testng</groupId>
102 <artifactId>testng</artifactId>
103 <scope>test</scope>
104 </dependency>
105 <dependency>
elinuxhenrikaddf3f12019-06-05 08:54:17 +0000106 <groupId>org.awaitility</groupId>
107 <artifactId>awaitility</artifactId>
108 <scope>test</scope>
109 </dependency>
110 <dependency>
111 <groupId>org.mockito</groupId>
112 <artifactId>mockito-junit-jupiter</artifactId>
elinuxhenrik215ab932019-04-17 11:07:48 +0200113 <scope>test</scope>
114 </dependency>
115
116 <!--REQUIRED TO GENERATE DOCUMENTATION -->
117 <dependency>
118 <groupId>io.springfox</groupId>
119 <artifactId>springfox-swagger2</artifactId>
120 </dependency>
yanhuanwang1fb8e382019-05-28 08:15:18 +0000121 <dependency>
122 <groupId>io.springfox</groupId>
123 <artifactId>springfox-swagger-ui</artifactId>
124 </dependency>
125 <dependency>
126 <groupId>org.springframework.boot</groupId>
127 <artifactId>spring-boot-starter-actuator</artifactId>
128 </dependency>
elinuxhenrik215ab932019-04-17 11:07:48 +0200129 </dependencies>
130
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200131 <build>
elinuxhenrike0551f42018-09-18 14:39:34 +0200132 <resources>
133 <resource>
134 <directory>src/main/resources</directory>
135 </resource>
136 </resources>
137
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200138 <plugins>
139 <plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200140 <groupId>org.springframework.boot</groupId>
141 <artifactId>spring-boot-maven-plugin</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200142 <configuration>
elinuxhenrike0551f42018-09-18 14:39:34 +0200143 <finalName>${project.artifactId}</finalName>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200144 <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass>
145 </configuration>
PatrikBuhr1ee111c2019-04-12 08:24:36 +0000146 <executions>
147 <execution>
148 <goals>
149 <goal>build-info</goal>
150 </goals>
151 </execution>
152 </executions>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200153 </plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200154 <plugin>
155 <groupId>com.spotify</groupId>
RehanRazac6c15ca2019-03-07 15:42:51 +0000156 <artifactId>docker-maven-plugin</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200157 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000158 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
159 <imageName>${docker.image.name}</imageName>
160 <imageTags>
161 <tag>latest</tag>
162 </imageTags>
163 <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
164 <resources>
165 <resource>
166 <directory>${project.build.directory}</directory>
167 <include>${project.artifactId}.jar</include>
168 <targetPath>/target</targetPath>
169 </resource>
170 <resource>
171 <targetPath>/config</targetPath>
172 <directory>${project.basedir}/config</directory>
173 <include>*</include>
174 </resource>
175 </resources>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200176 </configuration>
elinuxhenrikf3945942018-09-14 15:49:10 +0200177 <executions>
178 <execution>
179 <id>build-image</id>
180 <phase>package</phase>
181 <goals>
182 <goal>build</goal>
183 </goals>
184 </execution>
185 <execution>
186 <id>tag-and-push-image-latest</id>
187 <phase>deploy</phase>
188 <goals>
189 <goal>tag</goal>
190 </goals>
191 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000192 <image>${docker.image.name}:latest</image>
193 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
194 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200195 </configuration>
196 </execution>
197 <execution>
198 <id>tag-and-push-image-with-version</id>
199 <phase>deploy</phase>
200 <goals>
201 <goal>tag</goal>
202 </goals>
203 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000204 <image>${docker.image.name}:latest</image>
elinuxhenrikf3945942018-09-14 15:49:10 +0200205 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
RehanRazac6c15ca2019-03-07 15:42:51 +0000206 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200207 </configuration>
208 </execution>
209 <execution>
210 <id>tag-and-push-image-with-version-and-date</id>
211 <phase>deploy</phase>
212 <goals>
213 <goal>tag</goal>
214 </goals>
215 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000216 <image>${docker.image.name}:latest</image>
elinuxhenrikf3945942018-09-14 15:49:10 +0200217 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
RehanRazac6c15ca2019-03-07 15:42:51 +0000218 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200219 </configuration>
220 </execution>
221 </executions>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200222 </plugin>
PatrikBuhr4dc06d02019-04-11 15:27:07 +0000223
224 <plugin>
PatrikBuhr4dc06d02019-04-11 15:27:07 +0000225 <groupId>pl.project13.maven</groupId>
226 <artifactId>git-commit-id-plugin</artifactId>
227 <executions>
228 <execution>
229 <id>get-the-git-infos</id>
230 <goals>
231 <goal>revision</goal>
232 </goals>
233 </execution>
234 </executions>
235 <configuration>
236 <verbose>true</verbose>
237 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
238 <dateFormat>MM-dd-yyyy '@' HH:mm:ss Z</dateFormat>
239 <generateGitPropertiesFile>true</generateGitPropertiesFile>
240 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
241 <failOnNoGitDirectory>true</failOnNoGitDirectory>
242 </configuration>
243 </plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200244 </plugins>
245 </build>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200246</project>