Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +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. |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +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> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 30 | <relativePath>../pom.xml</relativePath> |
| 31 | </parent> |
| 32 | <artifactId>datarouter-subscriber</artifactId> |
| 33 | <packaging>jar</packaging> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 34 | <properties> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 35 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath> |
| 36 | <docker.location>${basedir}/target/${project.artifactId}</docker.location> |
| 37 | <datarouter.sub.image.name>${docker.image.root}${project.artifactId}</datarouter.sub.image.name> |
efiacor | f20778f | 2019-07-23 16:22:03 +0000 | [diff] [blame] | 38 | <sonar.exclusions>src/main/java/org/onap/dmaap/datarouter/subscriber/**</sonar.exclusions> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 39 | <sonar.language>java</sonar.language> |
| 40 | <sonar.skip>false</sonar.skip> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 41 | </properties> |
| 42 | <dependencies> |
| 43 | <dependency> |
edepaul | 12c71a5 | 2018-09-07 16:27:01 +0100 | [diff] [blame] | 44 | <groupId>commons-codec</groupId> |
| 45 | <artifactId>commons-codec</artifactId> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 46 | </dependency> |
| 47 | <dependency> |
efiacor | 5906de2 | 2020-04-16 14:59:07 +0100 | [diff] [blame] | 48 | <groupId>ch.qos.logback</groupId> |
| 49 | <artifactId>logback-classic</artifactId> |
| 50 | </dependency> |
| 51 | <dependency> |
| 52 | <groupId>ch.qos.logback</groupId> |
| 53 | <artifactId>logback-core</artifactId> |
| 54 | </dependency> |
| 55 | <dependency> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 56 | <groupId>javax.servlet</groupId> |
| 57 | <artifactId>javax.servlet-api</artifactId> |
edepaul | 12c71a5 | 2018-09-07 16:27:01 +0100 | [diff] [blame] | 58 | </dependency> |
| 59 | <dependency> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 60 | <groupId>org.eclipse.jetty</groupId> |
| 61 | <artifactId>jetty-server</artifactId> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 62 | </dependency> |
| 63 | <dependency> |
| 64 | <groupId>org.eclipse.jetty</groupId> |
| 65 | <artifactId>jetty-util</artifactId> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 66 | </dependency> |
| 67 | <dependency> |
| 68 | <groupId>org.eclipse.jetty</groupId> |
| 69 | <artifactId>jetty-servlet</artifactId> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 70 | </dependency> |
| 71 | <dependency> |
| 72 | <groupId>org.eclipse.jetty</groupId> |
| 73 | <artifactId>jetty-http</artifactId> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 74 | </dependency> |
| 75 | <dependency> |
| 76 | <groupId>org.sonatype.http-testing-harness</groupId> |
| 77 | <artifactId>junit-runner</artifactId> |
efiacor | 8552e04 | 2020-04-04 17:51:53 +0100 | [diff] [blame] | 78 | <exclusions> |
| 79 | <exclusion> |
| 80 | <artifactId>powermock-reflect</artifactId> |
| 81 | <groupId>org.powermock</groupId> |
| 82 | </exclusion> |
| 83 | <exclusion> |
| 84 | <artifactId>powermock-api-mockito</artifactId> |
| 85 | <groupId>org.powermock</groupId> |
| 86 | </exclusion> |
| 87 | <exclusion> |
| 88 | <artifactId>jetty-security</artifactId> |
| 89 | <groupId>org.eclipse.jetty</groupId> |
| 90 | </exclusion> |
| 91 | <exclusion> |
| 92 | <artifactId>jsr305</artifactId> |
| 93 | <groupId>com.google.code.findbugs</groupId> |
| 94 | </exclusion> |
| 95 | </exclusions> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 96 | </dependency> |
| 97 | <dependency> |
| 98 | <groupId>junit</groupId> |
| 99 | <artifactId>junit</artifactId> |
efiacor | 8552e04 | 2020-04-04 17:51:53 +0100 | [diff] [blame] | 100 | <scope>test</scope> |
| 101 | </dependency> |
| 102 | <dependency> |
| 103 | <groupId>org.mockito</groupId> |
| 104 | <artifactId>mockito-core</artifactId> |
| 105 | <scope>test</scope> |
| 106 | </dependency> |
| 107 | <dependency> |
| 108 | <groupId>org.powermock</groupId> |
| 109 | <artifactId>powermock-module-junit4</artifactId> |
| 110 | <scope>test</scope> |
| 111 | </dependency> |
| 112 | <dependency> |
| 113 | <groupId>org.powermock</groupId> |
| 114 | <artifactId>powermock-api-mockito2</artifactId> |
| 115 | <scope>test</scope> |
| 116 | </dependency> |
| 117 | <dependency> |
| 118 | <groupId>org.powermock</groupId> |
| 119 | <artifactId>powermock-api-support</artifactId> |
| 120 | <scope>test</scope> |
| 121 | </dependency> |
| 122 | <dependency> |
| 123 | <groupId>org.powermock</groupId> |
| 124 | <artifactId>powermock-core</artifactId> |
| 125 | <scope>test</scope> |
| 126 | </dependency> |
| 127 | <dependency> |
| 128 | <groupId>org.powermock</groupId> |
| 129 | <artifactId>powermock-module-junit4-rule</artifactId> |
| 130 | </dependency> |
| 131 | <dependency> |
| 132 | <groupId>net.bytebuddy</groupId> |
| 133 | <artifactId>byte-buddy</artifactId> |
| 134 | </dependency> |
| 135 | <dependency> |
| 136 | <groupId>net.bytebuddy</groupId> |
| 137 | <artifactId>byte-buddy-agent</artifactId> |
| 138 | </dependency> |
| 139 | <dependency> |
| 140 | <groupId>org.objenesis</groupId> |
| 141 | <artifactId>objenesis</artifactId> |
| 142 | </dependency> |
| 143 | <dependency> |
| 144 | <groupId>org.javassist</groupId> |
| 145 | <artifactId>javassist</artifactId> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 146 | </dependency> |
| 147 | <dependency> |
| 148 | <groupId>commons-io</groupId> |
| 149 | <artifactId>commons-io</artifactId> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 150 | </dependency> |
| 151 | <dependency> |
efiacor | 5906de2 | 2020-04-16 14:59:07 +0100 | [diff] [blame] | 152 | <groupId>com.att.eelf</groupId> |
| 153 | <artifactId>eelf-core</artifactId> |
| 154 | <exclusions> |
| 155 | <exclusion> |
| 156 | <artifactId>powermock-api-mockito</artifactId> |
| 157 | <groupId>org.powermock</groupId> |
| 158 | </exclusion> |
| 159 | </exclusions> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 160 | </dependency> |
| 161 | </dependencies> |
| 162 | <profiles> |
| 163 | <profile> |
| 164 | <id>docker</id> |
| 165 | <properties> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 166 | <skipTests>true</skipTests> |
| 167 | </properties> |
| 168 | <build> |
| 169 | <plugins> |
| 170 | <plugin> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 171 | <groupId>org.codehaus.gmaven</groupId> |
| 172 | <artifactId>gmaven-plugin</artifactId> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 173 | </plugin> |
| 174 | <plugin> |
| 175 | <groupId>io.fabric8</groupId> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 176 | <artifactId>docker-maven-plugin</artifactId> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 177 | <configuration> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 178 | <images> |
| 179 | <image> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 180 | <name>${datarouter.sub.image.name}</name> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 181 | <build> |
| 182 | <cleanup>try</cleanup> |
efiacor | d20d5f5 | 2020-02-27 16:46:20 +0000 | [diff] [blame] | 183 | <noCache>true</noCache> |
| 184 | <optimise>true</optimise> |
| 185 | <contextDir>${basedir}/target/docker-stage</contextDir> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 186 | <dockerFile>Dockerfile</dockerFile> |
| 187 | <tags> |
| 188 | <tag>${dockertag1}</tag> |
| 189 | <tag>${dockertag2}</tag> |
| 190 | </tags> |
| 191 | </build> |
| 192 | </image> |
| 193 | </images> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 194 | </configuration> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 195 | <executions> |
| 196 | <execution> |
| 197 | <id>generate-images</id> |
| 198 | <phase>install</phase> |
| 199 | <goals> |
| 200 | <goal>build</goal> |
| 201 | </goals> |
| 202 | </execution> |
| 203 | <execution> |
| 204 | <id>push-images</id> |
| 205 | <phase>deploy</phase> |
| 206 | <goals> |
| 207 | <goal>push</goal> |
| 208 | </goals> |
| 209 | </execution> |
| 210 | </executions> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 211 | </plugin> |
| 212 | </plugins> |
| 213 | </build> |
| 214 | </profile> |
| 215 | </profiles> |
| 216 | <build> |
| 217 | <finalName>datarouter-subscriber</finalName> |
| 218 | <resources> |
| 219 | <resource> |
| 220 | <directory>src/main/resources</directory> |
| 221 | <filtering>true</filtering> |
| 222 | <includes> |
| 223 | <include>**/*.properties</include> |
efiacor | 5906de2 | 2020-04-16 14:59:07 +0100 | [diff] [blame] | 224 | <include>**/logback.xml</include> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 225 | </includes> |
| 226 | </resource> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 227 | </resources> |
| 228 | <plugins> |
| 229 | <plugin> |
| 230 | <artifactId>maven-assembly-plugin</artifactId> |
| 231 | <version>2.4</version> |
| 232 | <configuration> |
| 233 | <descriptorRefs> |
| 234 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 235 | </descriptorRefs> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 236 | <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/lib</outputDirectory> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 237 | <archive> |
| 238 | <manifest> |
| 239 | <addClasspath>true</addClasspath> |
Fiachra Corcoran | aa988a2 | 2018-08-30 00:43:55 +0100 | [diff] [blame] | 240 | <mainClass>org.onap.dmaap.datarouter.subscriber.SubscriberMain</mainClass> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 241 | </manifest> |
| 242 | </archive> |
| 243 | </configuration> |
| 244 | <executions> |
| 245 | <execution> |
| 246 | <id>make-assembly</id> |
| 247 | <!-- this is used for inheritance merges --> |
| 248 | <phase>package</phase> |
| 249 | <!-- bind to the packaging phase --> |
| 250 | <goals> |
| 251 | <goal>single</goal> |
| 252 | </goals> |
| 253 | </execution> |
| 254 | </executions> |
| 255 | </plugin> |
| 256 | <plugin> |
| 257 | <groupId>org.apache.maven.plugins</groupId> |
| 258 | <artifactId>maven-compiler-plugin</artifactId> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 259 | </plugin> |
| 260 | <plugin> |
| 261 | <artifactId>maven-resources-plugin</artifactId> |
| 262 | <version>2.7</version> |
| 263 | <executions> |
| 264 | <execution> |
| 265 | <id>copy-docker-file</id> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 266 | <phase>validate</phase> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 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</outputDirectory> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 272 | <overwrite>true</overwrite> |
| 273 | <resources> |
| 274 | <resource> |
| 275 | <directory>${basedir}/src/main/resources/docker</directory> |
| 276 | <filtering>true</filtering> |
| 277 | <includes> |
efiacor | 1ccd9c3 | 2019-10-08 16:24:28 +0100 | [diff] [blame] | 278 | <include>Dockerfile</include> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 279 | </includes> |
| 280 | </resource> |
| 281 | </resources> |
| 282 | </configuration> |
| 283 | </execution> |
| 284 | <execution> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 285 | <id>copy-startup-script</id> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 286 | <phase>validate</phase> |
| 287 | <goals> |
| 288 | <goal>copy-resources</goal> |
| 289 | </goals> |
| 290 | <configuration> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 291 | <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory> |
| 292 | <overwrite>true</overwrite> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 293 | <resources> |
| 294 | <resource> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 295 | <directory>${basedir}/src/main/resources/docker</directory> |
| 296 | <filtering>true</filtering> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 297 | <includes> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 298 | <include>startup.sh</include> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 299 | </includes> |
| 300 | </resource> |
| 301 | </resources> |
| 302 | </configuration> |
| 303 | </execution> |
| 304 | <execution> |
| 305 | <id>copy-resources-2</id> |
| 306 | <phase>validate</phase> |
| 307 | <goals> |
| 308 | <goal>copy-resources</goal> |
| 309 | </goals> |
| 310 | <configuration> |
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 311 | <outputDirectory>${basedir}/target/docker-stage/opt/app/subscriber/etc</outputDirectory> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 312 | <resources> |
| 313 | <resource> |
| 314 | <directory>${basedir}/src/main/resources</directory> |
| 315 | <includes> |
| 316 | <include>*.properties</include> |
| 317 | </includes> |
| 318 | </resource> |
| 319 | </resources> |
| 320 | </configuration> |
| 321 | </execution> |
| 322 | </executions> |
| 323 | </plugin> |
| 324 | <plugin> |
| 325 | <groupId>org.apache.maven.plugins</groupId> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 326 | <artifactId>maven-source-plugin</artifactId> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 327 | </plugin> |
| 328 | <plugin> |
| 329 | <groupId>org.jacoco</groupId> |
| 330 | <artifactId>jacoco-maven-plugin</artifactId> |
efiacor | f20778f | 2019-07-23 16:22:03 +0000 | [diff] [blame] | 331 | <configuration> |
| 332 | <excludes> |
| 333 | <exclude>src/main/java/org/onap/dmaap/datarouter/subscriber/**</exclude> |
| 334 | </excludes> |
| 335 | </configuration> |
efiacor | 1c11ab8 | 2019-04-09 13:52:17 +0000 | [diff] [blame] | 336 | </plugin> |
| 337 | <plugin> |
| 338 | <groupId>org.codehaus.mojo</groupId> |
| 339 | <artifactId>properties-maven-plugin</artifactId> |
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 340 | </plugin> |
| 341 | </plugins> |
| 342 | </build> |
| 343 | </project> |