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> |
elinuxhenrik | addf3f1 | 2019-06-05 08:54:17 +0000 | [diff] [blame^] | 70 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 71 | <optional>true</optional> |
| 72 | </dependency> |
| 73 | |
| 74 | <!-- Actuator dependencies --> |
| 75 | <dependency> |
| 76 | <groupId>org.springframework.boot</groupId> |
PatrikBuhr | 4229afc | 2019-05-29 09:39:53 +0000 | [diff] [blame] | 77 | <artifactId>spring-boot-starter-actuator</artifactId> |
elinuxhenrik | addf3f1 | 2019-06-05 08:54:17 +0000 | [diff] [blame^] | 78 | </dependency> |
PatrikBuhr | 4229afc | 2019-05-29 09:39:53 +0000 | [diff] [blame] | 79 | <dependency> |
| 80 | <groupId>javax.xml.bind</groupId> |
| 81 | <artifactId>jaxb-api</artifactId> |
| 82 | </dependency> |
elinuxhenrik | 215ab93 | 2019-04-17 11:07:48 +0200 | [diff] [blame] | 83 | |
| 84 | <!--TESTS DEPENDENCIES --> |
| 85 | <dependency> |
| 86 | <groupId>io.projectreactor</groupId> |
| 87 | <artifactId>reactor-test</artifactId> |
| 88 | <scope>test</scope> |
| 89 | </dependency> |
| 90 | <dependency> |
| 91 | <groupId>org.junit.jupiter</groupId> |
| 92 | <artifactId>junit-jupiter-engine</artifactId> |
| 93 | <scope>test</scope> |
| 94 | </dependency> |
| 95 | <dependency> |
| 96 | <groupId>org.springframework.boot</groupId> |
| 97 | <artifactId>spring-boot-starter-test</artifactId> |
| 98 | <scope>test</scope> |
| 99 | </dependency> |
| 100 | <dependency> |
| 101 | <groupId>org.testng</groupId> |
| 102 | <artifactId>testng</artifactId> |
| 103 | <scope>test</scope> |
| 104 | </dependency> |
| 105 | <dependency> |
elinuxhenrik | addf3f1 | 2019-06-05 08:54:17 +0000 | [diff] [blame^] | 106 | <groupId>org.awaitility</groupId> |
| 107 | <artifactId>awaitility</artifactId> |
| 108 | <scope>test</scope> |
| 109 | </dependency> |
| 110 | <dependency> |
| 111 | <groupId>org.mockito</groupId> |
| 112 | <artifactId>mockito-junit-jupiter</artifactId> |
elinuxhenrik | 215ab93 | 2019-04-17 11:07:48 +0200 | [diff] [blame] | 113 | <scope>test</scope> |
| 114 | </dependency> |
| 115 | |
| 116 | <!--REQUIRED TO GENERATE DOCUMENTATION --> |
| 117 | <dependency> |
| 118 | <groupId>io.springfox</groupId> |
| 119 | <artifactId>springfox-swagger2</artifactId> |
| 120 | </dependency> |
yanhuanwang | 1fb8e38 | 2019-05-28 08:15:18 +0000 | [diff] [blame] | 121 | <dependency> |
| 122 | <groupId>io.springfox</groupId> |
| 123 | <artifactId>springfox-swagger-ui</artifactId> |
| 124 | </dependency> |
| 125 | <dependency> |
| 126 | <groupId>org.springframework.boot</groupId> |
| 127 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 128 | </dependency> |
elinuxhenrik | 215ab93 | 2019-04-17 11:07:48 +0200 | [diff] [blame] | 129 | </dependencies> |
| 130 | |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 131 | <build> |
elinuxhenrik | e0551f4 | 2018-09-18 14:39:34 +0200 | [diff] [blame] | 132 | <resources> |
| 133 | <resource> |
| 134 | <directory>src/main/resources</directory> |
| 135 | </resource> |
| 136 | </resources> |
| 137 | |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 138 | <plugins> |
| 139 | <plugin> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 140 | <groupId>org.springframework.boot</groupId> |
| 141 | <artifactId>spring-boot-maven-plugin</artifactId> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 142 | <configuration> |
elinuxhenrik | e0551f4 | 2018-09-18 14:39:34 +0200 | [diff] [blame] | 143 | <finalName>${project.artifactId}</finalName> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 144 | <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass> |
| 145 | </configuration> |
PatrikBuhr | 1ee111c | 2019-04-12 08:24:36 +0000 | [diff] [blame] | 146 | <executions> |
| 147 | <execution> |
| 148 | <goals> |
| 149 | <goal>build-info</goal> |
| 150 | </goals> |
| 151 | </execution> |
| 152 | </executions> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 153 | </plugin> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 154 | <plugin> |
| 155 | <groupId>com.spotify</groupId> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 156 | <artifactId>docker-maven-plugin</artifactId> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 157 | <configuration> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 158 | <serverId>${onap.nexus.dockerregistry.daily}</serverId> |
| 159 | <imageName>${docker.image.name}</imageName> |
| 160 | <imageTags> |
| 161 | <tag>latest</tag> |
| 162 | </imageTags> |
| 163 | <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory> |
| 164 | <resources> |
| 165 | <resource> |
| 166 | <directory>${project.build.directory}</directory> |
| 167 | <include>${project.artifactId}.jar</include> |
| 168 | <targetPath>/target</targetPath> |
| 169 | </resource> |
| 170 | <resource> |
| 171 | <targetPath>/config</targetPath> |
| 172 | <directory>${project.basedir}/config</directory> |
| 173 | <include>*</include> |
| 174 | </resource> |
| 175 | </resources> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 176 | </configuration> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 177 | <executions> |
| 178 | <execution> |
| 179 | <id>build-image</id> |
| 180 | <phase>package</phase> |
| 181 | <goals> |
| 182 | <goal>build</goal> |
| 183 | </goals> |
| 184 | </execution> |
| 185 | <execution> |
| 186 | <id>tag-and-push-image-latest</id> |
| 187 | <phase>deploy</phase> |
| 188 | <goals> |
| 189 | <goal>tag</goal> |
| 190 | </goals> |
| 191 | <configuration> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 192 | <image>${docker.image.name}:latest</image> |
| 193 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName> |
| 194 | <pushImage>true</pushImage> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 195 | </configuration> |
| 196 | </execution> |
| 197 | <execution> |
| 198 | <id>tag-and-push-image-with-version</id> |
| 199 | <phase>deploy</phase> |
| 200 | <goals> |
| 201 | <goal>tag</goal> |
| 202 | </goals> |
| 203 | <configuration> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 204 | <image>${docker.image.name}:latest</image> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 205 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 206 | <pushImage>true</pushImage> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 207 | </configuration> |
| 208 | </execution> |
| 209 | <execution> |
| 210 | <id>tag-and-push-image-with-version-and-date</id> |
| 211 | <phase>deploy</phase> |
| 212 | <goals> |
| 213 | <goal>tag</goal> |
| 214 | </goals> |
| 215 | <configuration> |
RehanRaza | c6c15ca | 2019-03-07 15:42:51 +0000 | [diff] [blame] | 216 | <image>${docker.image.name}:latest</image> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 217 | <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] | 218 | <pushImage>true</pushImage> |
elinuxhenrik | f394594 | 2018-09-14 15:49:10 +0200 | [diff] [blame] | 219 | </configuration> |
| 220 | </execution> |
| 221 | </executions> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 222 | </plugin> |
PatrikBuhr | 4dc06d0 | 2019-04-11 15:27:07 +0000 | [diff] [blame] | 223 | |
| 224 | <plugin> |
PatrikBuhr | 4dc06d0 | 2019-04-11 15:27:07 +0000 | [diff] [blame] | 225 | <groupId>pl.project13.maven</groupId> |
| 226 | <artifactId>git-commit-id-plugin</artifactId> |
| 227 | <executions> |
| 228 | <execution> |
| 229 | <id>get-the-git-infos</id> |
| 230 | <goals> |
| 231 | <goal>revision</goal> |
| 232 | </goals> |
| 233 | </execution> |
| 234 | </executions> |
| 235 | <configuration> |
| 236 | <verbose>true</verbose> |
| 237 | <dotGitDirectory>${project.basedir}/.git</dotGitDirectory> |
| 238 | <dateFormat>MM-dd-yyyy '@' HH:mm:ss Z</dateFormat> |
| 239 | <generateGitPropertiesFile>true</generateGitPropertiesFile> |
| 240 | <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename> |
| 241 | <failOnNoGitDirectory>true</failOnNoGitDirectory> |
| 242 | </configuration> |
| 243 | </plugin> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 244 | </plugins> |
| 245 | </build> |
elinuxhenrik | d661dbc | 2018-08-17 12:34:58 +0200 | [diff] [blame] | 246 | </project> |