blob: 50557b3a2f7307169eab13e1f095c08cfd0e9f56 [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>
elinuxhenrik415aa5b2019-06-28 12:18:16 +000027 <version>1.2.1-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>
YongchaoWub96580a2019-07-12 09:01:01 +000037 <spring.version>5.1.4.RELEASE</spring.version>
38 <spring-boot.version>2.1.2.RELEASE</spring-boot.version>
elinuxhenrikd661dbc2018-08-17 12:34:58 +020039 </properties>
elinuxhenrikf3945942018-09-14 15:49:10 +020040
elinuxhenrik215ab932019-04-17 11:07:48 +020041 <dependencies>
42 <dependency>
43 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
44 <artifactId>cbs-client</artifactId>
45 </dependency>
46 <dependency>
47 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
48 <artifactId>dmaap-client</artifactId>
49 </dependency>
50 <dependency>
51 <groupId>org.apache.httpcomponents</groupId>
52 <artifactId>httpasyncclient</artifactId>
53 </dependency>
54 <dependency>
55 <groupId>org.apache.commons</groupId>
56 <artifactId>commons-lang3</artifactId>
57 </dependency>
58 <dependency>
59 <groupId>commons-io</groupId>
60 <artifactId>commons-io</artifactId>
61 </dependency>
62 <dependency>
63 <groupId>commons-net</groupId>
64 <artifactId>commons-net</artifactId>
65 </dependency>
66 <dependency>
67 <groupId>com.jcraft</groupId>
68 <artifactId>jsch</artifactId>
69 </dependency>
PatrikBuhr4229afc2019-05-29 09:39:53 +000070 <dependency>
71 <groupId>org.springframework.boot</groupId>
elinuxhenrikaddf3f12019-06-05 08:54:17 +000072 <artifactId>spring-boot-configuration-processor</artifactId>
73 <optional>true</optional>
74 </dependency>
75
76 <!-- Actuator dependencies -->
77 <dependency>
78 <groupId>org.springframework.boot</groupId>
PatrikBuhr4229afc2019-05-29 09:39:53 +000079 <artifactId>spring-boot-starter-actuator</artifactId>
elinuxhenrikaddf3f12019-06-05 08:54:17 +000080 </dependency>
PatrikBuhr4229afc2019-05-29 09:39:53 +000081 <dependency>
82 <groupId>javax.xml.bind</groupId>
83 <artifactId>jaxb-api</artifactId>
84 </dependency>
elinuxhenrik215ab932019-04-17 11:07:48 +020085
86 <!--TESTS DEPENDENCIES -->
87 <dependency>
88 <groupId>io.projectreactor</groupId>
89 <artifactId>reactor-test</artifactId>
90 <scope>test</scope>
91 </dependency>
92 <dependency>
93 <groupId>org.junit.jupiter</groupId>
94 <artifactId>junit-jupiter-engine</artifactId>
95 <scope>test</scope>
96 </dependency>
97 <dependency>
98 <groupId>org.springframework.boot</groupId>
99 <artifactId>spring-boot-starter-test</artifactId>
100 <scope>test</scope>
101 </dependency>
102 <dependency>
103 <groupId>org.testng</groupId>
104 <artifactId>testng</artifactId>
105 <scope>test</scope>
106 </dependency>
107 <dependency>
elinuxhenrikaddf3f12019-06-05 08:54:17 +0000108 <groupId>org.awaitility</groupId>
109 <artifactId>awaitility</artifactId>
110 <scope>test</scope>
111 </dependency>
112 <dependency>
113 <groupId>org.mockito</groupId>
114 <artifactId>mockito-junit-jupiter</artifactId>
elinuxhenrik215ab932019-04-17 11:07:48 +0200115 <scope>test</scope>
116 </dependency>
117
118 <!--REQUIRED TO GENERATE DOCUMENTATION -->
119 <dependency>
120 <groupId>io.springfox</groupId>
121 <artifactId>springfox-swagger2</artifactId>
122 </dependency>
yanhuanwang1fb8e382019-05-28 08:15:18 +0000123 <dependency>
YongchaoWub96580a2019-07-12 09:01:01 +0000124 <groupId>javax.validation</groupId>
125 <artifactId>validation-api</artifactId>
126 <version>2.0.1.Final</version>
127 </dependency>
128 <dependency>
129 <groupId>org.springframework.boot</groupId>
130 <artifactId>spring-boot</artifactId>
131 <version>${spring-boot.version}</version>
132 </dependency>
133 <dependency>
134 <groupId>org.springframework</groupId>
135 <artifactId>spring-web</artifactId>
136 <version>${spring.version}</version>
137 </dependency>
138 <dependency>
139 <groupId>org.springframework</groupId>
140 <artifactId>spring-webmvc</artifactId>
141 <version>${spring.version}</version>
142 </dependency>
143 <dependency>
144 <groupId>com.spotify</groupId>
145 <artifactId>docker-client</artifactId>
146 <version>8.7.1</version>
147 </dependency>
148 <dependency>
149 <groupId>org.apache.tomcat.embed</groupId>
150 <artifactId>tomcat-embed-core</artifactId>
151 <version>9.0.14</version>
152 </dependency>
153 <dependency>
154 <groupId>org.springframework</groupId>
155 <artifactId>spring-webflux</artifactId>
156 <version>${spring.version}</version>
157 </dependency>
158 <dependency>
159 <groupId>org.springframework.boot</groupId>
160 <artifactId>spring-boot-autoconfigure</artifactId>
161 <version>${spring-boot.version}</version>
162 </dependency>
163 <dependency>
yanhuanwang1fb8e382019-05-28 08:15:18 +0000164 <groupId>io.springfox</groupId>
165 <artifactId>springfox-swagger-ui</artifactId>
166 </dependency>
elinuxhenrik215ab932019-04-17 11:07:48 +0200167 </dependencies>
168
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200169 <build>
elinuxhenrike0551f42018-09-18 14:39:34 +0200170 <resources>
171 <resource>
172 <directory>src/main/resources</directory>
173 </resource>
174 </resources>
175
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200176 <plugins>
177 <plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200178 <groupId>org.springframework.boot</groupId>
179 <artifactId>spring-boot-maven-plugin</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200180 <configuration>
elinuxhenrike0551f42018-09-18 14:39:34 +0200181 <finalName>${project.artifactId}</finalName>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200182 <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass>
183 </configuration>
PatrikBuhr1ee111c2019-04-12 08:24:36 +0000184 <executions>
185 <execution>
186 <goals>
187 <goal>build-info</goal>
188 </goals>
189 </execution>
190 </executions>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200191 </plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200192 <plugin>
193 <groupId>com.spotify</groupId>
RehanRazac6c15ca2019-03-07 15:42:51 +0000194 <artifactId>docker-maven-plugin</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200195 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000196 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
197 <imageName>${docker.image.name}</imageName>
198 <imageTags>
199 <tag>latest</tag>
200 </imageTags>
201 <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
202 <resources>
203 <resource>
204 <directory>${project.build.directory}</directory>
205 <include>${project.artifactId}.jar</include>
206 <targetPath>/target</targetPath>
207 </resource>
208 <resource>
209 <targetPath>/config</targetPath>
210 <directory>${project.basedir}/config</directory>
211 <include>*</include>
212 </resource>
213 </resources>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200214 </configuration>
elinuxhenrikf3945942018-09-14 15:49:10 +0200215 <executions>
216 <execution>
217 <id>build-image</id>
218 <phase>package</phase>
219 <goals>
220 <goal>build</goal>
221 </goals>
222 </execution>
223 <execution>
224 <id>tag-and-push-image-latest</id>
225 <phase>deploy</phase>
226 <goals>
227 <goal>tag</goal>
228 </goals>
229 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000230 <image>${docker.image.name}:latest</image>
231 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
232 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200233 </configuration>
234 </execution>
235 <execution>
236 <id>tag-and-push-image-with-version</id>
237 <phase>deploy</phase>
238 <goals>
239 <goal>tag</goal>
240 </goals>
241 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000242 <image>${docker.image.name}:latest</image>
elinuxhenrikf3945942018-09-14 15:49:10 +0200243 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
RehanRazac6c15ca2019-03-07 15:42:51 +0000244 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200245 </configuration>
246 </execution>
247 <execution>
248 <id>tag-and-push-image-with-version-and-date</id>
249 <phase>deploy</phase>
250 <goals>
251 <goal>tag</goal>
252 </goals>
253 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000254 <image>${docker.image.name}:latest</image>
elinuxhenrikf3945942018-09-14 15:49:10 +0200255 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
RehanRazac6c15ca2019-03-07 15:42:51 +0000256 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200257 </configuration>
258 </execution>
259 </executions>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200260 </plugin>
PatrikBuhr4dc06d02019-04-11 15:27:07 +0000261
262 <plugin>
PatrikBuhr4dc06d02019-04-11 15:27:07 +0000263 <groupId>pl.project13.maven</groupId>
264 <artifactId>git-commit-id-plugin</artifactId>
265 <executions>
266 <execution>
267 <id>get-the-git-infos</id>
268 <goals>
269 <goal>revision</goal>
270 </goals>
271 </execution>
272 </executions>
273 <configuration>
274 <verbose>true</verbose>
275 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
276 <dateFormat>MM-dd-yyyy '@' HH:mm:ss Z</dateFormat>
277 <generateGitPropertiesFile>true</generateGitPropertiesFile>
278 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
279 <failOnNoGitDirectory>true</failOnNoGitDirectory>
280 </configuration>
281 </plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200282 </plugins>
283 </build>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200284</project>