sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [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"
|
sg481n | e4b20cc | 2017-08-23 16:30:52 -0400 | [diff] [blame] | 24 | 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>
|
| 29 | <version>1.0.0-SNAPSHOT</version>
|
| 30 | <relativePath>../pom.xml</relativePath>
|
| 31 | </parent>
|
| 32 |
|
| 33 |
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 34 | <artifactId>datarouter-node</artifactId>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 35 | <packaging>jar</packaging>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 36 | <name>datarouter-node</name>
|
| 37 | <url>https://github.com/att/DMAAP_DATAROUTER</url>
|
| 38 | <licenses>
|
| 39 | <license>
|
| 40 | <name>BSD License</name>
|
| 41 | <url> </url>
|
| 42 | </license>
|
| 43 | </licenses>
|
| 44 |
|
| 45 |
|
| 46 | <properties>
|
| 47 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
| 48 | <maven.compiler.source>1.8</maven.compiler.source>
|
| 49 | <maven.compiler.target>1.8</maven.compiler.target>
|
| 50 | <dockerLocation>${basedir}/target/</dockerLocation>
|
sg481n | e4b20cc | 2017-08-23 16:30:52 -0400 | [diff] [blame] | 51 | <nexusproxy>https://nexus.onap.org</nexusproxy>
|
| 52 | <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
|
| 53 | <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
|
| 54 | <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
|
| 55 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 56 | </properties>
|
sg481n | e4b20cc | 2017-08-23 16:30:52 -0400 | [diff] [blame] | 57 |
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 58 | <dependencies>
|
| 59 | <dependency>
|
| 60 | <groupId>junit</groupId>
|
| 61 | <artifactId>junit</artifactId>
|
| 62 | <version>3.8.1</version>
|
| 63 | <scope>test</scope>
|
| 64 | </dependency>
|
| 65 | <dependency>
|
| 66 | <groupId>org.json</groupId>
|
| 67 | <artifactId>json</artifactId>
|
| 68 | <version>20160810</version>
|
| 69 | </dependency>
|
| 70 |
|
| 71 | <dependency>
|
| 72 | <groupId>javax.mail</groupId>
|
| 73 | <artifactId>javax.mail-api</artifactId>
|
| 74 | <version>1.5.1</version>
|
| 75 | </dependency>
|
| 76 | <dependency>
|
| 77 | <groupId>com.att.eelf</groupId>
|
| 78 | <artifactId>eelf-core</artifactId>
|
| 79 | <version>0.0.1</version>
|
| 80 | </dependency>
|
| 81 | <dependency>
|
| 82 | <groupId>javax.servlet</groupId>
|
| 83 | <artifactId>servlet-api</artifactId>
|
| 84 | <version>2.5</version>
|
| 85 | </dependency>
|
| 86 |
|
| 87 | <dependency>
|
| 88 | <groupId>org.eclipse.jetty</groupId>
|
| 89 | <artifactId>jetty-server</artifactId>
|
| 90 | <version>7.6.14.v20131031</version>
|
| 91 | </dependency>
|
| 92 | <dependency>
|
| 93 | <groupId>org.eclipse.jetty</groupId>
|
| 94 | <artifactId>jetty-continuation</artifactId>
|
| 95 | <version>7.6.14.v20131031</version>
|
| 96 | </dependency>
|
| 97 | <dependency>
|
| 98 | <groupId>org.eclipse.jetty</groupId>
|
| 99 | <artifactId>jetty-util</artifactId>
|
| 100 | <version>7.6.14.v20131031</version>
|
| 101 | </dependency>
|
| 102 | <dependency>
|
| 103 | <groupId>org.eclipse.jetty</groupId>
|
| 104 | <artifactId>jetty-deploy</artifactId>
|
| 105 | <version>7.6.14.v20131031</version>
|
| 106 | </dependency>
|
| 107 | <dependency>
|
| 108 | <groupId>org.eclipse.jetty</groupId>
|
| 109 | <artifactId>jetty-servlet</artifactId>
|
| 110 | <version>7.6.14.v20131031</version>
|
| 111 | </dependency>
|
| 112 | <dependency>
|
| 113 | <groupId>org.eclipse.jetty</groupId>
|
| 114 | <artifactId>jetty-servlets</artifactId>
|
| 115 | <version>7.6.14.v20131031</version>
|
| 116 | </dependency>
|
| 117 | <dependency>
|
| 118 | <groupId>org.eclipse.jetty</groupId>
|
| 119 | <artifactId>jetty-http</artifactId>
|
| 120 | <version>7.6.14.v20131031</version>
|
| 121 | </dependency>
|
| 122 |
|
| 123 | <dependency>
|
| 124 | <groupId>org.eclipse.jetty</groupId>
|
| 125 | <artifactId>jetty-security</artifactId>
|
| 126 | <version>7.6.14.v20131031</version>
|
| 127 | </dependency>
|
| 128 |
|
| 129 | <dependency>
|
| 130 | <groupId>org.eclipse.jetty</groupId>
|
| 131 | <artifactId>jetty-websocket</artifactId>
|
| 132 | <version>7.6.14.v20131031</version>
|
| 133 | </dependency>
|
| 134 |
|
| 135 | <dependency>
|
| 136 | <groupId>org.eclipse.jetty</groupId>
|
| 137 | <artifactId>jetty-io</artifactId>
|
| 138 | <version>7.6.14.v20131031</version>
|
| 139 | </dependency>
|
| 140 |
|
| 141 | <dependency>
|
| 142 | <groupId>org.apache.commons</groupId>
|
| 143 | <artifactId>commons-io</artifactId>
|
| 144 | <version>1.3.2</version>
|
| 145 | </dependency>
|
| 146 | <dependency>
|
| 147 | <groupId>commons-lang</groupId>
|
| 148 | <artifactId>commons-lang</artifactId>
|
| 149 | <version>2.4</version>
|
| 150 | </dependency>
|
| 151 | <dependency>
|
| 152 | <groupId>commons-io</groupId>
|
| 153 | <artifactId>commons-io</artifactId>
|
| 154 | <version>2.1</version>
|
| 155 | <scope>compile</scope>
|
| 156 | </dependency>
|
| 157 | <dependency>
|
| 158 | <groupId>org.apache.httpcomponents</groupId>
|
| 159 | <artifactId>httpcore</artifactId>
|
| 160 | <version>4.2.2</version>
|
| 161 | </dependency>
|
| 162 |
|
| 163 | <dependency>
|
| 164 | <groupId>commons-codec</groupId>
|
| 165 | <artifactId>commons-codec</artifactId>
|
| 166 | <version>1.6</version>
|
| 167 | </dependency>
|
| 168 |
|
| 169 | <dependency>
|
| 170 | <groupId>org.mozilla</groupId>
|
| 171 | <artifactId>rhino</artifactId>
|
| 172 | <version>1.7R3</version>
|
| 173 | </dependency>
|
| 174 | <dependency>
|
| 175 | <groupId>org.apache.james</groupId>
|
| 176 | <artifactId>apache-mime4j-core</artifactId>
|
| 177 | <version>0.7</version>
|
| 178 | </dependency>
|
| 179 | <dependency>
|
| 180 | <groupId>org.apache.httpcomponents</groupId>
|
| 181 | <artifactId>httpclient</artifactId>
|
| 182 | <version>4.2.3</version>
|
| 183 | </dependency>
|
| 184 | <dependency>
|
| 185 | <groupId>org.sonatype.http-testing-harness</groupId>
|
| 186 | <artifactId>junit-runner</artifactId>
|
| 187 | <version>0.11</version>
|
| 188 | </dependency>
|
| 189 |
|
| 190 |
|
| 191 | <dependency>
|
| 192 | <groupId>log4j</groupId>
|
| 193 | <artifactId>log4j</artifactId>
|
| 194 | <version>1.2.17</version>
|
| 195 | <scope>compile</scope>
|
| 196 | </dependency>
|
| 197 | </dependencies>
|
| 198 |
|
| 199 | <build>
|
| 200 | <finalName>datarouter-node</finalName>
|
| 201 | <resources>
|
| 202 | <resource>
|
| 203 | <directory>src/main/resources</directory>
|
| 204 | <filtering>true</filtering>
|
| 205 | <includes>
|
| 206 | <include>**/*.properties</include>
|
| 207 | </includes>
|
| 208 | </resource>
|
| 209 | <resource>
|
| 210 | <directory>src/main/resources</directory>
|
| 211 | <filtering>true</filtering>
|
| 212 | <includes>
|
| 213 | <include>**/EelfMessages.properties</include>
|
| 214 | </includes>
|
| 215 | </resource>
|
| 216 | <resource>
|
| 217 | <directory>src/main/resources</directory>
|
| 218 | <filtering>true</filtering>
|
| 219 | <includes>
|
| 220 | <include>**/log4j.properties</include>
|
| 221 | </includes>
|
| 222 | </resource>
|
| 223 |
|
| 224 | </resources>
|
| 225 | <plugins>
|
| 226 | <plugin>
|
| 227 | <groupId>org.apache.maven.plugins</groupId>
|
| 228 | <artifactId>maven-compiler-plugin</artifactId>
|
| 229 | <configuration>
|
| 230 | <archive>
|
| 231 | <manifest>
|
sg481n | e4b20cc | 2017-08-23 16:30:52 -0400 | [diff] [blame] | 232 | <mainClass>org.onap.datarouter.node.NodeMain</mainClass>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 233 |
|
| 234 | </manifest>
|
| 235 | </archive>
|
| 236 |
|
| 237 | <source>1.8</source>
|
| 238 | <target>1.8</target>
|
| 239 | </configuration>
|
| 240 | <version>3.6.0</version>
|
| 241 | </plugin>
|
| 242 | <plugin>
|
| 243 | <artifactId>maven-assembly-plugin</artifactId>
|
| 244 | <version>2.4</version>
|
| 245 | <configuration>
|
| 246 | <descriptorRefs>
|
| 247 | <descriptorRef>jar-with-dependencies</descriptorRef>
|
| 248 | </descriptorRefs>
|
| 249 | <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
|
| 250 | <archive>
|
| 251 |
|
| 252 | <manifest>
|
| 253 | <addClasspath>true</addClasspath>
|
sg481n | e4b20cc | 2017-08-23 16:30:52 -0400 | [diff] [blame] | 254 | <mainClass>org.onap.datarouter.node.NodeMain</mainClass>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 255 | </manifest>
|
| 256 | </archive>
|
| 257 | </configuration>
|
| 258 |
|
| 259 | <executions>
|
| 260 | <execution>
|
| 261 | <id>make-assembly</id> <!-- this is used for inheritance merges -->
|
| 262 | <phase>package</phase> <!-- bind to the packaging phase -->
|
| 263 | <goals>
|
| 264 | <goal>single</goal>
|
| 265 | </goals>
|
| 266 | </execution>
|
| 267 | </executions>
|
| 268 | </plugin>
|
| 269 | <plugin>
|
| 270 | <groupId>org.apache.maven.plugins</groupId>
|
| 271 | <artifactId>maven-resources-plugin</artifactId>
|
| 272 | <version>2.7</version>
|
| 273 | <executions>
|
| 274 | <execution>
|
| 275 | <id>copy-docker-file</id>
|
| 276 | <phase>package</phase>
|
| 277 | <goals>
|
| 278 | <goal>copy-resources</goal>
|
| 279 | </goals>
|
| 280 | <configuration>
|
| 281 | <outputDirectory>${dockerLocation}</outputDirectory>
|
| 282 | <overwrite>true</overwrite>
|
| 283 | <resources>
|
| 284 | <resource>
|
| 285 | <directory>${basedir}/src/main/resources/docker</directory>
|
| 286 | <filtering>true</filtering>
|
| 287 | <includes>
|
| 288 | <include>**/*</include>
|
| 289 | </includes>
|
| 290 | </resource>
|
| 291 | </resources>
|
| 292 | </configuration>
|
| 293 | </execution>
|
| 294 | <execution>
|
| 295 | <id>copy-resources</id>
|
| 296 | <phase>validate</phase>
|
| 297 | <goals>
|
| 298 | <goal>copy-resources</goal>
|
| 299 | </goals>
|
| 300 | <configuration>
|
| 301 | <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
|
| 302 | <resources>
|
| 303 | <resource>
|
| 304 | <directory>${basedir}/src/main/resources</directory>
|
| 305 | <includes>
|
| 306 | <include>misc/**</include>
|
| 307 | <include>**/**</include>
|
| 308 | </includes>
|
| 309 | </resource>
|
| 310 | </resources>
|
| 311 | </configuration>
|
| 312 | </execution>
|
| 313 | <execution>
|
| 314 | <id>copy-resources-1</id>
|
| 315 | <phase>validate</phase>
|
| 316 | <goals>
|
| 317 | <goal>copy-resources</goal>
|
| 318 | </goals>
|
| 319 | <configuration>
|
| 320 | <outputDirectory>${basedir}/target/opt/app/datartr/self_signed</outputDirectory>
|
| 321 | <resources>
|
| 322 | <resource>
|
| 323 | <directory>${basedir}/self_signed</directory>
|
| 324 | <includes>
|
| 325 | <include>misc/**</include>
|
| 326 | <include>**/**</include>
|
| 327 | </includes>
|
| 328 | </resource>
|
| 329 | </resources>
|
| 330 | </configuration>
|
| 331 | </execution>
|
| 332 | </executions>
|
| 333 | </plugin>
|
| 334 | <plugin>
|
| 335 | <groupId>com.spotify</groupId>
|
| 336 | <artifactId>docker-maven-plugin</artifactId>
|
| 337 | <version>0.4.11</version>
|
| 338 | <configuration>
|
| 339 | <imageName>datarouter-node</imageName>
|
| 340 | <dockerDirectory>${dockerLocation}</dockerDirectory>
|
| 341 | <serverId>docker-hub</serverId>
|
| 342 | <registryUrl>https://${docker.registry}</registryUrl>
|
| 343 | <imageTags>
|
| 344 | <imageTag>${project.version}</imageTag>
|
| 345 | <imageTag>latest</imageTag>
|
| 346 | </imageTags>
|
| 347 | <forceTags>true</forceTags>
|
| 348 | </configuration>
|
| 349 | </plugin>
|
| 350 |
|
| 351 | <plugin>
|
| 352 | <groupId>org.apache.maven.plugins</groupId>
|
| 353 | <artifactId>maven-dependency-plugin</artifactId>
|
| 354 | <version>2.10</version>
|
| 355 | <executions>
|
| 356 | <execution>
|
| 357 | <id>copy-dependencies</id>
|
| 358 | <phase>package</phase>
|
| 359 | <goals>
|
| 360 | <goal>copy-dependencies</goal>
|
| 361 | </goals>
|
| 362 | <configuration>
|
| 363 | <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
|
| 364 | <overWriteReleases>false</overWriteReleases>
|
| 365 | <overWriteSnapshots>false</overWriteSnapshots>
|
| 366 | <overWriteIfNewer>true</overWriteIfNewer>
|
| 367 | </configuration>
|
| 368 | </execution>
|
| 369 | </executions>
|
| 370 | </plugin>
|
| 371 | <plugin>
|
| 372 | <groupId>org.apache.maven.plugins</groupId>
|
| 373 | <artifactId>maven-javadoc-plugin</artifactId>
|
| 374 | <configuration>
|
| 375 | <failOnError>false</failOnError>
|
| 376 | </configuration>
|
| 377 | <executions>
|
| 378 | <execution>
|
| 379 | <id>attach-javadocs</id>
|
| 380 | <goals>
|
| 381 | <goal>jar</goal>
|
| 382 | </goals>
|
| 383 | </execution>
|
| 384 | </executions>
|
| 385 | </plugin>
|
| 386 |
|
| 387 |
|
| 388 | <plugin>
|
| 389 | <groupId>org.apache.maven.plugins</groupId>
|
| 390 | <artifactId>maven-source-plugin</artifactId>
|
| 391 | <version>2.2.1</version>
|
| 392 | <executions>
|
| 393 | <execution>
|
| 394 | <id>attach-sources</id>
|
| 395 | <goals>
|
| 396 | <goal>jar-no-fork</goal>
|
| 397 | </goals>
|
| 398 | </execution>
|
| 399 | </executions>
|
sg481n | e4b20cc | 2017-08-23 16:30:52 -0400 | [diff] [blame] | 400 | </plugin>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 401 |
|
| 402 | <plugin>
|
| 403 | <groupId>org.codehaus.mojo</groupId>
|
| 404 | <artifactId>cobertura-maven-plugin</artifactId>
|
| 405 | <version>2.7</version>
|
| 406 | <configuration>
|
| 407 | <formats>
|
| 408 | <format>html</format>
|
| 409 | <format>xml</format>
|
| 410 | </formats>
|
| 411 | </configuration>
|
| 412 | </plugin>
|
sg481n | e4b20cc | 2017-08-23 16:30:52 -0400 | [diff] [blame] | 413 |
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 414 | </plugins>
|
| 415 | </build>
|
sg481n | e4b20cc | 2017-08-23 16:30:52 -0400 | [diff] [blame] | 416 | <distributionManagement>
|
| 417 | <repository>
|
| 418 | <id>ecomp-releases</id>
|
| 419 | <name>AAF Release Repository</name>
|
| 420 | <url>${nexusproxy}${releaseNexusPath}</url>
|
| 421 | </repository>
|
| 422 | <snapshotRepository>
|
| 423 | <id>ecomp-snapshots</id>
|
| 424 | <name>AAF Snapshot Repository</name>
|
| 425 | <url>${nexusproxy}${snapshotNexusPath}</url>
|
| 426 | </snapshotRepository>
|
| 427 | <site>
|
| 428 | <id>ecomp-site</id>
|
| 429 | <url>dav:${nexusproxy}${sitePath}</url>
|
| 430 | </site>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 431 | </distributionManagement>
|
sg481n | e4b20cc | 2017-08-23 16:30:52 -0400 | [diff] [blame] | 432 | <pluginRepositories>
|
| 433 | <pluginRepository>
|
| 434 | <id>onap-plugin-snapshots</id>
|
| 435 | <url>https://nexus.onap.org/content/repositories/snapshots/</url>
|
| 436 | </pluginRepository>
|
| 437 | </pluginRepositories>
|
| 438 | <repositories>
|
| 439 | <repository>
|
| 440 | <id>central</id>
|
| 441 | <name>Maven 2 repository 2</name>
|
| 442 | <url>http://repo2.maven.org/maven2/</url>
|
| 443 | </repository>
|
| 444 | <repository>
|
| 445 | <id>onap-jar-snapshots</id>
|
| 446 | <url>https://nexus.onap.org/content/repositories/snapshots</url>
|
| 447 | </repository>
|
| 448 | <repository>
|
| 449 | <id>spring-repo</id>
|
| 450 | <name>Spring repo</name>
|
| 451 | <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
|
| 452 | </repository>
|
| 453 | <repository>
|
| 454 | <id>repository.jboss.org-public</id>
|
| 455 | <name>JBoss.org Maven repository</name>
|
| 456 | <url>https://repository.jboss.org/nexus/content/groups/public</url>
|
| 457 | </repository>
|
| 458 | </repositories>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 459 |
|
sg481n | e4b20cc | 2017-08-23 16:30:52 -0400 | [diff] [blame] | 460 |
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 461 |
|
| 462 | </project>
|