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.
|
Piotr Darosz | 5a41037 | 2018-10-03 14:31:25 +0200 | [diff] [blame] | 6 | * Modifications Copyright (C) 2018 Nokia. All rights reserved.
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [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
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 11 | *
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 12 | * http://www.apache.org/licenses/LICENSE-2.0
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 13 | *
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 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 | -->
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 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>
|
Piotr Darosz | 5a41037 | 2018-10-03 14:31:25 +0200 | [diff] [blame] | 29 | <version>1.0.3-SNAPSHOT</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 30 | <relativePath>../pom.xml</relativePath>
|
| 31 | </parent>
|
| 32 | <artifactId>datarouter-prov</artifactId>
|
| 33 | <packaging>jar</packaging>
|
| 34 | <name>datarouter-prov</name>
|
| 35 | <url>https://github.com/att/DMAAP_DATAROUTER</url>
|
| 36 | <properties>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 37 | <sonar.language>java</sonar.language>
|
| 38 | <sonar.skip>false</sonar.skip>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 39 | <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 40 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
|
ezcoxem | da23b25 | 2018-07-31 15:54:56 +0100 | [diff] [blame] | 41 |
|
| 42 | <docker.location>${basedir}/target/${artifactId}</docker.location>
|
| 43 | <datarouter.prov.image.name>onap/dmaap/datarouter-prov</datarouter.prov.image.name>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 44 | </properties>
|
| 45 | <dependencies>
|
| 46 | <dependency>
|
Paul Dennehy | 1cac6d2 | 2018-09-20 10:15:08 +0100 | [diff] [blame] | 47 | <groupId>xml-apis</groupId>
|
| 48 | <artifactId>xml-apis</artifactId>
|
| 49 | <version>${xml-apis.version}</version>
|
| 50 | </dependency>
|
| 51 | <dependency>
|
Ronan Keogh | f36b8de | 2018-10-10 17:20:59 +0100 | [diff] [blame^] | 52 | <groupId>org.dom4j</groupId>
|
edepaul | 82105b5 | 2018-09-10 09:39:10 +0100 | [diff] [blame] | 53 | <artifactId>dom4j</artifactId>
|
| 54 | <version>${dom4j.version}</version>
|
| 55 | </dependency>
|
| 56 | <dependency>
|
edepaul | 12c71a5 | 2018-09-07 16:27:01 +0100 | [diff] [blame] | 57 | <groupId>commons-codec</groupId>
|
| 58 | <artifactId>commons-codec</artifactId>
|
| 59 | <version>${commons-codec.version}</version>
|
| 60 | </dependency>
|
| 61 | <dependency>
|
| 62 | <groupId>com.google.guava</groupId>
|
| 63 | <artifactId>guava</artifactId>
|
| 64 | <version>${google.guava.version}</version>
|
| 65 | </dependency>
|
| 66 | <dependency>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 67 | <groupId>ch.qos.logback</groupId>
|
| 68 | <artifactId>logback-classic</artifactId>
|
econwar | d6e999b | 2018-09-05 16:10:01 +0000 | [diff] [blame] | 69 | <version>${qos.logback.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 70 | <scope>compile</scope>
|
| 71 | </dependency>
|
| 72 | <dependency>
|
| 73 | <groupId>ch.qos.logback</groupId>
|
| 74 | <artifactId>logback-core</artifactId>
|
econwar | d6e999b | 2018-09-05 16:10:01 +0000 | [diff] [blame] | 75 | <version>${qos.logback.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 76 | <scope>compile</scope>
|
| 77 | </dependency>
|
| 78 | <dependency>
|
Sunil Unnava | 1027909 | 2018-02-27 02:32:46 -0500 | [diff] [blame] | 79 | <groupId>com.thoughtworks.xstream</groupId>
|
| 80 | <artifactId>xstream</artifactId>
|
Ronan Keogh | 09a9e56 | 2018-08-17 11:20:54 +0100 | [diff] [blame] | 81 | <version>${thoughtworks.version}</version>
|
Sunil Unnava | 1027909 | 2018-02-27 02:32:46 -0500 | [diff] [blame] | 82 | </dependency>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 83 | <dependency>
|
| 84 | <groupId>org.json</groupId>
|
| 85 | <artifactId>json</artifactId>
|
| 86 | <version>20160810</version>
|
| 87 | </dependency>
|
| 88 | <dependency>
|
| 89 | <groupId>javax.mail</groupId>
|
| 90 | <artifactId>javax.mail-api</artifactId>
|
edepaul | 555b7fc | 2018-09-11 08:07:16 +0100 | [diff] [blame] | 91 | <version>${javax.mail-api.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 92 | </dependency>
|
| 93 | <dependency>
|
| 94 | <groupId>com.att.eelf</groupId>
|
| 95 | <artifactId>eelf-core</artifactId>
|
| 96 | <version>0.0.1</version>
|
| 97 | </dependency>
|
| 98 | <dependency>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 99 | <groupId>org.eclipse.jetty</groupId>
|
| 100 | <artifactId>jetty-server</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 101 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 102 | </dependency>
|
| 103 | <dependency>
|
| 104 | <groupId>org.eclipse.jetty</groupId>
|
| 105 | <artifactId>jetty-continuation</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 106 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 107 | </dependency>
|
| 108 | <dependency>
|
| 109 | <groupId>org.eclipse.jetty</groupId>
|
| 110 | <artifactId>jetty-util</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 111 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 112 | </dependency>
|
| 113 | <dependency>
|
| 114 | <groupId>org.eclipse.jetty</groupId>
|
| 115 | <artifactId>jetty-deploy</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 116 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 117 | </dependency>
|
| 118 | <dependency>
|
| 119 | <groupId>org.eclipse.jetty</groupId>
|
| 120 | <artifactId>jetty-servlet</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 121 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 122 | </dependency>
|
| 123 | <dependency>
|
| 124 | <groupId>org.eclipse.jetty</groupId>
|
| 125 | <artifactId>jetty-servlets</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 126 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 127 | </dependency>
|
| 128 | <dependency>
|
| 129 | <groupId>org.eclipse.jetty</groupId>
|
| 130 | <artifactId>jetty-http</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 131 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 132 | </dependency>
|
| 133 | <dependency>
|
| 134 | <groupId>org.eclipse.jetty</groupId>
|
| 135 | <artifactId>jetty-security</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 136 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 137 | </dependency>
|
| 138 | <dependency>
|
| 139 | <groupId>org.eclipse.jetty</groupId>
|
| 140 | <artifactId>jetty-websocket</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 141 | <version>${jetty.websocket.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 142 | </dependency>
|
| 143 | <dependency>
|
| 144 | <groupId>org.eclipse.jetty</groupId>
|
| 145 | <artifactId>jetty-io</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 146 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 147 | </dependency>
|
| 148 | <dependency>
|
| 149 | <groupId>org.apache.commons</groupId>
|
| 150 | <artifactId>commons-io</artifactId>
|
| 151 | <version>1.3.2</version>
|
| 152 | </dependency>
|
| 153 | <dependency>
|
| 154 | <groupId>commons-lang</groupId>
|
| 155 | <artifactId>commons-lang</artifactId>
|
| 156 | <version>2.4</version>
|
| 157 | </dependency>
|
| 158 | <dependency>
|
| 159 | <groupId>commons-io</groupId>
|
| 160 | <artifactId>commons-io</artifactId>
|
| 161 | <version>2.1</version>
|
| 162 | <scope>compile</scope>
|
| 163 | </dependency>
|
| 164 | <dependency>
|
| 165 | <groupId>org.apache.httpcomponents</groupId>
|
| 166 | <artifactId>httpcore</artifactId>
|
| 167 | <version>4.4</version>
|
| 168 | </dependency>
|
| 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.5.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 | <exclusions>
|
| 189 | <exclusion>
|
| 190 | <groupId>org.databene</groupId>
|
| 191 | <artifactId>contiperf</artifactId>
|
| 192 | </exclusion>
|
| 193 | </exclusions>
|
| 194 | </dependency>
|
| 195 | <dependency>
|
| 196 | <groupId>junit</groupId>
|
| 197 | <artifactId>junit</artifactId>
|
| 198 | <version>4.10</version>
|
| 199 | <scope>test</scope>
|
| 200 | </dependency>
|
| 201 | <dependency>
|
| 202 | <groupId>org.mockito</groupId>
|
| 203 | <artifactId>mockito-core</artifactId>
|
| 204 | <version>1.10.19</version>
|
| 205 | <scope>test</scope>
|
| 206 | </dependency>
|
| 207 | <dependency>
|
| 208 | <groupId>org.powermock</groupId>
|
| 209 | <artifactId>powermock-module-junit4</artifactId>
|
| 210 | <version>1.6.4</version>
|
| 211 | <scope>test</scope>
|
| 212 | </dependency>
|
| 213 | <dependency>
|
| 214 | <groupId>org.powermock</groupId>
|
| 215 | <artifactId>powermock-api-mockito</artifactId>
|
| 216 | <version>1.6.4</version>
|
| 217 | <scope>test</scope>
|
| 218 | </dependency>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 219 | <dependency>
|
esobmar | dadcc32 | 2018-08-10 16:59:25 +0100 | [diff] [blame] | 220 | <groupId>org.apache.commons</groupId>
|
| 221 | <artifactId>commons-lang3</artifactId>
|
| 222 | <version>3.0</version>
|
| 223 | </dependency>
|
| 224 | <dependency>
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 225 | <groupId>org.mariadb.jdbc</groupId>
|
| 226 | <artifactId>mariadb-java-client</artifactId>
|
| 227 | <version>2.2.5</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 228 | </dependency>
|
| 229 | <dependency>
|
| 230 | <groupId>org.eclipse.jetty.cdi</groupId>
|
| 231 | <artifactId>cdi-websocket</artifactId>
|
Ronan Keogh | 09a9e56 | 2018-08-17 11:20:54 +0100 | [diff] [blame] | 232 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 233 | </dependency>
|
| 234 | <dependency>
|
| 235 | <groupId>log4j</groupId>
|
| 236 | <artifactId>log4j</artifactId>
|
| 237 | <version>1.2.17</version>
|
| 238 | <scope>compile</scope>
|
| 239 | </dependency>
|
econwar | 8ef486f | 2018-08-31 11:36:11 +0000 | [diff] [blame] | 240 | <dependency>
|
| 241 | <groupId>com.h2database</groupId>
|
| 242 | <artifactId>h2</artifactId>
|
| 243 | <version>1.4.197</version>
|
| 244 | </dependency>
|
| 245 | <dependency>
|
| 246 | <groupId>org.hibernate</groupId>
|
| 247 | <artifactId>hibernate-entitymanager</artifactId>
|
| 248 | <version>5.2.9.Final</version>
|
| 249 | </dependency>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 250 | </dependencies>
|
ezcoxem | da23b25 | 2018-07-31 15:54:56 +0100 | [diff] [blame] | 251 | <profiles>
|
| 252 | <profile>
|
| 253 | <id>docker</id>
|
| 254 | <properties>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 255 | <skipDockerBuild>false</skipDockerBuild>
|
| 256 | <skipDockerTag>false</skipDockerTag>
|
| 257 | <skipTests>true</skipTests>
|
ezcoxem | da23b25 | 2018-07-31 15:54:56 +0100 | [diff] [blame] | 258 | </properties>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 259 | <build>
|
| 260 | <plugins>
|
| 261 | <plugin>
|
| 262 | <groupId>com.spotify</groupId>
|
| 263 | <artifactId>docker-maven-plugin</artifactId>
|
| 264 | <version>1.0.0</version>
|
| 265 | <configuration>
|
| 266 | <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}</imageName>
|
Piotr Darosz | 5a41037 | 2018-10-03 14:31:25 +0200 | [diff] [blame] | 267 | <baseImage>java:8</baseImage>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 268 | <serverId>${onap.nexus.dockerregistry.daily}</serverId>
|
| 269 | <skipDockerBuild>false</skipDockerBuild>
|
| 270 | <imageTags>
|
| 271 | <imageTag>${project.version}</imageTag>
|
| 272 | <imageTag>latest</imageTag>
|
| 273 | </imageTags>
|
| 274 | <forceTags>true</forceTags>
|
Piotr Darosz | 5a41037 | 2018-10-03 14:31:25 +0200 | [diff] [blame] | 275 | <entryPoint>["/startup.sh", "start"]</entryPoint>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 276 | <resources>
|
| 277 | <resource>
|
Piotr Darosz | 5a41037 | 2018-10-03 14:31:25 +0200 | [diff] [blame] | 278 | <targetPath>/opt</targetPath>
|
| 279 | <directory>${project.build.directory}/opt</directory>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 280 | </resource>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 281 | <resource>
|
| 282 | <targetPath>/</targetPath>
|
Piotr Darosz | 5a41037 | 2018-10-03 14:31:25 +0200 | [diff] [blame] | 283 | <directory>${docker.location}</directory>
|
| 284 | <include>startup.sh</include>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 285 | </resource>
|
| 286 | </resources>
|
Piotr Darosz | 5a41037 | 2018-10-03 14:31:25 +0200 | [diff] [blame] | 287 | <runs>
|
| 288 | <run>chmod 0700 /startup.sh</run>
|
| 289 | </runs>
|
| 290 | <exposes>
|
| 291 | <expose>8080</expose>
|
| 292 | <expose>8443</expose>
|
| 293 | </exposes>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 294 | </configuration>
|
| 295 | </plugin>
|
| 296 | </plugins>
|
| 297 | </build>
|
ezcoxem | da23b25 | 2018-07-31 15:54:56 +0100 | [diff] [blame] | 298 | </profile>
|
| 299 | </profiles>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 300 | <build>
|
| 301 | <finalName>datarouter-prov</finalName>
|
| 302 | <resources>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 303 | <resource>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 304 | <directory>src/main/resources</directory>
|
| 305 | <filtering>true</filtering>
|
| 306 | <includes>
|
| 307 | <include>**/*.properties</include>
|
| 308 | </includes>
|
| 309 | </resource>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 310 | <resource>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 311 | <directory>src/main/resources</directory>
|
| 312 | <filtering>true</filtering>
|
| 313 | <includes>
|
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 314 | <include>**/provserver.properties</include>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 315 | </includes>
|
| 316 | </resource>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 317 | <resource>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 318 | <directory>src/main/resources</directory>
|
| 319 | <filtering>true</filtering>
|
| 320 | <includes>
|
| 321 | <include>**/EelfMessages.properties</include>
|
| 322 | </includes>
|
| 323 | </resource>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 324 | <resource>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 325 | <directory>src/main/resources</directory>
|
| 326 | <filtering>true</filtering>
|
| 327 | <includes>
|
| 328 | <include>**/log4j.properties</include>
|
| 329 | </includes>
|
| 330 | </resource>
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 331 | <resource>
|
| 332 | <directory>src/test/resources</directory>
|
| 333 | <filtering>true</filtering>
|
| 334 | <includes>
|
| 335 | <include>**/log4j.properties</include>
|
| 336 | </includes>
|
| 337 | </resource>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 338 | </resources>
|
| 339 | <plugins>
|
| 340 | <plugin>
|
| 341 | <artifactId>maven-assembly-plugin</artifactId>
|
| 342 | <version>2.4</version>
|
| 343 | <configuration>
|
| 344 | <descriptorRefs>
|
| 345 | <descriptorRef>jar-with-dependencies</descriptorRef>
|
| 346 | </descriptorRefs>
|
| 347 | <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
|
| 348 | <archive>
|
| 349 | <manifest>
|
| 350 | <addClasspath>true</addClasspath>
|
| 351 | <mainClass>org.onap.dmaap.datarouter.provisioning.Main</mainClass>
|
| 352 | </manifest>
|
| 353 | </archive>
|
| 354 | </configuration>
|
| 355 | <executions>
|
| 356 | <execution>
|
| 357 | <id>make-assembly</id>
|
| 358 | <!-- this is used for inheritance merges -->
|
| 359 | <phase>package</phase>
|
| 360 | <!-- bind to the packaging phase -->
|
| 361 | <goals>
|
| 362 | <goal>single</goal>
|
| 363 | </goals>
|
| 364 | </execution>
|
| 365 | </executions>
|
| 366 | </plugin>
|
| 367 | <plugin>
|
| 368 | <groupId>org.apache.maven.plugins</groupId>
|
| 369 | <artifactId>maven-compiler-plugin</artifactId>
|
| 370 | <configuration>
|
| 371 | <source>1.8</source>
|
| 372 | <target>1.8</target>
|
| 373 | </configuration>
|
| 374 | <version>3.6.0</version>
|
| 375 | </plugin>
|
| 376 | <plugin>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 377 | <artifactId>maven-resources-plugin</artifactId>
|
| 378 | <version>2.7</version>
|
| 379 | <executions>
|
| 380 | <execution>
|
| 381 | <id>copy-docker-file</id>
|
| 382 | <phase>package</phase>
|
| 383 | <goals>
|
| 384 | <goal>copy-resources</goal>
|
| 385 | </goals>
|
| 386 | <configuration>
|
| 387 | <outputDirectory>${docker.location}</outputDirectory>
|
| 388 | <overwrite>true</overwrite>
|
| 389 | <resources>
|
| 390 | <resource>
|
| 391 | <directory>${basedir}/src/main/resources/docker</directory>
|
| 392 | <filtering>true</filtering>
|
| 393 | <includes>
|
| 394 | <include>**/*</include>
|
| 395 | </includes>
|
| 396 | </resource>
|
| 397 | </resources>
|
| 398 | </configuration>
|
| 399 | </execution>
|
| 400 | <execution>
|
| 401 | <id>copy-resources-1</id>
|
| 402 | <phase>validate</phase>
|
| 403 | <goals>
|
| 404 | <goal>copy-resources</goal>
|
| 405 | </goals>
|
| 406 | <configuration>
|
| 407 | <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
|
| 408 | <resources>
|
| 409 | <resource>
|
| 410 | <directory>${project.basedir}/src/main/resources</directory>
|
| 411 | <includes>
|
| 412 | <include>**/*.jar</include>
|
| 413 | </includes>
|
| 414 | </resource>
|
| 415 | </resources>
|
| 416 | </configuration>
|
| 417 | </execution>
|
| 418 | <execution>
|
| 419 | <id>copy-resources-2</id>
|
| 420 | <phase>validate</phase>
|
| 421 | <goals>
|
| 422 | <goal>copy-resources</goal>
|
| 423 | </goals>
|
| 424 | <configuration>
|
| 425 | <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
|
| 426 | <resources>
|
| 427 | <resource>
|
| 428 | <directory>${basedir}/src/main/resources</directory>
|
| 429 | <includes>
|
| 430 | <include>misc/**</include>
|
| 431 | <include>**/**</include>
|
| 432 | </includes>
|
| 433 | </resource>
|
| 434 | </resources>
|
| 435 | </configuration>
|
| 436 | </execution>
|
| 437 | <execution>
|
| 438 | <id>copy-resources-3</id>
|
| 439 | <phase>validate</phase>
|
| 440 | <goals>
|
| 441 | <goal>copy-resources</goal>
|
| 442 | </goals>
|
| 443 | <configuration>
|
| 444 | <outputDirectory>${basedir}/target/opt/app/datartr</outputDirectory>
|
| 445 | <resources>
|
| 446 | <resource>
|
| 447 | <directory>${basedir}/data</directory>
|
| 448 | <includes>
|
| 449 | <include>misc/**</include>
|
| 450 | <include>**/**</include>
|
| 451 | </includes>
|
| 452 | </resource>
|
| 453 | </resources>
|
| 454 | </configuration>
|
| 455 | </execution>
|
| 456 | <execution>
|
| 457 | <id>copy-resources-4</id>
|
| 458 | <phase>validate</phase>
|
| 459 | <goals>
|
| 460 | <goal>copy-resources</goal>
|
| 461 | </goals>
|
| 462 | <configuration>
|
Ronan Keogh | ce73ff5 | 2018-08-23 11:04:45 +0100 | [diff] [blame] | 463 | <outputDirectory>${basedir}/target/opt/app/datartr/aaf_certs</outputDirectory>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 464 | <resources>
|
| 465 | <resource>
|
Ronan Keogh | ce73ff5 | 2018-08-23 11:04:45 +0100 | [diff] [blame] | 466 | <directory>${basedir}/aaf_certs</directory>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 467 | <includes>
|
| 468 | <include>misc/**</include>
|
| 469 | <include>**/**</include>
|
| 470 | </includes>
|
| 471 | </resource>
|
| 472 | </resources>
|
| 473 | </configuration>
|
| 474 | </execution>
|
| 475 | </executions>
|
| 476 | </plugin>
|
| 477 | <plugin>
|
| 478 | <groupId>org.apache.maven.plugins</groupId>
|
| 479 | <artifactId>maven-dependency-plugin</artifactId>
|
| 480 | <version>2.10</version>
|
| 481 | <executions>
|
| 482 | <execution>
|
| 483 | <id>copy-dependencies</id>
|
| 484 | <phase>package</phase>
|
| 485 | <goals>
|
| 486 | <goal>copy-dependencies</goal>
|
| 487 | </goals>
|
| 488 | <configuration>
|
| 489 | <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
|
| 490 | <overWriteReleases>false</overWriteReleases>
|
| 491 | <overWriteSnapshots>false</overWriteSnapshots>
|
| 492 | <overWriteIfNewer>true</overWriteIfNewer>
|
| 493 | </configuration>
|
| 494 | </execution>
|
| 495 | </executions>
|
| 496 | </plugin>
|
| 497 | <plugin>
|
| 498 | <groupId>org.apache.maven.plugins</groupId>
|
| 499 | <artifactId>maven-javadoc-plugin</artifactId>
|
| 500 | <configuration>
|
| 501 | <failOnError>false</failOnError>
|
| 502 | </configuration>
|
| 503 | <executions>
|
| 504 | <execution>
|
| 505 | <id>attach-javadocs</id>
|
| 506 | <goals>
|
| 507 | <goal>jar</goal>
|
| 508 | </goals>
|
| 509 | </execution>
|
| 510 | </executions>
|
| 511 | </plugin>
|
| 512 | <plugin>
|
| 513 | <groupId>org.apache.maven.plugins</groupId>
|
| 514 | <artifactId>maven-source-plugin</artifactId>
|
| 515 | <version>2.2.1</version>
|
| 516 | <executions>
|
| 517 | <execution>
|
| 518 | <id>attach-sources</id>
|
| 519 | <goals>
|
| 520 | <goal>jar-no-fork</goal>
|
| 521 | </goals>
|
| 522 | </execution>
|
| 523 | </executions>
|
| 524 | </plugin>
|
| 525 | <plugin>
|
| 526 | <groupId>org.codehaus.mojo</groupId>
|
| 527 | <artifactId>cobertura-maven-plugin</artifactId>
|
| 528 | <version>2.7</version>
|
| 529 | <configuration>
|
| 530 | <formats>
|
| 531 | <format>html</format>
|
| 532 | <format>xml</format>
|
| 533 | </formats>
|
ezcoxem | da23b25 | 2018-07-31 15:54:56 +0100 | [diff] [blame] | 534 | <check/>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 535 | </configuration>
|
| 536 | </plugin>
|
| 537 | <plugin>
|
| 538 | <groupId>org.sonatype.plugins</groupId>
|
| 539 | <artifactId>nexus-staging-maven-plugin</artifactId>
|
| 540 | <version>1.6.7</version>
|
| 541 | <extensions>true</extensions>
|
| 542 | <configuration>
|
eronkeo | dcb5aef | 2018-08-07 16:58:43 +0100 | [diff] [blame] | 543 | <nexusUrl>${onap.nexus.url}</nexusUrl>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 544 | <stagingProfileId>176c31dfe190a</stagingProfileId>
|
| 545 | <serverId>ecomp-staging</serverId>
|
| 546 | </configuration>
|
| 547 | </plugin>
|
| 548 | <plugin>
|
| 549 | <groupId>org.jacoco</groupId>
|
| 550 | <artifactId>jacoco-maven-plugin</artifactId>
|
| 551 | <version>${jacoco.version}</version>
|
| 552 | <configuration>
|
| 553 | <excludes>
|
| 554 | <exclude>**/gen/**</exclude>
|
| 555 | <exclude>**/generated-sources/**</exclude>
|
| 556 | <exclude>**/yang-gen/**</exclude>
|
| 557 | <exclude>**/pax/**</exclude>
|
| 558 | </excludes>
|
| 559 | </configuration>
|
| 560 | <executions>
|
| 561 | <execution>
|
| 562 | <id>pre-unit-test</id>
|
| 563 | <goals>
|
| 564 | <goal>prepare-agent</goal>
|
| 565 | </goals>
|
| 566 | <configuration>
|
| 567 | <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
|
| 568 | <propertyName>surefireArgLine</propertyName>
|
| 569 | </configuration>
|
| 570 | </execution>
|
| 571 | <execution>
|
| 572 | <id>post-unit-test</id>
|
| 573 | <phase>test</phase>
|
| 574 | <goals>
|
| 575 | <goal>report</goal>
|
| 576 | </goals>
|
| 577 | <configuration>
|
| 578 | <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
|
| 579 | <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
|
| 580 | </configuration>
|
| 581 | </execution>
|
| 582 | <execution>
|
| 583 | <id>pre-integration-test</id>
|
| 584 | <phase>pre-integration-test</phase>
|
| 585 | <goals>
|
| 586 | <goal>prepare-agent</goal>
|
| 587 | </goals>
|
| 588 | <configuration>
|
| 589 | <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
|
| 590 | <propertyName>failsafeArgLine</propertyName>
|
| 591 | </configuration>
|
| 592 | </execution>
|
| 593 | <execution>
|
| 594 | <id>post-integration-test</id>
|
| 595 | <phase>post-integration-test</phase>
|
| 596 | <goals>
|
| 597 | <goal>report</goal>
|
| 598 | </goals>
|
| 599 | <configuration>
|
| 600 | <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
|
| 601 | <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
|
| 602 | </configuration>
|
| 603 | </execution>
|
| 604 | </executions>
|
| 605 | </plugin>
|
| 606 | </plugins>
|
| 607 | </build>
|
ezcoxem | da23b25 | 2018-07-31 15:54:56 +0100 | [diff] [blame] | 608 | </project>
|