blob: e3c60092fd11f451874259c2243d52fe34d34983 [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>
114 </dependencies>
115
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200116 <build>
elinuxhenrike0551f42018-09-18 14:39:34 +0200117 <resources>
118 <resource>
119 <directory>src/main/resources</directory>
120 </resource>
121 </resources>
122
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200123 <plugins>
124 <plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200125 <groupId>org.springframework.boot</groupId>
126 <artifactId>spring-boot-maven-plugin</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200127 <configuration>
elinuxhenrike0551f42018-09-18 14:39:34 +0200128 <finalName>${project.artifactId}</finalName>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200129 <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass>
130 </configuration>
PatrikBuhr1ee111c2019-04-12 08:24:36 +0000131 <executions>
132 <execution>
133 <goals>
134 <goal>build-info</goal>
135 </goals>
136 </execution>
137 </executions>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200138 </plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200139 <plugin>
140 <groupId>com.spotify</groupId>
RehanRazac6c15ca2019-03-07 15:42:51 +0000141 <artifactId>docker-maven-plugin</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200142 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000143 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
144 <imageName>${docker.image.name}</imageName>
145 <imageTags>
146 <tag>latest</tag>
147 </imageTags>
148 <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
149 <resources>
150 <resource>
151 <directory>${project.build.directory}</directory>
152 <include>${project.artifactId}.jar</include>
153 <targetPath>/target</targetPath>
154 </resource>
155 <resource>
156 <targetPath>/config</targetPath>
157 <directory>${project.basedir}/config</directory>
158 <include>*</include>
159 </resource>
160 </resources>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200161 </configuration>
elinuxhenrikf3945942018-09-14 15:49:10 +0200162 <executions>
163 <execution>
164 <id>build-image</id>
165 <phase>package</phase>
166 <goals>
167 <goal>build</goal>
168 </goals>
169 </execution>
170 <execution>
171 <id>tag-and-push-image-latest</id>
172 <phase>deploy</phase>
173 <goals>
174 <goal>tag</goal>
175 </goals>
176 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000177 <image>${docker.image.name}:latest</image>
178 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
179 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200180 </configuration>
181 </execution>
182 <execution>
183 <id>tag-and-push-image-with-version</id>
184 <phase>deploy</phase>
185 <goals>
186 <goal>tag</goal>
187 </goals>
188 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000189 <image>${docker.image.name}:latest</image>
elinuxhenrikf3945942018-09-14 15:49:10 +0200190 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
RehanRazac6c15ca2019-03-07 15:42:51 +0000191 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200192 </configuration>
193 </execution>
194 <execution>
195 <id>tag-and-push-image-with-version-and-date</id>
196 <phase>deploy</phase>
197 <goals>
198 <goal>tag</goal>
199 </goals>
200 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000201 <image>${docker.image.name}:latest</image>
elinuxhenrikf3945942018-09-14 15:49:10 +0200202 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
RehanRazac6c15ca2019-03-07 15:42:51 +0000203 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200204 </configuration>
205 </execution>
206 </executions>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200207 </plugin>
PatrikBuhr4dc06d02019-04-11 15:27:07 +0000208
209 <plugin>
PatrikBuhr4dc06d02019-04-11 15:27:07 +0000210 <groupId>pl.project13.maven</groupId>
211 <artifactId>git-commit-id-plugin</artifactId>
212 <executions>
213 <execution>
214 <id>get-the-git-infos</id>
215 <goals>
216 <goal>revision</goal>
217 </goals>
218 </execution>
219 </executions>
220 <configuration>
221 <verbose>true</verbose>
222 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
223 <dateFormat>MM-dd-yyyy '@' HH:mm:ss Z</dateFormat>
224 <generateGitPropertiesFile>true</generateGitPropertiesFile>
225 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
226 <failOnNoGitDirectory>true</failOnNoGitDirectory>
227 </configuration>
228 </plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200229 </plugins>
230 </build>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200231</project>