eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START================================================== |
| 3 | * org.onap.dmaap |
| 4 | * =========================================================================== |
| 5 | * Copyright © 2017 AT&T Intellectual Property. All rights reserved. |
Piotr Darosz | 5a41037 | 2018-10-03 14:31:25 +0200 | [diff] [blame] | 6 | * Modifications Copyright (C) 2018 Nokia. All rights reserved. |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 7 | * =========================================================================== |
| 8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | * you may not use this file except in compliance with the License. |
| 10 | * You may obtain a copy of the License at |
| 11 | * |
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | * |
| 14 | * Unless required by applicable law or agreed to in writing, software |
| 15 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | * See the License for the specific language governing permissions and |
| 18 | * limitations under the License. |
| 19 | * ============LICENSE_END==================================================== |
| 20 | * |
| 21 | * ECOMP is a trademark and service mark of AT&T Intellectual Property. |
| 22 | * |
| 23 | --> |
| 24 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 25 | <modelVersion>4.0.0</modelVersion> |
| 26 | <parent> |
| 27 | <groupId>org.onap.dmaap.datarouter</groupId> |
| 28 | <artifactId>parent</artifactId> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 29 | <version>${revision}</version> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 30 | <relativePath>../pom.xml</relativePath> |
| 31 | </parent> |
| 32 | <artifactId>datarouter-node</artifactId> |
| 33 | <packaging>jar</packaging> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 34 | <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 35 | <properties> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 36 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 37 | <docker.location>${basedir}/target/${project.artifactId}</docker.location> |
| 38 | <datarouter.node.image.name>${docker.image.root}${project.artifactId}</datarouter.node.image.name> |
| 39 | <sonar.language>java</sonar.language> |
| 40 | <sonar.skip>false</sonar.skip> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 41 | </properties> |
| 42 | <dependencies> |
| 43 | <dependency> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 44 | <groupId>org.hamcrest</groupId> |
| 45 | <artifactId>hamcrest-library</artifactId> |
| 46 | </dependency> |
| 47 | <dependency> |
| 48 | <groupId>org.slf4j</groupId> |
| 49 | <artifactId>slf4j-api</artifactId> |
edepaul | 555b7fc | 2018-09-11 08:07:16 +0100 | [diff] [blame] | 50 | </dependency> |
| 51 | <dependency> |
edepaul | 12c71a5 | 2018-09-07 16:27:01 +0100 | [diff] [blame] | 52 | <groupId>commons-codec</groupId> |
| 53 | <artifactId>commons-codec</artifactId> |
edepaul | 12c71a5 | 2018-09-07 16:27:01 +0100 | [diff] [blame] | 54 | </dependency> |
| 55 | <dependency> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 56 | <groupId>junit</groupId> |
| 57 | <artifactId>junit</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>org.json</groupId> |
| 61 | <artifactId>json</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 62 | </dependency> |
| 63 | <dependency> |
| 64 | <groupId>com.att.eelf</groupId> |
| 65 | <artifactId>eelf-core</artifactId> |
EmmettCox | b60213d | 2019-04-08 10:34:31 +0000 | [diff] [blame] | 66 | </dependency> |
| 67 | <dependency> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 68 | <groupId>ch.qos.logback</groupId> |
| 69 | <artifactId>logback-classic</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 70 | </dependency> |
| 71 | <dependency> |
| 72 | <groupId>ch.qos.logback</groupId> |
| 73 | <artifactId>logback-core</artifactId> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 74 | </dependency> |
| 75 | <dependency> |
| 76 | <groupId>com.intellij</groupId> |
| 77 | <artifactId>annotations</artifactId> |
| 78 | </dependency> |
| 79 | <dependency> |
| 80 | <groupId>javax.servlet</groupId> |
| 81 | <artifactId>javax.servlet-api</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 82 | </dependency> |
| 83 | <dependency> |
| 84 | <groupId>org.eclipse.jetty</groupId> |
| 85 | <artifactId>jetty-server</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 86 | </dependency> |
| 87 | <dependency> |
| 88 | <groupId>org.eclipse.jetty</groupId> |
| 89 | <artifactId>jetty-util</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 90 | </dependency> |
| 91 | <dependency> |
| 92 | <groupId>org.eclipse.jetty</groupId> |
| 93 | <artifactId>jetty-servlet</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 94 | </dependency> |
| 95 | <dependency> |
| 96 | <groupId>org.eclipse.jetty</groupId> |
| 97 | <artifactId>jetty-http</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 98 | </dependency> |
| 99 | <dependency> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 100 | <groupId>org.onap.aaf.authz</groupId> |
| 101 | <artifactId>aaf-cadi-core</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 102 | </dependency> |
| 103 | <dependency> |
| 104 | <groupId>org.sonatype.http-testing-harness</groupId> |
| 105 | <artifactId>junit-runner</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 106 | </dependency> |
| 107 | <dependency> |
econwar | 81734bd | 2018-08-23 13:46:30 +0000 | [diff] [blame] | 108 | <groupId>org.mockito</groupId> |
| 109 | <artifactId>mockito-core</artifactId> |
econwar | 81734bd | 2018-08-23 13:46:30 +0000 | [diff] [blame] | 110 | </dependency> |
| 111 | <dependency> |
| 112 | <groupId>org.powermock</groupId> |
| 113 | <artifactId>powermock-module-junit4</artifactId> |
econwar | 81734bd | 2018-08-23 13:46:30 +0000 | [diff] [blame] | 114 | </dependency> |
| 115 | <dependency> |
| 116 | <groupId>org.powermock</groupId> |
| 117 | <artifactId>powermock-api-mockito</artifactId> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 118 | </dependency> |
| 119 | <dependency> |
| 120 | <groupId>org.powermock</groupId> |
| 121 | <artifactId>powermock-api-support</artifactId> |
| 122 | </dependency> |
| 123 | <dependency> |
| 124 | <groupId>org.powermock</groupId> |
| 125 | <artifactId>powermock-core</artifactId> |
econwar | 81734bd | 2018-08-23 13:46:30 +0000 | [diff] [blame] | 126 | </dependency> |
| 127 | <dependency> |
| 128 | <groupId>org.apache.commons</groupId> |
| 129 | <artifactId>commons-lang3</artifactId> |
efiacor | 5775de7 | 2019-03-26 14:29:01 +0000 | [diff] [blame] | 130 | </dependency> |
econwar | 5a55b79 | 2019-06-24 11:03:58 +0000 | [diff] [blame^] | 131 | <dependency> |
| 132 | <groupId>org.awaitility</groupId> |
| 133 | <artifactId>awaitility</artifactId> |
| 134 | <version>3.1.6</version> |
| 135 | </dependency> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 136 | </dependencies> |
| 137 | <profiles> |
| 138 | <profile> |
| 139 | <id>docker</id> |
| 140 | <properties> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 141 | <skipTests>true</skipTests> |
| 142 | </properties> |
| 143 | <build> |
| 144 | <plugins> |
| 145 | <plugin> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 146 | <groupId>org.codehaus.gmaven</groupId> |
| 147 | <artifactId>gmaven-plugin</artifactId> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 148 | </plugin> |
| 149 | <plugin> |
| 150 | <groupId>io.fabric8</groupId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 151 | <artifactId>docker-maven-plugin</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 152 | <configuration> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 153 | <images> |
| 154 | <image> |
| 155 | <name>${datarouter.node.image.name}</name> |
| 156 | <build> |
| 157 | <cleanup>try</cleanup> |
| 158 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
| 159 | <dockerFile>Dockerfile</dockerFile> |
| 160 | <tags> |
| 161 | <tag>${dockertag1}</tag> |
| 162 | <tag>${dockertag2}</tag> |
| 163 | </tags> |
| 164 | </build> |
| 165 | </image> |
| 166 | </images> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 167 | </configuration> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 168 | <executions> |
| 169 | <execution> |
| 170 | <id>generate-images</id> |
| 171 | <phase>install</phase> |
| 172 | <goals> |
| 173 | <goal>build</goal> |
| 174 | </goals> |
| 175 | </execution> |
| 176 | <execution> |
| 177 | <id>push-images</id> |
| 178 | <phase>deploy</phase> |
| 179 | <goals> |
| 180 | <goal>push</goal> |
| 181 | </goals> |
| 182 | </execution> |
| 183 | </executions> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 184 | </plugin> |
| 185 | </plugins> |
| 186 | </build> |
| 187 | </profile> |
| 188 | </profiles> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 189 | <build> |
| 190 | <finalName>datarouter-node</finalName> |
| 191 | <resources> |
| 192 | <resource> |
| 193 | <directory>src/main/resources</directory> |
| 194 | <filtering>true</filtering> |
| 195 | <includes> |
| 196 | <include>**/*.properties</include> |
| 197 | </includes> |
| 198 | </resource> |
| 199 | <resource> |
| 200 | <directory>src/main/resources</directory> |
| 201 | <filtering>true</filtering> |
| 202 | <includes> |
| 203 | <include>**/EelfMessages.properties</include> |
| 204 | </includes> |
| 205 | </resource> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 206 | </resources> |
| 207 | <plugins> |
| 208 | <plugin> |
| 209 | <groupId>org.apache.maven.plugins</groupId> |
| 210 | <artifactId>maven-compiler-plugin</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 211 | </plugin> |
| 212 | <plugin> |
| 213 | <artifactId>maven-assembly-plugin</artifactId> |
| 214 | <version>2.4</version> |
| 215 | <configuration> |
| 216 | <descriptorRefs> |
| 217 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 218 | </descriptorRefs> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 219 | <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 220 | <archive> |
| 221 | <manifest> |
| 222 | <addClasspath>true</addClasspath> |
| 223 | <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass> |
| 224 | </manifest> |
| 225 | </archive> |
| 226 | </configuration> |
| 227 | <executions> |
| 228 | <execution> |
| 229 | <id>make-assembly</id> |
| 230 | <!-- this is used for inheritance merges --> |
| 231 | <phase>package</phase> |
| 232 | <!-- bind to the packaging phase --> |
| 233 | <goals> |
| 234 | <goal>single</goal> |
| 235 | </goals> |
| 236 | </execution> |
| 237 | </executions> |
| 238 | </plugin> |
| 239 | <plugin> |
| 240 | <groupId>org.apache.maven.plugins</groupId> |
| 241 | <artifactId>maven-resources-plugin</artifactId> |
| 242 | <version>2.7</version> |
| 243 | <executions> |
| 244 | <execution> |
| 245 | <id>copy-docker-file</id> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 246 | <phase>validate</phase> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 247 | <goals> |
| 248 | <goal>copy-resources</goal> |
| 249 | </goals> |
| 250 | <configuration> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 251 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 252 | <overwrite>true</overwrite> |
| 253 | <resources> |
| 254 | <resource> |
| 255 | <directory>${basedir}/src/main/resources/docker</directory> |
| 256 | <filtering>true</filtering> |
| 257 | <includes> |
| 258 | <include>**/*</include> |
| 259 | </includes> |
| 260 | </resource> |
| 261 | </resources> |
| 262 | </configuration> |
| 263 | </execution> |
| 264 | <execution> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 265 | <id>copy-startup-script</id> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 266 | <phase>validate</phase> |
| 267 | <goals> |
| 268 | <goal>copy-resources</goal> |
| 269 | </goals> |
| 270 | <configuration> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 271 | <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory> |
| 272 | <overwrite>true</overwrite> |
| 273 | <resources> |
| 274 | <resource> |
| 275 | <directory>${basedir}/src/main/resources/docker</directory> |
| 276 | <filtering>true</filtering> |
| 277 | <includes> |
| 278 | <include>startup.sh</include> |
| 279 | </includes> |
| 280 | </resource> |
| 281 | </resources> |
| 282 | </configuration> |
| 283 | </execution> |
| 284 | <execution> |
| 285 | <id>copy-resources-2</id> |
| 286 | <phase>validate</phase> |
| 287 | <goals> |
| 288 | <goal>copy-resources</goal> |
| 289 | </goals> |
| 290 | <configuration> |
| 291 | <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 292 | <resources> |
| 293 | <resource> |
| 294 | <directory>${basedir}/src/main/resources</directory> |
| 295 | <includes> |
| 296 | <include>misc/**</include> |
| 297 | <include>**/**</include> |
| 298 | </includes> |
| 299 | </resource> |
| 300 | </resources> |
| 301 | </configuration> |
| 302 | </execution> |
| 303 | <execution> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 304 | <id>copy-resources-3</id> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 305 | <phase>validate</phase> |
| 306 | <goals> |
| 307 | <goal>copy-resources</goal> |
| 308 | </goals> |
| 309 | <configuration> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 310 | <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory> |
| 311 | <resources> |
| 312 | <resource> |
| 313 | <directory>${basedir}/data</directory> |
| 314 | <includes> |
| 315 | <include>misc/**</include> |
| 316 | <include>**/**</include> |
| 317 | </includes> |
| 318 | </resource> |
| 319 | </resources> |
| 320 | </configuration> |
| 321 | </execution> |
| 322 | <execution> |
| 323 | <id>copy-resources-4</id> |
| 324 | <phase>validate</phase> |
| 325 | <goals> |
| 326 | <goal>copy-resources</goal> |
| 327 | </goals> |
| 328 | <configuration> |
| 329 | <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 330 | <resources> |
| 331 | <resource> |
Ronan Keogh | ce73ff5 | 2018-08-23 11:04:45 +0100 | [diff] [blame] | 332 | <directory>${basedir}/aaf_certs</directory> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 333 | <includes> |
| 334 | <include>misc/**</include> |
| 335 | <include>**/**</include> |
| 336 | </includes> |
| 337 | </resource> |
| 338 | </resources> |
| 339 | </configuration> |
| 340 | </execution> |
| 341 | </executions> |
| 342 | </plugin> |
| 343 | <plugin> |
| 344 | <groupId>org.apache.maven.plugins</groupId> |
| 345 | <artifactId>maven-dependency-plugin</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 346 | <executions> |
| 347 | <execution> |
| 348 | <id>copy-dependencies</id> |
| 349 | <phase>package</phase> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 350 | <configuration> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 351 | <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 352 | </configuration> |
| 353 | </execution> |
| 354 | </executions> |
| 355 | </plugin> |
| 356 | <plugin> |
| 357 | <groupId>org.apache.maven.plugins</groupId> |
| 358 | <artifactId>maven-javadoc-plugin</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 359 | </plugin> |
| 360 | <plugin> |
| 361 | <groupId>org.apache.maven.plugins</groupId> |
| 362 | <artifactId>maven-source-plugin</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 363 | </plugin> |
| 364 | <plugin> |
| 365 | <groupId>org.codehaus.mojo</groupId> |
| 366 | <artifactId>cobertura-maven-plugin</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 367 | </plugin> |
| 368 | <plugin> |
| 369 | <groupId>org.sonatype.plugins</groupId> |
| 370 | <artifactId>nexus-staging-maven-plugin</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 371 | </plugin> |
| 372 | <plugin> |
| 373 | <groupId>org.jacoco</groupId> |
| 374 | <artifactId>jacoco-maven-plugin</artifactId> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 375 | </plugin> |
| 376 | <plugin> |
| 377 | <groupId>org.codehaus.mojo</groupId> |
| 378 | <artifactId>properties-maven-plugin</artifactId> |
eronkeo | 1841cb5 | 2018-08-12 15:46:43 +0100 | [diff] [blame] | 379 | </plugin> |
| 380 | </plugins> |
| 381 | </build> |
| 382 | </project> |