blob: 2f7d2af653d591c73ae9fb8acdbf301bae3e6343 [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>
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>
elinuxhenrik215ab932019-04-17 11:07:48 +0200125 </dependencies>
126
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200127 <build>
elinuxhenrike0551f42018-09-18 14:39:34 +0200128 <resources>
129 <resource>
130 <directory>src/main/resources</directory>
131 </resource>
132 </resources>
133
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200134 <plugins>
135 <plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200136 <groupId>org.springframework.boot</groupId>
137 <artifactId>spring-boot-maven-plugin</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200138 <configuration>
elinuxhenrike0551f42018-09-18 14:39:34 +0200139 <finalName>${project.artifactId}</finalName>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200140 <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass>
141 </configuration>
PatrikBuhr1ee111c2019-04-12 08:24:36 +0000142 <executions>
143 <execution>
144 <goals>
145 <goal>build-info</goal>
146 </goals>
147 </execution>
148 </executions>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200149 </plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200150 <plugin>
151 <groupId>com.spotify</groupId>
RehanRazac6c15ca2019-03-07 15:42:51 +0000152 <artifactId>docker-maven-plugin</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200153 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000154 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
155 <imageName>${docker.image.name}</imageName>
156 <imageTags>
157 <tag>latest</tag>
158 </imageTags>
159 <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
160 <resources>
161 <resource>
162 <directory>${project.build.directory}</directory>
163 <include>${project.artifactId}.jar</include>
164 <targetPath>/target</targetPath>
165 </resource>
166 <resource>
167 <targetPath>/config</targetPath>
168 <directory>${project.basedir}/config</directory>
169 <include>*</include>
170 </resource>
171 </resources>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200172 </configuration>
elinuxhenrikf3945942018-09-14 15:49:10 +0200173 <executions>
174 <execution>
175 <id>build-image</id>
176 <phase>package</phase>
177 <goals>
178 <goal>build</goal>
179 </goals>
180 </execution>
181 <execution>
182 <id>tag-and-push-image-latest</id>
183 <phase>deploy</phase>
184 <goals>
185 <goal>tag</goal>
186 </goals>
187 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000188 <image>${docker.image.name}:latest</image>
189 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
190 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200191 </configuration>
192 </execution>
193 <execution>
194 <id>tag-and-push-image-with-version</id>
195 <phase>deploy</phase>
196 <goals>
197 <goal>tag</goal>
198 </goals>
199 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000200 <image>${docker.image.name}:latest</image>
elinuxhenrikf3945942018-09-14 15:49:10 +0200201 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
RehanRazac6c15ca2019-03-07 15:42:51 +0000202 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200203 </configuration>
204 </execution>
205 <execution>
206 <id>tag-and-push-image-with-version-and-date</id>
207 <phase>deploy</phase>
208 <goals>
209 <goal>tag</goal>
210 </goals>
211 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000212 <image>${docker.image.name}:latest</image>
elinuxhenrikf3945942018-09-14 15:49:10 +0200213 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
RehanRazac6c15ca2019-03-07 15:42:51 +0000214 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200215 </configuration>
216 </execution>
217 </executions>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200218 </plugin>
PatrikBuhr4dc06d02019-04-11 15:27:07 +0000219
220 <plugin>
PatrikBuhr4dc06d02019-04-11 15:27:07 +0000221 <groupId>pl.project13.maven</groupId>
222 <artifactId>git-commit-id-plugin</artifactId>
223 <executions>
224 <execution>
225 <id>get-the-git-infos</id>
226 <goals>
227 <goal>revision</goal>
228 </goals>
229 </execution>
230 </executions>
231 <configuration>
232 <verbose>true</verbose>
233 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
234 <dateFormat>MM-dd-yyyy '@' HH:mm:ss Z</dateFormat>
235 <generateGitPropertiesFile>true</generateGitPropertiesFile>
236 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
237 <failOnNoGitDirectory>true</failOnNoGitDirectory>
238 </configuration>
239 </plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200240 </plugins>
241 </build>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200242</project>