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>
|
econwar | 7704d30 | 2019-04-03 10:40:26 +0000 | [diff] [blame] | 29 | <version>2.1.0-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>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 44 |
|
| 45 | <timestamp>${maven.build.timestamp}</timestamp>
|
| 46 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
|
| 47 |
|
| 48 | <docker.verbose>true</docker.verbose>
|
| 49 | <docker.apiVersion>1.23</docker.apiVersion>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 50 | </properties>
|
| 51 | <dependencies>
|
| 52 | <dependency>
|
Paul Dennehy | 1cac6d2 | 2018-09-20 10:15:08 +0100 | [diff] [blame] | 53 | <groupId>xml-apis</groupId>
|
| 54 | <artifactId>xml-apis</artifactId>
|
| 55 | <version>${xml-apis.version}</version>
|
| 56 | </dependency>
|
| 57 | <dependency>
|
Ronan Keogh | f36b8de | 2018-10-10 17:20:59 +0100 | [diff] [blame] | 58 | <groupId>org.dom4j</groupId>
|
edepaul | 82105b5 | 2018-09-10 09:39:10 +0100 | [diff] [blame] | 59 | <artifactId>dom4j</artifactId>
|
| 60 | <version>${dom4j.version}</version>
|
| 61 | </dependency>
|
| 62 | <dependency>
|
edepaul | 12c71a5 | 2018-09-07 16:27:01 +0100 | [diff] [blame] | 63 | <groupId>commons-codec</groupId>
|
| 64 | <artifactId>commons-codec</artifactId>
|
| 65 | <version>${commons-codec.version}</version>
|
| 66 | </dependency>
|
| 67 | <dependency>
|
| 68 | <groupId>com.google.guava</groupId>
|
| 69 | <artifactId>guava</artifactId>
|
| 70 | <version>${google.guava.version}</version>
|
| 71 | </dependency>
|
| 72 | <dependency>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 73 | <groupId>ch.qos.logback</groupId>
|
| 74 | <artifactId>logback-classic</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>
|
| 79 | <groupId>ch.qos.logback</groupId>
|
| 80 | <artifactId>logback-core</artifactId>
|
econwar | d6e999b | 2018-09-05 16:10:01 +0000 | [diff] [blame] | 81 | <version>${qos.logback.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 82 | <scope>compile</scope>
|
| 83 | </dependency>
|
| 84 | <dependency>
|
Sunil Unnava | 1027909 | 2018-02-27 02:32:46 -0500 | [diff] [blame] | 85 | <groupId>com.thoughtworks.xstream</groupId>
|
| 86 | <artifactId>xstream</artifactId>
|
Ronan Keogh | 09a9e56 | 2018-08-17 11:20:54 +0100 | [diff] [blame] | 87 | <version>${thoughtworks.version}</version>
|
Sunil Unnava | 1027909 | 2018-02-27 02:32:46 -0500 | [diff] [blame] | 88 | </dependency>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 89 | <dependency>
|
| 90 | <groupId>org.json</groupId>
|
| 91 | <artifactId>json</artifactId>
|
| 92 | <version>20160810</version>
|
| 93 | </dependency>
|
| 94 | <dependency>
|
| 95 | <groupId>javax.mail</groupId>
|
| 96 | <artifactId>javax.mail-api</artifactId>
|
edepaul | 555b7fc | 2018-09-11 08:07:16 +0100 | [diff] [blame] | 97 | <version>${javax.mail-api.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 98 | </dependency>
|
| 99 | <dependency>
|
| 100 | <groupId>com.att.eelf</groupId>
|
| 101 | <artifactId>eelf-core</artifactId>
|
| 102 | <version>0.0.1</version>
|
| 103 | </dependency>
|
| 104 | <dependency>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 105 | <groupId>org.eclipse.jetty</groupId>
|
| 106 | <artifactId>jetty-server</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 107 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 108 | </dependency>
|
| 109 | <dependency>
|
| 110 | <groupId>org.eclipse.jetty</groupId>
|
| 111 | <artifactId>jetty-continuation</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 112 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 113 | </dependency>
|
| 114 | <dependency>
|
| 115 | <groupId>org.eclipse.jetty</groupId>
|
| 116 | <artifactId>jetty-util</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 117 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 118 | </dependency>
|
| 119 | <dependency>
|
| 120 | <groupId>org.eclipse.jetty</groupId>
|
| 121 | <artifactId>jetty-deploy</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 122 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 123 | </dependency>
|
| 124 | <dependency>
|
| 125 | <groupId>org.eclipse.jetty</groupId>
|
| 126 | <artifactId>jetty-servlet</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 127 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 128 | </dependency>
|
| 129 | <dependency>
|
| 130 | <groupId>org.eclipse.jetty</groupId>
|
| 131 | <artifactId>jetty-servlets</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 132 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 133 | </dependency>
|
| 134 | <dependency>
|
| 135 | <groupId>org.eclipse.jetty</groupId>
|
| 136 | <artifactId>jetty-http</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 137 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 138 | </dependency>
|
| 139 | <dependency>
|
| 140 | <groupId>org.eclipse.jetty</groupId>
|
| 141 | <artifactId>jetty-security</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 142 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 143 | </dependency>
|
| 144 | <dependency>
|
| 145 | <groupId>org.eclipse.jetty</groupId>
|
| 146 | <artifactId>jetty-websocket</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 147 | <version>${jetty.websocket.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 148 | </dependency>
|
| 149 | <dependency>
|
| 150 | <groupId>org.eclipse.jetty</groupId>
|
| 151 | <artifactId>jetty-io</artifactId>
|
eronkeo | 85129f8 | 2018-08-14 17:58:28 +0100 | [diff] [blame] | 152 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 153 | </dependency>
|
| 154 | <dependency>
|
| 155 | <groupId>org.apache.commons</groupId>
|
| 156 | <artifactId>commons-io</artifactId>
|
| 157 | <version>1.3.2</version>
|
| 158 | </dependency>
|
| 159 | <dependency>
|
| 160 | <groupId>commons-lang</groupId>
|
| 161 | <artifactId>commons-lang</artifactId>
|
| 162 | <version>2.4</version>
|
| 163 | </dependency>
|
| 164 | <dependency>
|
| 165 | <groupId>commons-io</groupId>
|
| 166 | <artifactId>commons-io</artifactId>
|
| 167 | <version>2.1</version>
|
| 168 | <scope>compile</scope>
|
| 169 | </dependency>
|
| 170 | <dependency>
|
| 171 | <groupId>org.apache.httpcomponents</groupId>
|
| 172 | <artifactId>httpcore</artifactId>
|
| 173 | <version>4.4</version>
|
| 174 | </dependency>
|
| 175 | <dependency>
|
| 176 | <groupId>org.mozilla</groupId>
|
| 177 | <artifactId>rhino</artifactId>
|
| 178 | <version>1.7R3</version>
|
| 179 | </dependency>
|
| 180 | <dependency>
|
| 181 | <groupId>org.apache.james</groupId>
|
| 182 | <artifactId>apache-mime4j-core</artifactId>
|
| 183 | <version>0.7</version>
|
| 184 | </dependency>
|
| 185 | <dependency>
|
| 186 | <groupId>org.apache.httpcomponents</groupId>
|
| 187 | <artifactId>httpclient</artifactId>
|
| 188 | <version>4.5.3</version>
|
| 189 | </dependency>
|
| 190 | <dependency>
|
| 191 | <groupId>org.sonatype.http-testing-harness</groupId>
|
| 192 | <artifactId>junit-runner</artifactId>
|
| 193 | <version>0.11</version>
|
| 194 | <exclusions>
|
| 195 | <exclusion>
|
| 196 | <groupId>org.databene</groupId>
|
| 197 | <artifactId>contiperf</artifactId>
|
| 198 | </exclusion>
|
| 199 | </exclusions>
|
| 200 | </dependency>
|
| 201 | <dependency>
|
| 202 | <groupId>junit</groupId>
|
| 203 | <artifactId>junit</artifactId>
|
| 204 | <version>4.10</version>
|
| 205 | <scope>test</scope>
|
| 206 | </dependency>
|
| 207 | <dependency>
|
| 208 | <groupId>org.mockito</groupId>
|
| 209 | <artifactId>mockito-core</artifactId>
|
| 210 | <version>1.10.19</version>
|
| 211 | <scope>test</scope>
|
| 212 | </dependency>
|
| 213 | <dependency>
|
| 214 | <groupId>org.powermock</groupId>
|
| 215 | <artifactId>powermock-module-junit4</artifactId>
|
| 216 | <version>1.6.4</version>
|
| 217 | <scope>test</scope>
|
| 218 | </dependency>
|
| 219 | <dependency>
|
| 220 | <groupId>org.powermock</groupId>
|
| 221 | <artifactId>powermock-api-mockito</artifactId>
|
| 222 | <version>1.6.4</version>
|
| 223 | <scope>test</scope>
|
| 224 | </dependency>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 225 | <dependency>
|
esobmar | dadcc32 | 2018-08-10 16:59:25 +0100 | [diff] [blame] | 226 | <groupId>org.apache.commons</groupId>
|
| 227 | <artifactId>commons-lang3</artifactId>
|
| 228 | <version>3.0</version>
|
| 229 | </dependency>
|
| 230 | <dependency>
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 231 | <groupId>org.mariadb.jdbc</groupId>
|
| 232 | <artifactId>mariadb-java-client</artifactId>
|
| 233 | <version>2.2.5</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 234 | </dependency>
|
| 235 | <dependency>
|
| 236 | <groupId>org.eclipse.jetty.cdi</groupId>
|
| 237 | <artifactId>cdi-websocket</artifactId>
|
Ronan Keogh | 09a9e56 | 2018-08-17 11:20:54 +0100 | [diff] [blame] | 238 | <version>${jetty.version}</version>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 239 | </dependency>
|
| 240 | <dependency>
|
econwar | 8ef486f | 2018-08-31 11:36:11 +0000 | [diff] [blame] | 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>
|
Ronan Keogh | aa56d3a | 2018-10-11 13:37:24 +0100 | [diff] [blame] | 249 | <exclusions>
|
| 250 | <exclusion>
|
| 251 | <groupId>dom4j</groupId>
|
| 252 | <artifactId>dom4j</artifactId>
|
| 253 | </exclusion>
|
| 254 | </exclusions>
|
econwar | 8ef486f | 2018-08-31 11:36:11 +0000 | [diff] [blame] | 255 | </dependency>
|
efiacor | 5775de7 | 2019-03-26 14:29:01 +0000 | [diff] [blame] | 256 | <dependency>
|
| 257 | <groupId>org.onap.aaf.authz</groupId>
|
| 258 | <artifactId>aaf-cadi-aaf</artifactId>
|
| 259 | <version>${aaf-cadi-aaf.version}</version>
|
| 260 | </dependency>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 261 | </dependencies>
|
ezcoxem | da23b25 | 2018-07-31 15:54:56 +0100 | [diff] [blame] | 262 | <profiles>
|
| 263 | <profile>
|
| 264 | <id>docker</id>
|
| 265 | <properties>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 266 | <skipDockerBuild>false</skipDockerBuild>
|
| 267 | <skipDockerTag>false</skipDockerTag>
|
| 268 | <skipTests>true</skipTests>
|
ezcoxem | da23b25 | 2018-07-31 15:54:56 +0100 | [diff] [blame] | 269 | </properties>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 270 | <build>
|
| 271 | <plugins>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 272 |
|
| 273 | <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 274 | <plugin>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 275 | <groupId>org.codehaus.groovy.maven</groupId>
|
| 276 | <artifactId>gmaven-plugin</artifactId>
|
| 277 | <executions>
|
| 278 | <execution>
|
| 279 | <phase>validate</phase>
|
| 280 | <goals>
|
| 281 | <goal>execute</goal>
|
| 282 | </goals>
|
| 283 | <configuration>
|
| 284 | <properties>
|
| 285 | <ver>${project.version}</ver>
|
| 286 | <timestamp>${maven.build.timestamp}</timestamp>
|
| 287 | </properties>
|
| 288 | <source>
|
| 289 | println 'ver: ' + project.properties['ver'];
|
| 290 | if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
|
| 291 | project.properties['dockertag1']=project.properties['ver'] + "-latest";
|
| 292 | project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
|
| 293 | } else {
|
| 294 | project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
|
| 295 | project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
|
| 296 | }
|
| 297 | println 'docker tag 1: ' + project.properties['dockertag1'];
|
| 298 | println 'docker tag 2: ' + project.properties['dockertag2'];
|
| 299 | </source>
|
| 300 | </configuration>
|
| 301 | </execution>
|
| 302 | </executions>
|
| 303 | </plugin>
|
| 304 | <plugin>
|
| 305 | <groupId>io.fabric8</groupId>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 306 | <artifactId>docker-maven-plugin</artifactId>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 307 | <version>0.28.0</version>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 308 | <configuration>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 309 | <verbose>${docker.verbose}</verbose>
|
| 310 | <apiVersion>${docker.apiVersion}</apiVersion>
|
| 311 | <pullRegistry>${docker.pull.registry}</pullRegistry>
|
| 312 | <pushRegistry>${docker.push.registry}</pushRegistry>
|
| 313 | <images>
|
| 314 | <image>
|
| 315 | <name>${datarouter.prov.image.name}</name>
|
| 316 | <build>
|
| 317 | <cleanup>try</cleanup>
|
| 318 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
|
| 319 | <dockerFile>Dockerfile</dockerFile>
|
| 320 | <tags>
|
| 321 | <tag>${dockertag1}</tag>
|
| 322 | <tag>${dockertag2}</tag>
|
| 323 | </tags>
|
| 324 | </build>
|
| 325 | </image>
|
| 326 | </images>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 327 | </configuration>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 328 | <executions>
|
| 329 | <execution>
|
| 330 | <id>generate-images</id>
|
| 331 | <phase>install</phase>
|
| 332 | <goals>
|
| 333 | <goal>build</goal>
|
| 334 | </goals>
|
| 335 | </execution>
|
| 336 | <execution>
|
| 337 | <id>push-images</id>
|
| 338 | <phase>deploy</phase>
|
| 339 | <goals>
|
| 340 | <goal>push</goal>
|
| 341 | </goals>
|
| 342 | </execution>
|
| 343 | </executions>
|
ezcoxem | 28ceb6a | 2018-08-03 15:20:17 +0100 | [diff] [blame] | 344 | </plugin>
|
| 345 | </plugins>
|
| 346 | </build>
|
ezcoxem | da23b25 | 2018-07-31 15:54:56 +0100 | [diff] [blame] | 347 | </profile>
|
| 348 | </profiles>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 349 | <build>
|
| 350 | <finalName>datarouter-prov</finalName>
|
| 351 | <resources>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 352 | <resource>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 353 | <directory>src/main/resources</directory>
|
| 354 | <filtering>true</filtering>
|
| 355 | <includes>
|
| 356 | <include>**/*.properties</include>
|
| 357 | </includes>
|
| 358 | </resource>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 359 | <resource>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 360 | <directory>src/main/resources</directory>
|
| 361 | <filtering>true</filtering>
|
| 362 | <includes>
|
Fiachra Corcoran | 19620eb | 2018-08-27 17:59:42 +0100 | [diff] [blame] | 363 | <include>**/provserver.properties</include>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 364 | </includes>
|
| 365 | </resource>
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 366 | <resource>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 367 | <directory>src/main/resources</directory>
|
| 368 | <filtering>true</filtering>
|
| 369 | <includes>
|
| 370 | <include>**/EelfMessages.properties</include>
|
| 371 | </includes>
|
| 372 | </resource>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 373 | </resources>
|
| 374 | <plugins>
|
| 375 | <plugin>
|
| 376 | <artifactId>maven-assembly-plugin</artifactId>
|
| 377 | <version>2.4</version>
|
| 378 | <configuration>
|
| 379 | <descriptorRefs>
|
| 380 | <descriptorRef>jar-with-dependencies</descriptorRef>
|
| 381 | </descriptorRefs>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 382 | <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 383 | <archive>
|
| 384 | <manifest>
|
| 385 | <addClasspath>true</addClasspath>
|
| 386 | <mainClass>org.onap.dmaap.datarouter.provisioning.Main</mainClass>
|
| 387 | </manifest>
|
| 388 | </archive>
|
| 389 | </configuration>
|
| 390 | <executions>
|
| 391 | <execution>
|
| 392 | <id>make-assembly</id>
|
| 393 | <!-- this is used for inheritance merges -->
|
| 394 | <phase>package</phase>
|
| 395 | <!-- bind to the packaging phase -->
|
| 396 | <goals>
|
| 397 | <goal>single</goal>
|
| 398 | </goals>
|
| 399 | </execution>
|
| 400 | </executions>
|
| 401 | </plugin>
|
| 402 | <plugin>
|
| 403 | <groupId>org.apache.maven.plugins</groupId>
|
| 404 | <artifactId>maven-compiler-plugin</artifactId>
|
| 405 | <configuration>
|
| 406 | <source>1.8</source>
|
| 407 | <target>1.8</target>
|
| 408 | </configuration>
|
| 409 | <version>3.6.0</version>
|
| 410 | </plugin>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 411 |
|
| 412 | <!-- Copy files to docker-stage to be included in image -->
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 413 | <plugin>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 414 | <artifactId>maven-resources-plugin</artifactId>
|
| 415 | <version>2.7</version>
|
| 416 | <executions>
|
| 417 | <execution>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 418 | <id>copy-dockerfile</id>
|
| 419 | <phase>validate</phase>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 420 | <goals>
|
| 421 | <goal>copy-resources</goal>
|
| 422 | </goals>
|
| 423 | <configuration>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 424 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 425 | <overwrite>true</overwrite>
|
| 426 | <resources>
|
| 427 | <resource>
|
| 428 | <directory>${basedir}/src/main/resources/docker</directory>
|
| 429 | <filtering>true</filtering>
|
| 430 | <includes>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 431 | <include>Dockerfile</include>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 432 | </includes>
|
| 433 | </resource>
|
| 434 | </resources>
|
| 435 | </configuration>
|
| 436 | </execution>
|
| 437 | <execution>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 438 | <id>copy-startup-script</id>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 439 | <phase>validate</phase>
|
| 440 | <goals>
|
| 441 | <goal>copy-resources</goal>
|
| 442 | </goals>
|
| 443 | <configuration>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 444 | <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
|
| 445 | <overwrite>true</overwrite>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 446 | <resources>
|
| 447 | <resource>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 448 | <directory>${basedir}/src/main/resources/docker</directory>
|
| 449 | <filtering>true</filtering>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 450 | <includes>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 451 | <include>startup.sh</include>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 452 | </includes>
|
| 453 | </resource>
|
| 454 | </resources>
|
| 455 | </configuration>
|
| 456 | </execution>
|
| 457 | <execution>
|
| 458 | <id>copy-resources-2</id>
|
| 459 | <phase>validate</phase>
|
| 460 | <goals>
|
| 461 | <goal>copy-resources</goal>
|
| 462 | </goals>
|
| 463 | <configuration>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 464 | <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 465 | <resources>
|
| 466 | <resource>
|
| 467 | <directory>${basedir}/src/main/resources</directory>
|
| 468 | <includes>
|
| 469 | <include>misc/**</include>
|
| 470 | <include>**/**</include>
|
| 471 | </includes>
|
| 472 | </resource>
|
| 473 | </resources>
|
| 474 | </configuration>
|
| 475 | </execution>
|
| 476 | <execution>
|
| 477 | <id>copy-resources-3</id>
|
| 478 | <phase>validate</phase>
|
| 479 | <goals>
|
| 480 | <goal>copy-resources</goal>
|
| 481 | </goals>
|
| 482 | <configuration>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 483 | <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 484 | <resources>
|
| 485 | <resource>
|
| 486 | <directory>${basedir}/data</directory>
|
| 487 | <includes>
|
| 488 | <include>misc/**</include>
|
| 489 | <include>**/**</include>
|
| 490 | </includes>
|
| 491 | </resource>
|
| 492 | </resources>
|
| 493 | </configuration>
|
| 494 | </execution>
|
| 495 | <execution>
|
| 496 | <id>copy-resources-4</id>
|
| 497 | <phase>validate</phase>
|
| 498 | <goals>
|
| 499 | <goal>copy-resources</goal>
|
| 500 | </goals>
|
| 501 | <configuration>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 502 | <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 503 | <resources>
|
| 504 | <resource>
|
Ronan Keogh | ce73ff5 | 2018-08-23 11:04:45 +0100 | [diff] [blame] | 505 | <directory>${basedir}/aaf_certs</directory>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 506 | <includes>
|
| 507 | <include>misc/**</include>
|
| 508 | <include>**/**</include>
|
| 509 | </includes>
|
| 510 | </resource>
|
| 511 | </resources>
|
| 512 | </configuration>
|
| 513 | </execution>
|
| 514 | </executions>
|
| 515 | </plugin>
|
| 516 | <plugin>
|
| 517 | <groupId>org.apache.maven.plugins</groupId>
|
| 518 | <artifactId>maven-dependency-plugin</artifactId>
|
| 519 | <version>2.10</version>
|
| 520 | <executions>
|
| 521 | <execution>
|
| 522 | <id>copy-dependencies</id>
|
| 523 | <phase>package</phase>
|
| 524 | <goals>
|
| 525 | <goal>copy-dependencies</goal>
|
| 526 | </goals>
|
| 527 | <configuration>
|
sandovalfr | efad461 | 2019-03-04 09:31:59 -0500 | [diff] [blame] | 528 | <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 529 | <overWriteReleases>false</overWriteReleases>
|
| 530 | <overWriteSnapshots>false</overWriteSnapshots>
|
| 531 | <overWriteIfNewer>true</overWriteIfNewer>
|
| 532 | </configuration>
|
| 533 | </execution>
|
| 534 | </executions>
|
| 535 | </plugin>
|
| 536 | <plugin>
|
| 537 | <groupId>org.apache.maven.plugins</groupId>
|
| 538 | <artifactId>maven-javadoc-plugin</artifactId>
|
| 539 | <configuration>
|
| 540 | <failOnError>false</failOnError>
|
| 541 | </configuration>
|
| 542 | <executions>
|
| 543 | <execution>
|
| 544 | <id>attach-javadocs</id>
|
| 545 | <goals>
|
| 546 | <goal>jar</goal>
|
| 547 | </goals>
|
| 548 | </execution>
|
| 549 | </executions>
|
| 550 | </plugin>
|
| 551 | <plugin>
|
| 552 | <groupId>org.apache.maven.plugins</groupId>
|
| 553 | <artifactId>maven-source-plugin</artifactId>
|
| 554 | <version>2.2.1</version>
|
| 555 | <executions>
|
| 556 | <execution>
|
| 557 | <id>attach-sources</id>
|
| 558 | <goals>
|
| 559 | <goal>jar-no-fork</goal>
|
| 560 | </goals>
|
| 561 | </execution>
|
| 562 | </executions>
|
| 563 | </plugin>
|
| 564 | <plugin>
|
| 565 | <groupId>org.codehaus.mojo</groupId>
|
| 566 | <artifactId>cobertura-maven-plugin</artifactId>
|
| 567 | <version>2.7</version>
|
| 568 | <configuration>
|
| 569 | <formats>
|
| 570 | <format>html</format>
|
| 571 | <format>xml</format>
|
| 572 | </formats>
|
ezcoxem | da23b25 | 2018-07-31 15:54:56 +0100 | [diff] [blame] | 573 | <check/>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 574 | </configuration>
|
| 575 | </plugin>
|
| 576 | <plugin>
|
| 577 | <groupId>org.sonatype.plugins</groupId>
|
| 578 | <artifactId>nexus-staging-maven-plugin</artifactId>
|
| 579 | <version>1.6.7</version>
|
| 580 | <extensions>true</extensions>
|
| 581 | <configuration>
|
eronkeo | dcb5aef | 2018-08-07 16:58:43 +0100 | [diff] [blame] | 582 | <nexusUrl>${onap.nexus.url}</nexusUrl>
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 583 | <stagingProfileId>176c31dfe190a</stagingProfileId>
|
| 584 | <serverId>ecomp-staging</serverId>
|
| 585 | </configuration>
|
| 586 | </plugin>
|
| 587 | <plugin>
|
| 588 | <groupId>org.jacoco</groupId>
|
| 589 | <artifactId>jacoco-maven-plugin</artifactId>
|
| 590 | <version>${jacoco.version}</version>
|
| 591 | <configuration>
|
| 592 | <excludes>
|
| 593 | <exclude>**/gen/**</exclude>
|
| 594 | <exclude>**/generated-sources/**</exclude>
|
| 595 | <exclude>**/yang-gen/**</exclude>
|
| 596 | <exclude>**/pax/**</exclude>
|
| 597 | </excludes>
|
| 598 | </configuration>
|
| 599 | <executions>
|
| 600 | <execution>
|
| 601 | <id>pre-unit-test</id>
|
| 602 | <goals>
|
| 603 | <goal>prepare-agent</goal>
|
| 604 | </goals>
|
| 605 | <configuration>
|
| 606 | <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
|
| 607 | <propertyName>surefireArgLine</propertyName>
|
| 608 | </configuration>
|
| 609 | </execution>
|
| 610 | <execution>
|
| 611 | <id>post-unit-test</id>
|
| 612 | <phase>test</phase>
|
| 613 | <goals>
|
| 614 | <goal>report</goal>
|
| 615 | </goals>
|
| 616 | <configuration>
|
| 617 | <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
|
| 618 | <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
|
| 619 | </configuration>
|
| 620 | </execution>
|
| 621 | <execution>
|
| 622 | <id>pre-integration-test</id>
|
| 623 | <phase>pre-integration-test</phase>
|
| 624 | <goals>
|
| 625 | <goal>prepare-agent</goal>
|
| 626 | </goals>
|
| 627 | <configuration>
|
| 628 | <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
|
| 629 | <propertyName>failsafeArgLine</propertyName>
|
| 630 | </configuration>
|
| 631 | </execution>
|
| 632 | <execution>
|
| 633 | <id>post-integration-test</id>
|
| 634 | <phase>post-integration-test</phase>
|
| 635 | <goals>
|
| 636 | <goal>report</goal>
|
| 637 | </goals>
|
| 638 | <configuration>
|
| 639 | <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
|
| 640 | <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
|
| 641 | </configuration>
|
| 642 | </execution>
|
| 643 | </executions>
|
| 644 | </plugin>
|
| 645 | </plugins>
|
| 646 | </build>
|
ezcoxem | da23b25 | 2018-07-31 15:54:56 +0100 | [diff] [blame] | 647 | </project>
|