blob: 14620ed15f5f8b93b50ac9f50d6e029a93e5ffd9 [file] [log] [blame]
PatrikBuhr0bc6dc52022-08-16 09:37:02 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ ============LICENSE_START=======================================================
4 ~ Copyright (C) 2018-2022 Nokia. All rights reserved.
5 ~ Copyright (C) 2018-2021 Nordix Foundation. All rights reserved.
6 ~ Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
7 ~ Copyright (c) 2021 Samsung Electronics. All rights reserved.
8 ~ ================================================================================
9 ~ Licensed under the Apache License, Version 2.0 (the "License");
10 ~ you may not use this file except in compliance with the License.
11 ~ You may obtain a copy of the License at
12 ~
13 ~ http://www.apache.org/licenses/LICENSE-2.0
14 ~
15 ~ Unless required by applicable law or agreed to in writing, software
16 ~ distributed under the License is distributed on an "AS IS" BASIS,
17 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 ~ See the License for the specific language governing permissions and
19 ~ limitations under the License.
20 ~ ============LICENSE_END=========================================================
21 -->
22<project xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
26
27 <parent>
28 <groupId>org.onap.dcaegen2.collectors</groupId>
29 <artifactId>datafile</artifactId>
30 <version>1.8.0-SNAPSHOT</version>
31 </parent>
32
33 <groupId>org.onap.dcaegen2.collectors.datafile</groupId>
34 <artifactId>datafile-app-server</artifactId>
35 <packaging>jar</packaging>
36
37 <properties>
38 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
39 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
40 <docker-client.version>8.7.1</docker-client.version>
41 <tomcat-embed-core.version>9.0.56</tomcat-embed-core.version>
42 </properties>
43
44 <dependencies>
45 <dependency>
46 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
47 <artifactId>cbs-client</artifactId>
48 </dependency>
49 <dependency>
50 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
51 <artifactId>dmaap-client</artifactId>
52 </dependency>
53 <dependency>
54 <groupId>org.onap.dcaegen2.services.sdk.security</groupId>
55 <artifactId>ssl</artifactId>
56 </dependency>
57 <dependency>
58 <groupId>org.apache.httpcomponents</groupId>
59 <artifactId>httpasyncclient</artifactId>
60 </dependency>
61 <dependency>
62 <groupId>org.apache.commons</groupId>
63 <artifactId>commons-lang3</artifactId>
64 </dependency>
65 <dependency>
66 <groupId>commons-io</groupId>
67 <artifactId>commons-io</artifactId>
68 </dependency>
69 <dependency>
70 <groupId>commons-net</groupId>
71 <artifactId>commons-net</artifactId>
72 </dependency>
73 <dependency>
74 <groupId>com.jcraft</groupId>
75 <artifactId>jsch</artifactId>
76 </dependency>
77 <dependency>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-configuration-processor</artifactId>
80 <optional>true</optional>
81 </dependency>
82 <dependency>
83 <groupId>org.immutables</groupId>
84 <artifactId>value</artifactId>
85 </dependency>
86 <dependency>
87 <groupId>javax.validation</groupId>
88 <artifactId>validation-api</artifactId>
89 </dependency>
90 <dependency>
91 <groupId>org.springframework.boot</groupId>
92 <artifactId>spring-boot</artifactId>
93 </dependency>
94 <dependency>
95 <groupId>org.springframework</groupId>
96 <artifactId>spring-web</artifactId>
97 </dependency>
98 <dependency>
99 <groupId>org.springframework</groupId>
100 <artifactId>spring-webmvc</artifactId>
101 </dependency>
102 <dependency>
103 <groupId>com.spotify</groupId>
104 <artifactId>docker-client</artifactId>
105 <version>${docker-client.version}</version>
106 </dependency>
107 <dependency>
108 <groupId>org.apache.tomcat.embed</groupId>
109 <artifactId>tomcat-embed-core</artifactId>
110 <version>${tomcat-embed-core.version}</version>
111 </dependency>
112 <dependency>
113 <groupId>org.springframework</groupId>
114 <artifactId>spring-webflux</artifactId>
115 </dependency>
116 <dependency>
117 <groupId>org.springframework.boot</groupId>
118 <artifactId>spring-boot-autoconfigure</artifactId>
119 </dependency>
120 <dependency>
121 <groupId>org.apache.httpcomponents.core5</groupId>
122 <artifactId>httpcore5</artifactId>
123 </dependency>
124
125 <!-- Actuator dependencies -->
126 <dependency>
127 <groupId>org.springframework.boot</groupId>
128 <artifactId>spring-boot-starter-actuator</artifactId>
129 </dependency>
130 <dependency>
131 <groupId>javax.xml.bind</groupId>
132 <artifactId>jaxb-api</artifactId>
133 </dependency>
134
135 <!--TESTS DEPENDENCIES -->
136 <dependency>
137 <groupId>io.projectreactor</groupId>
138 <artifactId>reactor-test</artifactId>
139 <scope>test</scope>
140 </dependency>
141 <dependency>
142 <groupId>org.junit.jupiter</groupId>
143 <artifactId>junit-jupiter-engine</artifactId>
144 <scope>test</scope>
145 </dependency>
146 <dependency>
147 <groupId>org.springframework.boot</groupId>
148 <artifactId>spring-boot-starter-test</artifactId>
149 <scope>test</scope>
150 </dependency>
151 <dependency>
152 <groupId>org.junit.vintage</groupId>
153 <artifactId>junit-vintage-engine</artifactId>
154 <version>5.7.0</version>
155 <scope>test</scope>
156 </dependency>
157 <dependency>
158 <groupId>org.testng</groupId>
159 <artifactId>testng</artifactId>
160 <scope>test</scope>
161 </dependency>
162 <dependency>
163 <groupId>org.awaitility</groupId>
164 <artifactId>awaitility</artifactId>
165 <scope>test</scope>
166 </dependency>
167 <dependency>
168 <groupId>org.mockito</groupId>
169 <artifactId>mockito-junit-jupiter</artifactId>
170 <scope>test</scope>
171 </dependency>
172 <dependency>
173 <groupId>org.powermock</groupId>
174 <artifactId>powermock-module-junit4</artifactId>
175 <scope>test</scope>
176 </dependency>
177 <dependency>
178 <groupId>org.powermock</groupId>
179 <artifactId>powermock-api-mockito2</artifactId>
180 <scope>test</scope>
181 </dependency>
182
183 <!--REQUIRED TO GENERATE DOCUMENTATION -->
184 <dependency>
185 <groupId>io.springfox</groupId>
186 <artifactId>springfox-spring-web</artifactId>
187 </dependency>
188 <dependency>
189 <groupId>io.springfox</groupId>
190 <artifactId>springfox-spi</artifactId>
191 </dependency>
192 <dependency>
193 <groupId>io.springfox</groupId>
194 <artifactId>springfox-core</artifactId>
195 </dependency>
196 <dependency>
197 <groupId>org.springdoc</groupId>
198 <artifactId>springdoc-openapi-ui</artifactId>
199 </dependency>
200 <dependency>
201 <groupId>io.springfox</groupId>
202 <artifactId>springfox-swagger2</artifactId>
203 </dependency>
204 <dependency>
205 <groupId>io.springfox</groupId>
206 <artifactId>springfox-swagger-ui</artifactId>
207 </dependency>
208 <dependency>
209 <groupId>org.springdoc</groupId>
210 <artifactId>springdoc-openapi-data-rest</artifactId>
211 </dependency>
212 <dependency>
213 <groupId>com.fasterxml.jackson.core</groupId>
214 <artifactId>jackson-databind</artifactId>
215 </dependency>
216 </dependencies>
217
218 <build>
219 <resources>
220 <resource>
221 <directory>src/main/resources</directory>
222 </resource>
223 </resources>
224
225 <plugins>
226 <plugin>
227 <groupId>org.springframework.boot</groupId>
228 <artifactId>spring-boot-maven-plugin</artifactId>
229 <configuration>
230 <finalName>${project.artifactId}</finalName>
231 <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass>
232 </configuration>
233 <executions>
234 <execution>
235 <goals>
236 <goal>build-info</goal>
237 </goals>
238 </execution>
239 </executions>
240 </plugin>
241 <plugin>
242 <groupId>com.spotify</groupId>
243 <artifactId>docker-maven-plugin</artifactId>
244 <configuration>
245 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
246 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
247 <imageTags>
248 <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
249 <imageTag>${project.version}</imageTag>
250 <imageTag>latest</imageTag>
251 </imageTags>
252 <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
253 <resources>
254 <resource>
255 <directory>${project.build.directory}</directory>
256 <include>${project.artifactId}.jar</include>
257 <targetPath>/target</targetPath>
258 </resource>
259 <resource>
260 <targetPath>/config</targetPath>
261 <directory>${project.basedir}/config</directory>
262 <include>*</include>
263 </resource>
264 </resources>
265 </configuration>
266 </plugin>
267 <plugin>
268 <groupId>pl.project13.maven</groupId>
269 <artifactId>git-commit-id-plugin</artifactId>
270 <executions>
271 <execution>
272 <id>get-the-git-infos</id>
273 <goals>
274 <goal>revision</goal>
275 </goals>
276 </execution>
277 </executions>
278 <configuration>
279 <verbose>true</verbose>
280 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
281 <dateFormat>MM-dd-yyyy '@' HH:mm:ss Z</dateFormat>
282 <generateGitPropertiesFile>true</generateGitPropertiesFile>
283 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties
284 </generateGitPropertiesFilename>
285 <failOnNoGitDirectory>true</failOnNoGitDirectory>
286 </configuration>
287 </plugin>
288 </plugins>
289 </build>
290</project>