blob: 42bdd7710901458722068cac025ae88757626dd3 [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>
68
69 <!--TESTS DEPENDENCIES -->
70 <dependency>
71 <groupId>io.projectreactor</groupId>
72 <artifactId>reactor-test</artifactId>
73 <scope>test</scope>
74 </dependency>
75 <dependency>
76 <groupId>org.junit.jupiter</groupId>
77 <artifactId>junit-jupiter-engine</artifactId>
78 <scope>test</scope>
79 </dependency>
80 <dependency>
81 <groupId>org.springframework.boot</groupId>
82 <artifactId>spring-boot-starter-test</artifactId>
83 <scope>test</scope>
84 </dependency>
85 <dependency>
86 <groupId>org.testng</groupId>
87 <artifactId>testng</artifactId>
88 <scope>test</scope>
89 </dependency>
90 <dependency>
91 <groupId>com.github.stefanbirkner</groupId>
92 <artifactId>fake-sftp-server-rule</artifactId>
93 <scope>test</scope>
94 </dependency>
95
96 <!--REQUIRED TO GENERATE DOCUMENTATION -->
97 <dependency>
98 <groupId>io.springfox</groupId>
99 <artifactId>springfox-swagger2</artifactId>
100 </dependency>
101 </dependencies>
102
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200103 <build>
elinuxhenrike0551f42018-09-18 14:39:34 +0200104 <resources>
105 <resource>
106 <directory>src/main/resources</directory>
107 </resource>
108 </resources>
109
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200110 <plugins>
111 <plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200112 <groupId>org.springframework.boot</groupId>
113 <artifactId>spring-boot-maven-plugin</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200114 <configuration>
elinuxhenrike0551f42018-09-18 14:39:34 +0200115 <finalName>${project.artifactId}</finalName>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200116 <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass>
117 </configuration>
PatrikBuhr1ee111c2019-04-12 08:24:36 +0000118 <executions>
119 <execution>
120 <goals>
121 <goal>build-info</goal>
122 </goals>
123 </execution>
124 </executions>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200125 </plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200126 <plugin>
127 <groupId>com.spotify</groupId>
RehanRazac6c15ca2019-03-07 15:42:51 +0000128 <artifactId>docker-maven-plugin</artifactId>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200129 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000130 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
131 <imageName>${docker.image.name}</imageName>
132 <imageTags>
133 <tag>latest</tag>
134 </imageTags>
135 <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
136 <resources>
137 <resource>
138 <directory>${project.build.directory}</directory>
139 <include>${project.artifactId}.jar</include>
140 <targetPath>/target</targetPath>
141 </resource>
142 <resource>
143 <targetPath>/config</targetPath>
144 <directory>${project.basedir}/config</directory>
145 <include>*</include>
146 </resource>
147 </resources>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200148 </configuration>
elinuxhenrikf3945942018-09-14 15:49:10 +0200149 <executions>
150 <execution>
151 <id>build-image</id>
152 <phase>package</phase>
153 <goals>
154 <goal>build</goal>
155 </goals>
156 </execution>
157 <execution>
158 <id>tag-and-push-image-latest</id>
159 <phase>deploy</phase>
160 <goals>
161 <goal>tag</goal>
162 </goals>
163 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000164 <image>${docker.image.name}:latest</image>
165 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
166 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200167 </configuration>
168 </execution>
169 <execution>
170 <id>tag-and-push-image-with-version</id>
171 <phase>deploy</phase>
172 <goals>
173 <goal>tag</goal>
174 </goals>
175 <configuration>
RehanRazac6c15ca2019-03-07 15:42:51 +0000176 <image>${docker.image.name}:latest</image>
elinuxhenrikf3945942018-09-14 15:49:10 +0200177 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
RehanRazac6c15ca2019-03-07 15:42:51 +0000178 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200179 </configuration>
180 </execution>
181 <execution>
182 <id>tag-and-push-image-with-version-and-date</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>
elinuxhenrikf3945942018-09-14 15:49:10 +0200189 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
RehanRazac6c15ca2019-03-07 15:42:51 +0000190 <pushImage>true</pushImage>
elinuxhenrikf3945942018-09-14 15:49:10 +0200191 </configuration>
192 </execution>
193 </executions>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200194 </plugin>
PatrikBuhr4dc06d02019-04-11 15:27:07 +0000195
196 <plugin>
PatrikBuhr4dc06d02019-04-11 15:27:07 +0000197 <groupId>pl.project13.maven</groupId>
198 <artifactId>git-commit-id-plugin</artifactId>
199 <executions>
200 <execution>
201 <id>get-the-git-infos</id>
202 <goals>
203 <goal>revision</goal>
204 </goals>
205 </execution>
206 </executions>
207 <configuration>
208 <verbose>true</verbose>
209 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
210 <dateFormat>MM-dd-yyyy '@' HH:mm:ss Z</dateFormat>
211 <generateGitPropertiesFile>true</generateGitPropertiesFile>
212 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
213 <failOnNoGitDirectory>true</failOnNoGitDirectory>
214 </configuration>
215 </plugin>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200216 </plugins>
217 </build>
elinuxhenrikd661dbc2018-08-17 12:34:58 +0200218</project>