blob: d0f757bd576c2a86a46ea58210518dce86a87fb2 [file] [log] [blame]
sg481naaf2df82017-08-03 17:56:38 -04001<!--
2 ============LICENSE_START==================================================
3 * org.onap.dmaap
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
Piotr Darosz5a410372018-10-03 14:31:25 +02006 * Modifications Copyright (C) 2018 Nokia. All rights reserved.
sg481naaf2df82017-08-03 17:56:38 -04007 * ===========================================================================
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
ezcoxem28ceb6a2018-08-03 15:20:17 +010011 *
sg481naaf2df82017-08-03 17:56:38 -040012 * http://www.apache.org/licenses/LICENSE-2.0
ezcoxem28ceb6a2018-08-03 15:20:17 +010013 *
sg481naaf2df82017-08-03 17:56:38 -040014 * 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 Corcoranfa1da982018-07-26 07:23:34 +010024<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>
econwar7704d302019-04-03 10:40:26 +000029 <version>2.1.0-SNAPSHOT</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010030 <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 Corcoranfa1da982018-07-26 07:23:34 +010037 <sonar.language>java</sonar.language>
38 <sonar.skip>false</sonar.skip>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010039 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010040 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
ezcoxemda23b252018-07-31 15:54:56 +010041
42 <docker.location>${basedir}/target/${artifactId}</docker.location>
43 <datarouter.prov.image.name>onap/dmaap/datarouter-prov</datarouter.prov.image.name>
sandovalfrefad4612019-03-04 09:31:59 -050044
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 Corcoranfa1da982018-07-26 07:23:34 +010050 </properties>
51 <dependencies>
52 <dependency>
Paul Dennehy1cac6d22018-09-20 10:15:08 +010053 <groupId>xml-apis</groupId>
54 <artifactId>xml-apis</artifactId>
55 <version>${xml-apis.version}</version>
56 </dependency>
57 <dependency>
Ronan Keoghf36b8de2018-10-10 17:20:59 +010058 <groupId>org.dom4j</groupId>
edepaul82105b52018-09-10 09:39:10 +010059 <artifactId>dom4j</artifactId>
60 <version>${dom4j.version}</version>
61 </dependency>
62 <dependency>
edepaul12c71a52018-09-07 16:27:01 +010063 <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 Corcoranfa1da982018-07-26 07:23:34 +010073 <groupId>ch.qos.logback</groupId>
74 <artifactId>logback-classic</artifactId>
econward6e999b2018-09-05 16:10:01 +000075 <version>${qos.logback.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010076 <scope>compile</scope>
77 </dependency>
78 <dependency>
79 <groupId>ch.qos.logback</groupId>
80 <artifactId>logback-core</artifactId>
econward6e999b2018-09-05 16:10:01 +000081 <version>${qos.logback.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010082 <scope>compile</scope>
83 </dependency>
84 <dependency>
Sunil Unnava10279092018-02-27 02:32:46 -050085 <groupId>com.thoughtworks.xstream</groupId>
86 <artifactId>xstream</artifactId>
Ronan Keogh09a9e562018-08-17 11:20:54 +010087 <version>${thoughtworks.version}</version>
Sunil Unnava10279092018-02-27 02:32:46 -050088 </dependency>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010089 <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>
edepaul555b7fc2018-09-11 08:07:16 +010097 <version>${javax.mail-api.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010098 </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 Corcoranfa1da982018-07-26 07:23:34 +0100105 <groupId>org.eclipse.jetty</groupId>
106 <artifactId>jetty-server</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100107 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100108 </dependency>
109 <dependency>
110 <groupId>org.eclipse.jetty</groupId>
111 <artifactId>jetty-continuation</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100112 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100113 </dependency>
114 <dependency>
115 <groupId>org.eclipse.jetty</groupId>
116 <artifactId>jetty-util</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100117 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100118 </dependency>
119 <dependency>
120 <groupId>org.eclipse.jetty</groupId>
121 <artifactId>jetty-deploy</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100122 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100123 </dependency>
124 <dependency>
125 <groupId>org.eclipse.jetty</groupId>
126 <artifactId>jetty-servlet</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100127 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100128 </dependency>
129 <dependency>
130 <groupId>org.eclipse.jetty</groupId>
131 <artifactId>jetty-servlets</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100132 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100133 </dependency>
134 <dependency>
135 <groupId>org.eclipse.jetty</groupId>
136 <artifactId>jetty-http</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100137 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100138 </dependency>
139 <dependency>
140 <groupId>org.eclipse.jetty</groupId>
141 <artifactId>jetty-security</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100142 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100143 </dependency>
144 <dependency>
145 <groupId>org.eclipse.jetty</groupId>
146 <artifactId>jetty-websocket</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100147 <version>${jetty.websocket.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100148 </dependency>
149 <dependency>
150 <groupId>org.eclipse.jetty</groupId>
151 <artifactId>jetty-io</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100152 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100153 </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 Corcoranfa1da982018-07-26 07:23:34 +0100225 <dependency>
esobmardadcc322018-08-10 16:59:25 +0100226 <groupId>org.apache.commons</groupId>
227 <artifactId>commons-lang3</artifactId>
228 <version>3.0</version>
229 </dependency>
230 <dependency>
Fiachra Corcoranbce219c2018-08-07 22:19:13 +0100231 <groupId>org.mariadb.jdbc</groupId>
232 <artifactId>mariadb-java-client</artifactId>
233 <version>2.2.5</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100234 </dependency>
235 <dependency>
236 <groupId>org.eclipse.jetty.cdi</groupId>
237 <artifactId>cdi-websocket</artifactId>
Ronan Keogh09a9e562018-08-17 11:20:54 +0100238 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100239 </dependency>
240 <dependency>
econwar8ef486f2018-08-31 11:36:11 +0000241 <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 Keoghaa56d3a2018-10-11 13:37:24 +0100249 <exclusions>
250 <exclusion>
251 <groupId>dom4j</groupId>
252 <artifactId>dom4j</artifactId>
253 </exclusion>
254 </exclusions>
econwar8ef486f2018-08-31 11:36:11 +0000255 </dependency>
efiacor5775de72019-03-26 14:29:01 +0000256 <dependency>
257 <groupId>org.onap.aaf.authz</groupId>
258 <artifactId>aaf-cadi-aaf</artifactId>
259 <version>${aaf-cadi-aaf.version}</version>
260 </dependency>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100261 </dependencies>
ezcoxemda23b252018-07-31 15:54:56 +0100262 <profiles>
263 <profile>
264 <id>docker</id>
265 <properties>
ezcoxem28ceb6a2018-08-03 15:20:17 +0100266 <skipDockerBuild>false</skipDockerBuild>
267 <skipDockerTag>false</skipDockerTag>
268 <skipTests>true</skipTests>
ezcoxemda23b252018-07-31 15:54:56 +0100269 </properties>
ezcoxem28ceb6a2018-08-03 15:20:17 +0100270 <build>
271 <plugins>
sandovalfrefad4612019-03-04 09:31:59 -0500272
273 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
ezcoxem28ceb6a2018-08-03 15:20:17 +0100274 <plugin>
sandovalfrefad4612019-03-04 09:31:59 -0500275 <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>
ezcoxem28ceb6a2018-08-03 15:20:17 +0100306 <artifactId>docker-maven-plugin</artifactId>
sandovalfrefad4612019-03-04 09:31:59 -0500307 <version>0.28.0</version>
ezcoxem28ceb6a2018-08-03 15:20:17 +0100308 <configuration>
sandovalfrefad4612019-03-04 09:31:59 -0500309 <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>
ezcoxem28ceb6a2018-08-03 15:20:17 +0100327 </configuration>
sandovalfrefad4612019-03-04 09:31:59 -0500328 <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>
ezcoxem28ceb6a2018-08-03 15:20:17 +0100344 </plugin>
345 </plugins>
346 </build>
ezcoxemda23b252018-07-31 15:54:56 +0100347 </profile>
348 </profiles>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100349 <build>
350 <finalName>datarouter-prov</finalName>
351 <resources>
sg481naaf2df82017-08-03 17:56:38 -0400352 <resource>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100353 <directory>src/main/resources</directory>
354 <filtering>true</filtering>
355 <includes>
356 <include>**/*.properties</include>
357 </includes>
358 </resource>
sg481naaf2df82017-08-03 17:56:38 -0400359 <resource>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100360 <directory>src/main/resources</directory>
361 <filtering>true</filtering>
362 <includes>
Fiachra Corcoran19620eb2018-08-27 17:59:42 +0100363 <include>**/provserver.properties</include>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100364 </includes>
365 </resource>
sg481naaf2df82017-08-03 17:56:38 -0400366 <resource>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100367 <directory>src/main/resources</directory>
368 <filtering>true</filtering>
369 <includes>
370 <include>**/EelfMessages.properties</include>
371 </includes>
372 </resource>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100373 </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>
sandovalfrefad4612019-03-04 09:31:59 -0500382 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100383 <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>
sandovalfrefad4612019-03-04 09:31:59 -0500411
412 <!-- Copy files to docker-stage to be included in image -->
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100413 <plugin>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100414 <artifactId>maven-resources-plugin</artifactId>
415 <version>2.7</version>
416 <executions>
417 <execution>
sandovalfrefad4612019-03-04 09:31:59 -0500418 <id>copy-dockerfile</id>
419 <phase>validate</phase>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100420 <goals>
421 <goal>copy-resources</goal>
422 </goals>
423 <configuration>
sandovalfrefad4612019-03-04 09:31:59 -0500424 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100425 <overwrite>true</overwrite>
426 <resources>
427 <resource>
428 <directory>${basedir}/src/main/resources/docker</directory>
429 <filtering>true</filtering>
430 <includes>
sandovalfrefad4612019-03-04 09:31:59 -0500431 <include>Dockerfile</include>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100432 </includes>
433 </resource>
434 </resources>
435 </configuration>
436 </execution>
437 <execution>
sandovalfrefad4612019-03-04 09:31:59 -0500438 <id>copy-startup-script</id>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100439 <phase>validate</phase>
440 <goals>
441 <goal>copy-resources</goal>
442 </goals>
443 <configuration>
sandovalfrefad4612019-03-04 09:31:59 -0500444 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
445 <overwrite>true</overwrite>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100446 <resources>
447 <resource>
sandovalfrefad4612019-03-04 09:31:59 -0500448 <directory>${basedir}/src/main/resources/docker</directory>
449 <filtering>true</filtering>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100450 <includes>
sandovalfrefad4612019-03-04 09:31:59 -0500451 <include>startup.sh</include>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100452 </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>
sandovalfrefad4612019-03-04 09:31:59 -0500464 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100465 <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>
sandovalfrefad4612019-03-04 09:31:59 -0500483 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100484 <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>
sandovalfrefad4612019-03-04 09:31:59 -0500502 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100503 <resources>
504 <resource>
Ronan Keoghce73ff52018-08-23 11:04:45 +0100505 <directory>${basedir}/aaf_certs</directory>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100506 <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>
sandovalfrefad4612019-03-04 09:31:59 -0500528 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100529 <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>
ezcoxemda23b252018-07-31 15:54:56 +0100573 <check/>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100574 </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>
eronkeodcb5aef2018-08-07 16:58:43 +0100582 <nexusUrl>${onap.nexus.url}</nexusUrl>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100583 <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>
ezcoxemda23b252018-07-31 15:54:56 +0100647</project>