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. |
| 6 | * =========================================================================== |
| 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | * you may not use this file except in compliance with the License. |
| 9 | * You may obtain a copy of the License at |
| 10 | * |
| 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | * |
| 13 | * Unless required by applicable law or agreed to in writing, software |
| 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | * See the License for the specific language governing permissions and |
| 17 | * limitations under the License. |
| 18 | * ============LICENSE_END==================================================== |
| 19 | * |
| 20 | * ECOMP is a trademark and service mark of AT&T Intellectual Property. |
| 21 | * |
| 22 | --> |
| 23 | <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"> |
| 24 | <modelVersion>4.0.0</modelVersion> |
| 25 | <parent> |
| 26 | <groupId>org.onap.dmaap.datarouter</groupId> |
| 27 | <artifactId>parent</artifactId> |
| 28 | <version>1.0.1-SNAPSHOT</version> |
| 29 | <relativePath>../pom.xml</relativePath> |
| 30 | </parent> |
| 31 | <artifactId>datarouter-node</artifactId> |
| 32 | <packaging>jar</packaging> |
| 33 | <name>datarouter-node</name> |
| 34 | <url>https://github.com/att/DMAAP_DATAROUTER</url> |
| 35 | <properties> |
| 36 | <sonar.skip>false</sonar.skip> |
| 37 | <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero> |
| 38 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath> |
| 39 | <docker.location>${basedir}/target/${artifactId}</docker.location> |
| 40 | <datarouter.node.image.name>onap/dmaap/datarouter-node</datarouter.node.image.name> |
| 41 | </properties> |
| 42 | <dependencies> |
| 43 | <dependency> |
| 44 | <groupId>junit</groupId> |
| 45 | <artifactId>junit</artifactId> |
| 46 | <version>3.8.1</version> |
| 47 | <scope>test</scope> |
| 48 | </dependency> |
| 49 | <dependency> |
| 50 | <groupId>org.json</groupId> |
| 51 | <artifactId>json</artifactId> |
| 52 | <version>20160810</version> |
| 53 | </dependency> |
| 54 | <dependency> |
| 55 | <groupId>javax.mail</groupId> |
| 56 | <artifactId>javax.mail-api</artifactId> |
| 57 | <version>1.5.1</version> |
| 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>com.att.eelf</groupId> |
| 61 | <artifactId>eelf-core</artifactId> |
| 62 | <version>0.0.1</version> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>javax.servlet</groupId> |
| 66 | <artifactId>servlet-api</artifactId> |
| 67 | <version>2.5</version> |
| 68 | </dependency> |
| 69 | <dependency> |
| 70 | <groupId>com.thoughtworks.xstream</groupId> |
| 71 | <artifactId>xstream</artifactId> |
| 72 | <version>1.4.7</version> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>ch.qos.logback</groupId> |
| 76 | <artifactId>logback-classic</artifactId> |
| 77 | <version>1.2.0</version> |
| 78 | <scope>compile</scope> |
| 79 | </dependency> |
| 80 | <dependency> |
| 81 | <groupId>ch.qos.logback</groupId> |
| 82 | <artifactId>logback-core</artifactId> |
| 83 | <version>1.2.0</version> |
| 84 | <scope>compile</scope> |
| 85 | </dependency> |
| 86 | <dependency> |
| 87 | <groupId>org.eclipse.jetty</groupId> |
| 88 | <artifactId>jetty-server</artifactId> |
| 89 | <version>7.6.14.v20131031</version> |
| 90 | </dependency> |
| 91 | <dependency> |
| 92 | <groupId>org.eclipse.jetty</groupId> |
| 93 | <artifactId>jetty-continuation</artifactId> |
| 94 | <version>7.6.14.v20131031</version> |
| 95 | </dependency> |
| 96 | <dependency> |
| 97 | <groupId>org.eclipse.jetty</groupId> |
| 98 | <artifactId>jetty-util</artifactId> |
| 99 | <version>7.6.14.v20131031</version> |
| 100 | </dependency> |
| 101 | <dependency> |
| 102 | <groupId>org.eclipse.jetty</groupId> |
| 103 | <artifactId>jetty-deploy</artifactId> |
| 104 | <version>7.6.14.v20131031</version> |
| 105 | </dependency> |
| 106 | <dependency> |
| 107 | <groupId>org.eclipse.jetty</groupId> |
| 108 | <artifactId>jetty-servlet</artifactId> |
| 109 | <version>7.6.14.v20131031</version> |
| 110 | </dependency> |
| 111 | <dependency> |
| 112 | <groupId>org.eclipse.jetty</groupId> |
| 113 | <artifactId>jetty-servlets</artifactId> |
| 114 | <version>7.6.14.v20131031</version> |
| 115 | </dependency> |
| 116 | <dependency> |
| 117 | <groupId>org.eclipse.jetty</groupId> |
| 118 | <artifactId>jetty-http</artifactId> |
| 119 | <version>7.6.14.v20131031</version> |
| 120 | </dependency> |
| 121 | <dependency> |
| 122 | <groupId>org.eclipse.jetty</groupId> |
| 123 | <artifactId>jetty-security</artifactId> |
| 124 | <version>7.6.14.v20131031</version> |
| 125 | </dependency> |
| 126 | <dependency> |
| 127 | <groupId>org.eclipse.jetty</groupId> |
| 128 | <artifactId>jetty-websocket</artifactId> |
| 129 | <version>7.6.14.v20131031</version> |
| 130 | </dependency> |
| 131 | <dependency> |
| 132 | <groupId>org.eclipse.jetty</groupId> |
| 133 | <artifactId>jetty-io</artifactId> |
| 134 | <version>7.6.14.v20131031</version> |
| 135 | </dependency> |
| 136 | <dependency> |
| 137 | <groupId>org.apache.commons</groupId> |
| 138 | <artifactId>commons-io</artifactId> |
| 139 | <version>1.3.2</version> |
| 140 | </dependency> |
| 141 | <dependency> |
| 142 | <groupId>commons-lang</groupId> |
| 143 | <artifactId>commons-lang</artifactId> |
| 144 | <version>2.4</version> |
| 145 | </dependency> |
| 146 | <dependency> |
| 147 | <groupId>commons-io</groupId> |
| 148 | <artifactId>commons-io</artifactId> |
| 149 | <version>2.1</version> |
| 150 | <scope>compile</scope> |
| 151 | </dependency> |
| 152 | <dependency> |
| 153 | <groupId>org.apache.httpcomponents</groupId> |
| 154 | <artifactId>httpcore</artifactId> |
| 155 | <version>4.4</version> |
| 156 | </dependency> |
| 157 | <dependency> |
| 158 | <groupId>commons-codec</groupId> |
| 159 | <artifactId>commons-codec</artifactId> |
| 160 | <version>1.6</version> |
| 161 | </dependency> |
| 162 | <dependency> |
| 163 | <groupId>org.mozilla</groupId> |
| 164 | <artifactId>rhino</artifactId> |
| 165 | <version>1.7R3</version> |
| 166 | </dependency> |
| 167 | <dependency> |
| 168 | <groupId>org.apache.james</groupId> |
| 169 | <artifactId>apache-mime4j-core</artifactId> |
| 170 | <version>0.7</version> |
| 171 | </dependency> |
| 172 | <dependency> |
| 173 | <groupId>org.apache.httpcomponents</groupId> |
| 174 | <artifactId>httpclient</artifactId> |
| 175 | <version>4.5.3</version> |
| 176 | </dependency> |
| 177 | <dependency> |
| 178 | <groupId>org.sonatype.http-testing-harness</groupId> |
| 179 | <artifactId>junit-runner</artifactId> |
| 180 | <version>0.11</version> |
| 181 | <exclusions> |
| 182 | <exclusion> |
| 183 | <groupId>org.databene</groupId> |
| 184 | <artifactId>contiperf</artifactId> |
| 185 | </exclusion> |
| 186 | </exclusions> |
| 187 | </dependency> |
| 188 | <dependency> |
| 189 | <groupId>log4j</groupId> |
| 190 | <artifactId>log4j</artifactId> |
| 191 | <version>1.2.17</version> |
| 192 | <scope>compile</scope> |
| 193 | </dependency> |
| 194 | </dependencies> |
| 195 | <profiles> |
| 196 | <profile> |
| 197 | <id>docker</id> |
| 198 | <properties> |
| 199 | <skipDockerBuild>false</skipDockerBuild> |
| 200 | <skipDockerTag>false</skipDockerTag> |
| 201 | <skipTests>true</skipTests> |
| 202 | </properties> |
| 203 | <build> |
| 204 | <plugins> |
| 205 | <plugin> |
| 206 | <groupId>com.spotify</groupId> |
| 207 | <artifactId>docker-maven-plugin</artifactId> |
| 208 | <version>1.0.0</version> |
| 209 | <configuration> |
| 210 | <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.node.image.name}</imageName> |
| 211 | <dockerDirectory>${docker.location}</dockerDirectory> |
| 212 | <serverId>${onap.nexus.dockerregistry.daily}</serverId> |
| 213 | <skipDockerBuild>false</skipDockerBuild> |
| 214 | <imageTags> |
| 215 | <imageTag>${project.version}</imageTag> |
| 216 | <imageTag>latest</imageTag> |
| 217 | </imageTags> |
| 218 | <forceTags>true</forceTags> |
| 219 | <resources> |
| 220 | <resource> |
| 221 | <targetPath>/</targetPath> |
| 222 | <directory>${project.basedir}</directory> |
| 223 | <excludes> |
| 224 | <exclude>target/**/*</exclude> |
| 225 | <exclude>pom.xml</exclude> |
| 226 | </excludes> |
| 227 | </resource> |
| 228 | |
| 229 | <resource> |
| 230 | <targetPath>/</targetPath> |
| 231 | <directory>${project.build.directory}</directory> |
| 232 | <include>**/**</include> |
| 233 | </resource> |
| 234 | </resources> |
| 235 | </configuration> |
| 236 | </plugin> |
| 237 | </plugins> |
| 238 | </build> |
| 239 | </profile> |
| 240 | </profiles> |
| 241 | |
| 242 | <build> |
| 243 | <finalName>datarouter-node</finalName> |
| 244 | <resources> |
| 245 | <resource> |
| 246 | <directory>src/main/resources</directory> |
| 247 | <filtering>true</filtering> |
| 248 | <includes> |
| 249 | <include>**/*.properties</include> |
| 250 | </includes> |
| 251 | </resource> |
| 252 | <resource> |
| 253 | <directory>src/main/resources</directory> |
| 254 | <filtering>true</filtering> |
| 255 | <includes> |
| 256 | <include>**/EelfMessages.properties</include> |
| 257 | </includes> |
| 258 | </resource> |
| 259 | <resource> |
| 260 | <directory>src/main/resources</directory> |
| 261 | <filtering>true</filtering> |
| 262 | <includes> |
| 263 | <include>**/log4j.properties</include> |
| 264 | </includes> |
| 265 | </resource> |
| 266 | </resources> |
| 267 | <plugins> |
| 268 | <plugin> |
| 269 | <groupId>org.apache.maven.plugins</groupId> |
| 270 | <artifactId>maven-compiler-plugin</artifactId> |
| 271 | <configuration> |
| 272 | <source>1.8</source> |
| 273 | <target>1.8</target> |
| 274 | </configuration> |
| 275 | <version>3.6.0</version> |
| 276 | </plugin> |
| 277 | <plugin> |
| 278 | <artifactId>maven-assembly-plugin</artifactId> |
| 279 | <version>2.4</version> |
| 280 | <configuration> |
| 281 | <descriptorRefs> |
| 282 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 283 | </descriptorRefs> |
| 284 | <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory> |
| 285 | <archive> |
| 286 | <manifest> |
| 287 | <addClasspath>true</addClasspath> |
| 288 | <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass> |
| 289 | </manifest> |
| 290 | </archive> |
| 291 | </configuration> |
| 292 | <executions> |
| 293 | <execution> |
| 294 | <id>make-assembly</id> |
| 295 | <!-- this is used for inheritance merges --> |
| 296 | <phase>package</phase> |
| 297 | <!-- bind to the packaging phase --> |
| 298 | <goals> |
| 299 | <goal>single</goal> |
| 300 | </goals> |
| 301 | </execution> |
| 302 | </executions> |
| 303 | </plugin> |
| 304 | <plugin> |
| 305 | <groupId>org.apache.maven.plugins</groupId> |
| 306 | <artifactId>maven-resources-plugin</artifactId> |
| 307 | <version>2.7</version> |
| 308 | <executions> |
| 309 | <execution> |
| 310 | <id>copy-docker-file</id> |
| 311 | <phase>package</phase> |
| 312 | <goals> |
| 313 | <goal>copy-resources</goal> |
| 314 | </goals> |
| 315 | <configuration> |
| 316 | <outputDirectory>${docker.location}</outputDirectory> |
| 317 | <overwrite>true</overwrite> |
| 318 | <resources> |
| 319 | <resource> |
| 320 | <directory>${basedir}/src/main/resources/docker</directory> |
| 321 | <filtering>true</filtering> |
| 322 | <includes> |
| 323 | <include>**/*</include> |
| 324 | </includes> |
| 325 | </resource> |
| 326 | </resources> |
| 327 | </configuration> |
| 328 | </execution> |
| 329 | <execution> |
| 330 | <id>copy-resources</id> |
| 331 | <phase>validate</phase> |
| 332 | <goals> |
| 333 | <goal>copy-resources</goal> |
| 334 | </goals> |
| 335 | <configuration> |
| 336 | <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory> |
| 337 | <resources> |
| 338 | <resource> |
| 339 | <directory>${basedir}/src/main/resources</directory> |
| 340 | <includes> |
| 341 | <include>misc/**</include> |
| 342 | <include>**/**</include> |
| 343 | </includes> |
| 344 | </resource> |
| 345 | </resources> |
| 346 | </configuration> |
| 347 | </execution> |
| 348 | <execution> |
| 349 | <id>copy-resources-1</id> |
| 350 | <phase>validate</phase> |
| 351 | <goals> |
| 352 | <goal>copy-resources</goal> |
| 353 | </goals> |
| 354 | <configuration> |
| 355 | <outputDirectory>${basedir}/target/opt/app/datartr/self_signed</outputDirectory> |
| 356 | <resources> |
| 357 | <resource> |
| 358 | <directory>${basedir}/self_signed</directory> |
| 359 | <includes> |
| 360 | <include>misc/**</include> |
| 361 | <include>**/**</include> |
| 362 | </includes> |
| 363 | </resource> |
| 364 | </resources> |
| 365 | </configuration> |
| 366 | </execution> |
| 367 | </executions> |
| 368 | </plugin> |
| 369 | <plugin> |
| 370 | <groupId>org.apache.maven.plugins</groupId> |
| 371 | <artifactId>maven-dependency-plugin</artifactId> |
| 372 | <version>2.10</version> |
| 373 | <executions> |
| 374 | <execution> |
| 375 | <id>copy-dependencies</id> |
| 376 | <phase>package</phase> |
| 377 | <goals> |
| 378 | <goal>copy-dependencies</goal> |
| 379 | </goals> |
| 380 | <configuration> |
| 381 | <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory> |
| 382 | <overWriteReleases>false</overWriteReleases> |
| 383 | <overWriteSnapshots>false</overWriteSnapshots> |
| 384 | <overWriteIfNewer>true</overWriteIfNewer> |
| 385 | </configuration> |
| 386 | </execution> |
| 387 | </executions> |
| 388 | </plugin> |
| 389 | <plugin> |
| 390 | <groupId>org.apache.maven.plugins</groupId> |
| 391 | <artifactId>maven-javadoc-plugin</artifactId> |
| 392 | <configuration> |
| 393 | <failOnError>false</failOnError> |
| 394 | </configuration> |
| 395 | <executions> |
| 396 | <execution> |
| 397 | <id>attach-javadocs</id> |
| 398 | <goals> |
| 399 | <goal>jar</goal> |
| 400 | </goals> |
| 401 | </execution> |
| 402 | </executions> |
| 403 | </plugin> |
| 404 | <plugin> |
| 405 | <groupId>org.apache.maven.plugins</groupId> |
| 406 | <artifactId>maven-source-plugin</artifactId> |
| 407 | <version>2.2.1</version> |
| 408 | <executions> |
| 409 | <execution> |
| 410 | <id>attach-sources</id> |
| 411 | <goals> |
| 412 | <goal>jar-no-fork</goal> |
| 413 | </goals> |
| 414 | </execution> |
| 415 | </executions> |
| 416 | </plugin> |
| 417 | <plugin> |
| 418 | <groupId>org.codehaus.mojo</groupId> |
| 419 | <artifactId>cobertura-maven-plugin</artifactId> |
| 420 | <version>2.7</version> |
| 421 | <configuration> |
| 422 | <formats> |
| 423 | <format>html</format> |
| 424 | <format>xml</format> |
| 425 | </formats> |
| 426 | <check/> |
| 427 | </configuration> |
| 428 | </plugin> |
| 429 | <plugin> |
| 430 | <groupId>org.sonatype.plugins</groupId> |
| 431 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 432 | <version>1.6.7</version> |
| 433 | <extensions>true</extensions> |
| 434 | <configuration> |
| 435 | <nexusUrl>${onap.nexus.url}</nexusUrl> |
| 436 | <stagingProfileId>176c31dfe190a</stagingProfileId> |
| 437 | <serverId>ecomp-staging</serverId> |
| 438 | </configuration> |
| 439 | </plugin> |
| 440 | <plugin> |
| 441 | <groupId>org.jacoco</groupId> |
| 442 | <artifactId>jacoco-maven-plugin</artifactId> |
| 443 | <version>${jacoco.version}</version> |
| 444 | <configuration> |
| 445 | <excludes> |
| 446 | <exclude>**/gen/**</exclude> |
| 447 | <exclude>**/generated-sources/**</exclude> |
| 448 | <exclude>**/yang-gen/**</exclude> |
| 449 | <exclude>**/pax/**</exclude> |
| 450 | </excludes> |
| 451 | </configuration> |
| 452 | <executions> |
| 453 | <execution> |
| 454 | <id>pre-unit-test</id> |
| 455 | <goals> |
| 456 | <goal>prepare-agent</goal> |
| 457 | </goals> |
| 458 | <configuration> |
| 459 | <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile> |
| 460 | <propertyName>surefireArgLine</propertyName> |
| 461 | </configuration> |
| 462 | </execution> |
| 463 | <execution> |
| 464 | <id>post-unit-test</id> |
| 465 | <phase>test</phase> |
| 466 | <goals> |
| 467 | <goal>report</goal> |
| 468 | </goals> |
| 469 | <configuration> |
| 470 | <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile> |
| 471 | <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> |
| 472 | </configuration> |
| 473 | </execution> |
| 474 | <execution> |
| 475 | <id>pre-integration-test</id> |
| 476 | <phase>pre-integration-test</phase> |
| 477 | <goals> |
| 478 | <goal>prepare-agent</goal> |
| 479 | </goals> |
| 480 | <configuration> |
| 481 | <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile> |
| 482 | <propertyName>failsafeArgLine</propertyName> |
| 483 | </configuration> |
| 484 | </execution> |
| 485 | <execution> |
| 486 | <id>post-integration-test</id> |
| 487 | <phase>post-integration-test</phase> |
| 488 | <goals> |
| 489 | <goal>report</goal> |
| 490 | </goals> |
| 491 | <configuration> |
| 492 | <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile> |
| 493 | <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory> |
| 494 | </configuration> |
| 495 | </execution> |
| 496 | </executions> |
| 497 | </plugin> |
| 498 | </plugins> |
| 499 | </build> |
| 500 | </project> |