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> |
TamasBakai | 8e3c45f | 2019-05-05 08:32:53 +0000 | [diff] [blame] | 27 | <version>1.2.0-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> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 37 | </properties> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 38 | |
elinuxhenrik | 215ab93 | 2019-04-17 11:07:48 +0200 | [diff] [blame] | 39 | <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> |
PatrikBuhr | 4229afc | 2019-05-29 09:39:53 +0000 | [diff] [blame] | 68 | <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> |
elinuxhenrik | 215ab93 | 2019-04-17 11:07:48 +0200 | [diff] [blame] | 81 | |
| 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> |
yanhuanwang | 1fb8e38 | 2019-05-28 08:15:18 +0000 | [diff] [blame] | 114 | <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> |
elinuxhenrik | 215ab93 | 2019-04-17 11:07:48 +0200 | [diff] [blame] | 122 | </dependencies> |
| 123 | |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 124 | <build> |
elinuxhenrik | e0551f4 | 2018-09-18 14:39:34 +0200 | [diff] [blame] | 125 | <resources> |
| 126 | <resource> |
| 127 | <directory>src/main/resources</directory> |
| 128 | </resource> |
| 129 | </resources> |
| 130 | |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 131 | <plugins> |
| 132 | <plugin> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 133 | <groupId>org.springframework.boot</groupId> |
| 134 | <artifactId>spring-boot-maven-plugin</artifactId> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 135 | <configuration> |
elinuxhenrik | e0551f4 | 2018-09-18 14:39:34 +0200 | [diff] [blame] | 136 | <finalName>${project.artifactId}</finalName> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 137 | <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass> |
| 138 | </configuration> |
PatrikBuhr | 1ee111c | 2019-04-12 08:24:36 +0000 | [diff] [blame] | 139 | <executions> |
| 140 | <execution> |
| 141 | <goals> |
| 142 | <goal>build-info</goal> |
| 143 | </goals> |
| 144 | </execution> |
| 145 | </executions> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 146 | </plugin> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 147 | <plugin> |
| 148 | <groupId>com.spotify</groupId> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 149 | <artifactId>docker-maven-plugin</artifactId> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 150 | <configuration> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 151 | <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> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 169 | </configuration> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 170 | <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> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 185 | <image>${docker.image.name}:latest</image> |
| 186 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName> |
| 187 | <pushImage>true</pushImage> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 188 | </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> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 197 | <image>${docker.image.name}:latest</image> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 198 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 199 | <pushImage>true</pushImage> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 200 | </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> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 209 | <image>${docker.image.name}:latest</image> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 210 | <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] | 211 | <pushImage>true</pushImage> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 212 | </configuration> |
| 213 | </execution> |
| 214 | </executions> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 215 | </plugin> |
PatrikBuhr | 4dc06d0 | 2019-04-11 15:27:07 +0000 | [diff] [blame] | 216 | |
| 217 | <plugin> |
PatrikBuhr | 4dc06d0 | 2019-04-11 15:27:07 +0000 | [diff] [blame] | 218 | <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> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 237 | </plugins> |
| 238 | </build> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 239 | </project> |