elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ ============LICENSE_START======================================================= |
RehanRaza | 958f0b0 | 2019-02-22 10:04:34 +0000 | [diff] [blame] | 4 | ~ Copyright (C) 2018 NOKIA Intellectual Property, 2018-2019 Nordix Foundation. All rights reserved. |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 5 | ~ ================================================================================ |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 6 | ~ 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 | ~ |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 10 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 11 | ~ |
| 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 Kumar | 0ae7a7f | 2018-10-05 14:14:00 +0200 | [diff] [blame] | 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 24 | <parent> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 25 | <groupId>org.onap.dcaegen2.collectors</groupId> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 26 | <artifactId>datafile</artifactId> |
elinuxhenrik | 415aa5b | 2019-06-28 12:18:16 +0000 | [diff] [blame] | 27 | <version>1.2.1-SNAPSHOT</version> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 28 | </parent> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 29 | |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 30 | <groupId>org.onap.dcaegen2.collectors.datafile</groupId> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 31 | <artifactId>datafile-app-server</artifactId> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 32 | <packaging>jar</packaging> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 33 | |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 34 | <properties> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 35 | <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 36 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format> |
YongchaoWu | b96580a | 2019-07-12 09:01:01 +0000 | [diff] [blame^] | 37 | <spring.version>5.1.4.RELEASE</spring.version> |
| 38 | <spring-boot.version>2.1.2.RELEASE</spring-boot.version> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 39 | </properties> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 40 | |
elinuxhenrik | 215ab93 | 2019-04-17 11:07:48 +0200 | [diff] [blame] | 41 | <dependencies> |
| 42 | <dependency> |
| 43 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 44 | <artifactId>cbs-client</artifactId> |
| 45 | </dependency> |
| 46 | <dependency> |
| 47 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 48 | <artifactId>dmaap-client</artifactId> |
| 49 | </dependency> |
| 50 | <dependency> |
| 51 | <groupId>org.apache.httpcomponents</groupId> |
| 52 | <artifactId>httpasyncclient</artifactId> |
| 53 | </dependency> |
| 54 | <dependency> |
| 55 | <groupId>org.apache.commons</groupId> |
| 56 | <artifactId>commons-lang3</artifactId> |
| 57 | </dependency> |
| 58 | <dependency> |
| 59 | <groupId>commons-io</groupId> |
| 60 | <artifactId>commons-io</artifactId> |
| 61 | </dependency> |
| 62 | <dependency> |
| 63 | <groupId>commons-net</groupId> |
| 64 | <artifactId>commons-net</artifactId> |
| 65 | </dependency> |
| 66 | <dependency> |
| 67 | <groupId>com.jcraft</groupId> |
| 68 | <artifactId>jsch</artifactId> |
| 69 | </dependency> |
PatrikBuhr | 4229afc | 2019-05-29 09:39:53 +0000 | [diff] [blame] | 70 | <dependency> |
| 71 | <groupId>org.springframework.boot</groupId> |
elinuxhenrik | addf3f1 | 2019-06-05 08:54:17 +0000 | [diff] [blame] | 72 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 73 | <optional>true</optional> |
| 74 | </dependency> |
| 75 | |
| 76 | <!-- Actuator dependencies --> |
| 77 | <dependency> |
| 78 | <groupId>org.springframework.boot</groupId> |
PatrikBuhr | 4229afc | 2019-05-29 09:39:53 +0000 | [diff] [blame] | 79 | <artifactId>spring-boot-starter-actuator</artifactId> |
elinuxhenrik | addf3f1 | 2019-06-05 08:54:17 +0000 | [diff] [blame] | 80 | </dependency> |
PatrikBuhr | 4229afc | 2019-05-29 09:39:53 +0000 | [diff] [blame] | 81 | <dependency> |
| 82 | <groupId>javax.xml.bind</groupId> |
| 83 | <artifactId>jaxb-api</artifactId> |
| 84 | </dependency> |
elinuxhenrik | 215ab93 | 2019-04-17 11:07:48 +0200 | [diff] [blame] | 85 | |
| 86 | <!--TESTS DEPENDENCIES --> |
| 87 | <dependency> |
| 88 | <groupId>io.projectreactor</groupId> |
| 89 | <artifactId>reactor-test</artifactId> |
| 90 | <scope>test</scope> |
| 91 | </dependency> |
| 92 | <dependency> |
| 93 | <groupId>org.junit.jupiter</groupId> |
| 94 | <artifactId>junit-jupiter-engine</artifactId> |
| 95 | <scope>test</scope> |
| 96 | </dependency> |
| 97 | <dependency> |
| 98 | <groupId>org.springframework.boot</groupId> |
| 99 | <artifactId>spring-boot-starter-test</artifactId> |
| 100 | <scope>test</scope> |
| 101 | </dependency> |
| 102 | <dependency> |
| 103 | <groupId>org.testng</groupId> |
| 104 | <artifactId>testng</artifactId> |
| 105 | <scope>test</scope> |
| 106 | </dependency> |
| 107 | <dependency> |
elinuxhenrik | addf3f1 | 2019-06-05 08:54:17 +0000 | [diff] [blame] | 108 | <groupId>org.awaitility</groupId> |
| 109 | <artifactId>awaitility</artifactId> |
| 110 | <scope>test</scope> |
| 111 | </dependency> |
| 112 | <dependency> |
| 113 | <groupId>org.mockito</groupId> |
| 114 | <artifactId>mockito-junit-jupiter</artifactId> |
elinuxhenrik | 215ab93 | 2019-04-17 11:07:48 +0200 | [diff] [blame] | 115 | <scope>test</scope> |
| 116 | </dependency> |
| 117 | |
| 118 | <!--REQUIRED TO GENERATE DOCUMENTATION --> |
| 119 | <dependency> |
| 120 | <groupId>io.springfox</groupId> |
| 121 | <artifactId>springfox-swagger2</artifactId> |
| 122 | </dependency> |
yanhuanwang | 1fb8e38 | 2019-05-28 08:15:18 +0000 | [diff] [blame] | 123 | <dependency> |
YongchaoWu | b96580a | 2019-07-12 09:01:01 +0000 | [diff] [blame^] | 124 | <groupId>javax.validation</groupId> |
| 125 | <artifactId>validation-api</artifactId> |
| 126 | <version>2.0.1.Final</version> |
| 127 | </dependency> |
| 128 | <dependency> |
| 129 | <groupId>org.springframework.boot</groupId> |
| 130 | <artifactId>spring-boot</artifactId> |
| 131 | <version>${spring-boot.version}</version> |
| 132 | </dependency> |
| 133 | <dependency> |
| 134 | <groupId>org.springframework</groupId> |
| 135 | <artifactId>spring-web</artifactId> |
| 136 | <version>${spring.version}</version> |
| 137 | </dependency> |
| 138 | <dependency> |
| 139 | <groupId>org.springframework</groupId> |
| 140 | <artifactId>spring-webmvc</artifactId> |
| 141 | <version>${spring.version}</version> |
| 142 | </dependency> |
| 143 | <dependency> |
| 144 | <groupId>com.spotify</groupId> |
| 145 | <artifactId>docker-client</artifactId> |
| 146 | <version>8.7.1</version> |
| 147 | </dependency> |
| 148 | <dependency> |
| 149 | <groupId>org.apache.tomcat.embed</groupId> |
| 150 | <artifactId>tomcat-embed-core</artifactId> |
| 151 | <version>9.0.14</version> |
| 152 | </dependency> |
| 153 | <dependency> |
| 154 | <groupId>org.springframework</groupId> |
| 155 | <artifactId>spring-webflux</artifactId> |
| 156 | <version>${spring.version}</version> |
| 157 | </dependency> |
| 158 | <dependency> |
| 159 | <groupId>org.springframework.boot</groupId> |
| 160 | <artifactId>spring-boot-autoconfigure</artifactId> |
| 161 | <version>${spring-boot.version}</version> |
| 162 | </dependency> |
| 163 | <dependency> |
yanhuanwang | 1fb8e38 | 2019-05-28 08:15:18 +0000 | [diff] [blame] | 164 | <groupId>io.springfox</groupId> |
| 165 | <artifactId>springfox-swagger-ui</artifactId> |
| 166 | </dependency> |
elinuxhenrik | 215ab93 | 2019-04-17 11:07:48 +0200 | [diff] [blame] | 167 | </dependencies> |
| 168 | |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 169 | <build> |
elinuxhenrik | e0551f4 | 2018-09-18 14:39:34 +0200 | [diff] [blame] | 170 | <resources> |
| 171 | <resource> |
| 172 | <directory>src/main/resources</directory> |
| 173 | </resource> |
| 174 | </resources> |
| 175 | |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 176 | <plugins> |
| 177 | <plugin> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 178 | <groupId>org.springframework.boot</groupId> |
| 179 | <artifactId>spring-boot-maven-plugin</artifactId> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 180 | <configuration> |
elinuxhenrik | e0551f4 | 2018-09-18 14:39:34 +0200 | [diff] [blame] | 181 | <finalName>${project.artifactId}</finalName> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 182 | <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass> |
| 183 | </configuration> |
PatrikBuhr | 1ee111c | 2019-04-12 08:24:36 +0000 | [diff] [blame] | 184 | <executions> |
| 185 | <execution> |
| 186 | <goals> |
| 187 | <goal>build-info</goal> |
| 188 | </goals> |
| 189 | </execution> |
| 190 | </executions> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 191 | </plugin> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 192 | <plugin> |
| 193 | <groupId>com.spotify</groupId> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 194 | <artifactId>docker-maven-plugin</artifactId> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 195 | <configuration> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 196 | <serverId>${onap.nexus.dockerregistry.daily}</serverId> |
| 197 | <imageName>${docker.image.name}</imageName> |
| 198 | <imageTags> |
| 199 | <tag>latest</tag> |
| 200 | </imageTags> |
| 201 | <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory> |
| 202 | <resources> |
| 203 | <resource> |
| 204 | <directory>${project.build.directory}</directory> |
| 205 | <include>${project.artifactId}.jar</include> |
| 206 | <targetPath>/target</targetPath> |
| 207 | </resource> |
| 208 | <resource> |
| 209 | <targetPath>/config</targetPath> |
| 210 | <directory>${project.basedir}/config</directory> |
| 211 | <include>*</include> |
| 212 | </resource> |
| 213 | </resources> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 214 | </configuration> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 215 | <executions> |
| 216 | <execution> |
| 217 | <id>build-image</id> |
| 218 | <phase>package</phase> |
| 219 | <goals> |
| 220 | <goal>build</goal> |
| 221 | </goals> |
| 222 | </execution> |
| 223 | <execution> |
| 224 | <id>tag-and-push-image-latest</id> |
| 225 | <phase>deploy</phase> |
| 226 | <goals> |
| 227 | <goal>tag</goal> |
| 228 | </goals> |
| 229 | <configuration> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 230 | <image>${docker.image.name}:latest</image> |
| 231 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName> |
| 232 | <pushImage>true</pushImage> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 233 | </configuration> |
| 234 | </execution> |
| 235 | <execution> |
| 236 | <id>tag-and-push-image-with-version</id> |
| 237 | <phase>deploy</phase> |
| 238 | <goals> |
| 239 | <goal>tag</goal> |
| 240 | </goals> |
| 241 | <configuration> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 242 | <image>${docker.image.name}:latest</image> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 243 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 244 | <pushImage>true</pushImage> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 245 | </configuration> |
| 246 | </execution> |
| 247 | <execution> |
| 248 | <id>tag-and-push-image-with-version-and-date</id> |
| 249 | <phase>deploy</phase> |
| 250 | <goals> |
| 251 | <goal>tag</goal> |
| 252 | </goals> |
| 253 | <configuration> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 254 | <image>${docker.image.name}:latest</image> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 255 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 256 | <pushImage>true</pushImage> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 257 | </configuration> |
| 258 | </execution> |
| 259 | </executions> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 260 | </plugin> |
PatrikBuhr | 4dc06d0 | 2019-04-11 15:27:07 +0000 | [diff] [blame] | 261 | |
| 262 | <plugin> |
PatrikBuhr | 4dc06d0 | 2019-04-11 15:27:07 +0000 | [diff] [blame] | 263 | <groupId>pl.project13.maven</groupId> |
| 264 | <artifactId>git-commit-id-plugin</artifactId> |
| 265 | <executions> |
| 266 | <execution> |
| 267 | <id>get-the-git-infos</id> |
| 268 | <goals> |
| 269 | <goal>revision</goal> |
| 270 | </goals> |
| 271 | </execution> |
| 272 | </executions> |
| 273 | <configuration> |
| 274 | <verbose>true</verbose> |
| 275 | <dotGitDirectory>${project.basedir}/.git</dotGitDirectory> |
| 276 | <dateFormat>MM-dd-yyyy '@' HH:mm:ss Z</dateFormat> |
| 277 | <generateGitPropertiesFile>true</generateGitPropertiesFile> |
| 278 | <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename> |
| 279 | <failOnNoGitDirectory>true</failOnNoGitDirectory> |
| 280 | </configuration> |
| 281 | </plugin> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 282 | </plugins> |
| 283 | </build> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 284 | </project> |