blob: 073bf0be657e342b112b653d1125815ec7b5785a [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>
70 <artifactId>spring-boot-starter-actuator</artifactId>
71 </dependency>
72 <dependency>
73 <groupId>javax.xml.bind</groupId>
74 <artifactId>jaxb-api</artifactId>
75 </dependency>
76 <dependency>
77 <groupId>org.springframework.boot</groupId>
78 <artifactId>spring-boot-configuration-processor</artifactId>
79 <optional>true</optional>
80 </dependency>
elinuxhenrik215ab932019-04-17 11:07:48 +020081
82 <!--TESTS DEPENDENCIES -->
83 <dependency>
84 <groupId>io.projectreactor</groupId>
85 <artifactId>reactor-test</artifactId>
86 <scope>test</scope>
87 </dependency>
88 <dependency>
89 <groupId>org.junit.jupiter</groupId>
90 <artifactId>junit-jupiter-engine</artifactId>
91 <scope>test</scope>
92 </dependency>
93 <dependency>
94 <groupId>org.springframework.boot</groupId>
95 <artifactId>spring-boot-starter-test</artifactId>
96 <scope>test</scope>
97 </dependency>
98 <dependency>
99 <groupId>org.testng</groupId>
100 <artifactId>testng</artifactId>
101 <scope>test</scope>
102 </dependency>
103 <dependency>
104 <groupId>com.github.stefanbirkner</groupId>
105 <artifactId>fake-sftp-server-rule</artifactId>
106 <scope>test</scope>
107 </dependency>
108
109 <!--REQUIRED TO GENERATE DOCUMENTATION -->
110 <dependency>
111 <groupId>io.springfox</groupId>
112 <artifactId>springfox-swagger2</artifactId>
113 </dependency>
yanhuanwang1fb8e382019-05-28 08:15:18 +0000114 <dependency>
115 <groupId>io.springfox</groupId>
116 <artifactId>springfox-swagger-ui</artifactId>
117 </dependency>
118 <dependency>
119 <groupId>org.springframework.boot</groupId>
120 <artifactId>spring-boot-starter-actuator</artifactId>
121 </dependency>
elinuxhenrik215ab932019-04-17 11:07:48 +0200122 </dependencies>
123
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200124 <build>
elinuxhenrike0551f42018-09-18 14:39:34 +0200125 <resources>
126 <resource>
127 <directory>src/main/resources</directory>
128 </resource>
129 </resources>
130
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200131 <plugins>
132 <plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200133 <groupId>org.springframework.boot</groupId>
134 <artifactId>spring-boot-maven-plugin</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200135 <configuration>
elinuxhenrike0551f42018-09-18 14:39:34 +0200136 <finalName>${project.artifactId}</finalName>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200137 <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass>
138 </configuration>
PatrikBuhr1ee111c2019-04-12 08:24:36 +0000139 <executions>
140 <execution>
141 <goals>
142 <goal>build-info</goal>
143 </goals>
144 </execution>
145 </executions>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200146 </plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200147 <plugin>
148 <groupId>com.spotify</groupId>
RehanRazac6c15ca2019-03-07 15:42:51 +0000149 <artifactId>docker-maven-plugin</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200150 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000151 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
152 <imageName>${docker.image.name}</imageName>
153 <imageTags>
154 <tag>latest</tag>
155 </imageTags>
156 <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
157 <resources>
158 <resource>
159 <directory>${project.build.directory}</directory>
160 <include>${project.artifactId}.jar</include>
161 <targetPath>/target</targetPath>
162 </resource>
163 <resource>
164 <targetPath>/config</targetPath>
165 <directory>${project.basedir}/config</directory>
166 <include>*</include>
167 </resource>
168 </resources>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200169 </configuration>
elinuxhenrikf3945942018-09-14 15:49:10 +0200170 <executions>
171 <execution>
172 <id>build-image</id>
173 <phase>package</phase>
174 <goals>
175 <goal>build</goal>
176 </goals>
177 </execution>
178 <execution>
179 <id>tag-and-push-image-latest</id>
180 <phase>deploy</phase>
181 <goals>
182 <goal>tag</goal>
183 </goals>
184 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000185 <image>${docker.image.name}:latest</image>
186 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
187 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200188 </configuration>
189 </execution>
190 <execution>
191 <id>tag-and-push-image-with-version</id>
192 <phase>deploy</phase>
193 <goals>
194 <goal>tag</goal>
195 </goals>
196 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000197 <image>${docker.image.name}:latest</image>
elinuxhenrikf3945942018-09-14 15:49:10 +0200198 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
RehanRazac6c15ca2019-03-07 15:42:51 +0000199 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200200 </configuration>
201 </execution>
202 <execution>
203 <id>tag-and-push-image-with-version-and-date</id>
204 <phase>deploy</phase>
205 <goals>
206 <goal>tag</goal>
207 </goals>
208 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000209 <image>${docker.image.name}:latest</image>
elinuxhenrikf3945942018-09-14 15:49:10 +0200210 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
RehanRazac6c15ca2019-03-07 15:42:51 +0000211 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200212 </configuration>
213 </execution>
214 </executions>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200215 </plugin>
PatrikBuhr4dc06d02019-04-11 15:27:07 +0000216
217 <plugin>
PatrikBuhr4dc06d02019-04-11 15:27:07 +0000218 <groupId>pl.project13.maven</groupId>
219 <artifactId>git-commit-id-plugin</artifactId>
220 <executions>
221 <execution>
222 <id>get-the-git-infos</id>
223 <goals>
224 <goal>revision</goal>
225 </goals>
226 </execution>
227 </executions>
228 <configuration>
229 <verbose>true</verbose>
230 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
231 <dateFormat>MM-dd-yyyy '@' HH:mm:ss Z</dateFormat>
232 <generateGitPropertiesFile>true</generateGitPropertiesFile>
233 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
234 <failOnNoGitDirectory>true</failOnNoGitDirectory>
235 </configuration>
236 </plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200237 </plugins>
238 </build>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200239</project>