blob: 761375783ea051b74ce64618955bc47f526e68e5 [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.
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
ezcoxem28ceb6a2018-08-03 15:20:17 +010010 *
sg481naaf2df82017-08-03 17:56:38 -040011 * http://www.apache.org/licenses/LICENSE-2.0
ezcoxem28ceb6a2018-08-03 15:20:17 +010012 *
sg481naaf2df82017-08-03 17:56:38 -040013 * 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-->
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010023<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24 <modelVersion>4.0.0</modelVersion>
25 <parent>
26 <groupId>org.onap.dmaap.datarouter</groupId>
27 <artifactId>parent</artifactId>
28 <version>1.0.1-SNAPSHOT</version>
29 <relativePath>../pom.xml</relativePath>
30 </parent>
31 <artifactId>datarouter-prov</artifactId>
32 <packaging>jar</packaging>
33 <name>datarouter-prov</name>
34 <url>https://github.com/att/DMAAP_DATAROUTER</url>
35 <properties>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010036 <sonar.language>java</sonar.language>
37 <sonar.skip>false</sonar.skip>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010038 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010039 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
ezcoxemda23b252018-07-31 15:54:56 +010040
41 <docker.location>${basedir}/target/${artifactId}</docker.location>
42 <datarouter.prov.image.name>onap/dmaap/datarouter-prov</datarouter.prov.image.name>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010043 </properties>
44 <dependencies>
45 <dependency>
46 <groupId>ch.qos.logback</groupId>
47 <artifactId>logback-classic</artifactId>
48 <version>1.2.0</version>
49 <scope>compile</scope>
50 </dependency>
51 <dependency>
52 <groupId>ch.qos.logback</groupId>
53 <artifactId>logback-core</artifactId>
54 <version>1.2.0</version>
55 <scope>compile</scope>
56 </dependency>
57 <dependency>
Sunil Unnava10279092018-02-27 02:32:46 -050058 <groupId>com.thoughtworks.xstream</groupId>
59 <artifactId>xstream</artifactId>
Ronan Keogh09a9e562018-08-17 11:20:54 +010060 <version>${thoughtworks.version}</version>
Sunil Unnava10279092018-02-27 02:32:46 -050061 </dependency>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010062 <dependency>
63 <groupId>org.json</groupId>
64 <artifactId>json</artifactId>
65 <version>20160810</version>
66 </dependency>
67 <dependency>
68 <groupId>javax.mail</groupId>
69 <artifactId>javax.mail-api</artifactId>
70 <version>1.5.1</version>
71 </dependency>
72 <dependency>
73 <groupId>com.att.eelf</groupId>
74 <artifactId>eelf-core</artifactId>
75 <version>0.0.1</version>
76 </dependency>
77 <dependency>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010078 <groupId>org.eclipse.jetty</groupId>
79 <artifactId>jetty-server</artifactId>
eronkeo85129f82018-08-14 17:58:28 +010080 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010081 </dependency>
82 <dependency>
83 <groupId>org.eclipse.jetty</groupId>
84 <artifactId>jetty-continuation</artifactId>
eronkeo85129f82018-08-14 17:58:28 +010085 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010086 </dependency>
87 <dependency>
88 <groupId>org.eclipse.jetty</groupId>
89 <artifactId>jetty-util</artifactId>
eronkeo85129f82018-08-14 17:58:28 +010090 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010091 </dependency>
92 <dependency>
93 <groupId>org.eclipse.jetty</groupId>
94 <artifactId>jetty-deploy</artifactId>
eronkeo85129f82018-08-14 17:58:28 +010095 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010096 </dependency>
97 <dependency>
98 <groupId>org.eclipse.jetty</groupId>
99 <artifactId>jetty-servlet</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100100 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100101 </dependency>
102 <dependency>
103 <groupId>org.eclipse.jetty</groupId>
104 <artifactId>jetty-servlets</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100105 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100106 </dependency>
107 <dependency>
108 <groupId>org.eclipse.jetty</groupId>
109 <artifactId>jetty-http</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100110 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100111 </dependency>
112 <dependency>
113 <groupId>org.eclipse.jetty</groupId>
114 <artifactId>jetty-security</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100115 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100116 </dependency>
117 <dependency>
118 <groupId>org.eclipse.jetty</groupId>
119 <artifactId>jetty-websocket</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100120 <version>${jetty.websocket.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100121 </dependency>
122 <dependency>
123 <groupId>org.eclipse.jetty</groupId>
124 <artifactId>jetty-io</artifactId>
eronkeo85129f82018-08-14 17:58:28 +0100125 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100126 </dependency>
127 <dependency>
128 <groupId>org.apache.commons</groupId>
129 <artifactId>commons-io</artifactId>
130 <version>1.3.2</version>
131 </dependency>
132 <dependency>
133 <groupId>commons-lang</groupId>
134 <artifactId>commons-lang</artifactId>
135 <version>2.4</version>
136 </dependency>
137 <dependency>
138 <groupId>commons-io</groupId>
139 <artifactId>commons-io</artifactId>
140 <version>2.1</version>
141 <scope>compile</scope>
142 </dependency>
143 <dependency>
144 <groupId>org.apache.httpcomponents</groupId>
145 <artifactId>httpcore</artifactId>
146 <version>4.4</version>
147 </dependency>
148 <dependency>
149 <groupId>org.mozilla</groupId>
150 <artifactId>rhino</artifactId>
151 <version>1.7R3</version>
152 </dependency>
153 <dependency>
154 <groupId>org.apache.james</groupId>
155 <artifactId>apache-mime4j-core</artifactId>
156 <version>0.7</version>
157 </dependency>
158 <dependency>
159 <groupId>org.apache.httpcomponents</groupId>
160 <artifactId>httpclient</artifactId>
161 <version>4.5.3</version>
162 </dependency>
163 <dependency>
164 <groupId>org.sonatype.http-testing-harness</groupId>
165 <artifactId>junit-runner</artifactId>
166 <version>0.11</version>
167 <exclusions>
168 <exclusion>
169 <groupId>org.databene</groupId>
170 <artifactId>contiperf</artifactId>
171 </exclusion>
172 </exclusions>
173 </dependency>
174 <dependency>
175 <groupId>junit</groupId>
176 <artifactId>junit</artifactId>
177 <version>4.10</version>
178 <scope>test</scope>
179 </dependency>
180 <dependency>
181 <groupId>org.mockito</groupId>
182 <artifactId>mockito-core</artifactId>
183 <version>1.10.19</version>
184 <scope>test</scope>
185 </dependency>
186 <dependency>
187 <groupId>org.powermock</groupId>
188 <artifactId>powermock-module-junit4</artifactId>
189 <version>1.6.4</version>
190 <scope>test</scope>
191 </dependency>
192 <dependency>
193 <groupId>org.powermock</groupId>
194 <artifactId>powermock-api-mockito</artifactId>
195 <version>1.6.4</version>
196 <scope>test</scope>
197 </dependency>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100198 <dependency>
esobmardadcc322018-08-10 16:59:25 +0100199 <groupId>org.apache.commons</groupId>
200 <artifactId>commons-lang3</artifactId>
201 <version>3.0</version>
202 </dependency>
203 <dependency>
Fiachra Corcoranbce219c2018-08-07 22:19:13 +0100204 <groupId>org.mariadb.jdbc</groupId>
205 <artifactId>mariadb-java-client</artifactId>
206 <version>2.2.5</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100207 </dependency>
208 <dependency>
209 <groupId>org.eclipse.jetty.cdi</groupId>
210 <artifactId>cdi-websocket</artifactId>
Ronan Keogh09a9e562018-08-17 11:20:54 +0100211 <version>${jetty.version}</version>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100212 </dependency>
213 <dependency>
214 <groupId>log4j</groupId>
215 <artifactId>log4j</artifactId>
216 <version>1.2.17</version>
217 <scope>compile</scope>
218 </dependency>
econwar8ef486f2018-08-31 11:36:11 +0000219 <dependency>
220 <groupId>com.h2database</groupId>
221 <artifactId>h2</artifactId>
222 <version>1.4.197</version>
223 </dependency>
224 <dependency>
225 <groupId>org.hibernate</groupId>
226 <artifactId>hibernate-entitymanager</artifactId>
227 <version>5.2.9.Final</version>
228 </dependency>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100229 </dependencies>
ezcoxemda23b252018-07-31 15:54:56 +0100230 <profiles>
231 <profile>
232 <id>docker</id>
233 <properties>
ezcoxem28ceb6a2018-08-03 15:20:17 +0100234 <skipDockerBuild>false</skipDockerBuild>
235 <skipDockerTag>false</skipDockerTag>
236 <skipTests>true</skipTests>
ezcoxemda23b252018-07-31 15:54:56 +0100237 </properties>
ezcoxem28ceb6a2018-08-03 15:20:17 +0100238 <build>
239 <plugins>
240 <plugin>
241 <groupId>com.spotify</groupId>
242 <artifactId>docker-maven-plugin</artifactId>
243 <version>1.0.0</version>
244 <configuration>
245 <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}</imageName>
246 <dockerDirectory>${docker.location}</dockerDirectory>
247 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
248 <skipDockerBuild>false</skipDockerBuild>
249 <imageTags>
250 <imageTag>${project.version}</imageTag>
251 <imageTag>latest</imageTag>
252 </imageTags>
253 <forceTags>true</forceTags>
254 <resources>
255 <resource>
256 <targetPath>/</targetPath>
257 <directory>${project.basedir}</directory>
258 <excludes>
259 <exclude>target/**/*</exclude>
260 <exclude>pom.xml</exclude>
261 </excludes>
262 </resource>
263
264 <resource>
265 <targetPath>/</targetPath>
266 <directory>${project.build.directory}</directory>
267 <include>**/**</include>
268 </resource>
269 </resources>
270 </configuration>
271 </plugin>
272 </plugins>
273 </build>
ezcoxemda23b252018-07-31 15:54:56 +0100274 </profile>
275 </profiles>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100276 <build>
277 <finalName>datarouter-prov</finalName>
278 <resources>
sg481naaf2df82017-08-03 17:56:38 -0400279 <resource>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100280 <directory>src/main/resources</directory>
281 <filtering>true</filtering>
282 <includes>
283 <include>**/*.properties</include>
284 </includes>
285 </resource>
sg481naaf2df82017-08-03 17:56:38 -0400286 <resource>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100287 <directory>src/main/resources</directory>
288 <filtering>true</filtering>
289 <includes>
Fiachra Corcoran19620eb2018-08-27 17:59:42 +0100290 <include>**/provserver.properties</include>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100291 </includes>
292 </resource>
sg481naaf2df82017-08-03 17:56:38 -0400293 <resource>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100294 <directory>src/main/resources</directory>
295 <filtering>true</filtering>
296 <includes>
297 <include>**/EelfMessages.properties</include>
298 </includes>
299 </resource>
sg481naaf2df82017-08-03 17:56:38 -0400300 <resource>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100301 <directory>src/main/resources</directory>
302 <filtering>true</filtering>
303 <includes>
304 <include>**/log4j.properties</include>
305 </includes>
306 </resource>
Fiachra Corcoranbce219c2018-08-07 22:19:13 +0100307 <resource>
308 <directory>src/test/resources</directory>
309 <filtering>true</filtering>
310 <includes>
311 <include>**/log4j.properties</include>
312 </includes>
313 </resource>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100314 </resources>
315 <plugins>
316 <plugin>
317 <artifactId>maven-assembly-plugin</artifactId>
318 <version>2.4</version>
319 <configuration>
320 <descriptorRefs>
321 <descriptorRef>jar-with-dependencies</descriptorRef>
322 </descriptorRefs>
323 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
324 <archive>
325 <manifest>
326 <addClasspath>true</addClasspath>
327 <mainClass>org.onap.dmaap.datarouter.provisioning.Main</mainClass>
328 </manifest>
329 </archive>
330 </configuration>
331 <executions>
332 <execution>
333 <id>make-assembly</id>
334 <!-- this is used for inheritance merges -->
335 <phase>package</phase>
336 <!-- bind to the packaging phase -->
337 <goals>
338 <goal>single</goal>
339 </goals>
340 </execution>
341 </executions>
342 </plugin>
343 <plugin>
344 <groupId>org.apache.maven.plugins</groupId>
345 <artifactId>maven-compiler-plugin</artifactId>
346 <configuration>
347 <source>1.8</source>
348 <target>1.8</target>
349 </configuration>
350 <version>3.6.0</version>
351 </plugin>
352 <plugin>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100353 <artifactId>maven-resources-plugin</artifactId>
354 <version>2.7</version>
355 <executions>
356 <execution>
357 <id>copy-docker-file</id>
358 <phase>package</phase>
359 <goals>
360 <goal>copy-resources</goal>
361 </goals>
362 <configuration>
363 <outputDirectory>${docker.location}</outputDirectory>
364 <overwrite>true</overwrite>
365 <resources>
366 <resource>
367 <directory>${basedir}/src/main/resources/docker</directory>
368 <filtering>true</filtering>
369 <includes>
370 <include>**/*</include>
371 </includes>
372 </resource>
373 </resources>
374 </configuration>
375 </execution>
376 <execution>
377 <id>copy-resources-1</id>
378 <phase>validate</phase>
379 <goals>
380 <goal>copy-resources</goal>
381 </goals>
382 <configuration>
383 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
384 <resources>
385 <resource>
386 <directory>${project.basedir}/src/main/resources</directory>
387 <includes>
388 <include>**/*.jar</include>
389 </includes>
390 </resource>
391 </resources>
392 </configuration>
393 </execution>
394 <execution>
395 <id>copy-resources-2</id>
396 <phase>validate</phase>
397 <goals>
398 <goal>copy-resources</goal>
399 </goals>
400 <configuration>
401 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
402 <resources>
403 <resource>
404 <directory>${basedir}/src/main/resources</directory>
405 <includes>
406 <include>misc/**</include>
407 <include>**/**</include>
408 </includes>
409 </resource>
410 </resources>
411 </configuration>
412 </execution>
413 <execution>
414 <id>copy-resources-3</id>
415 <phase>validate</phase>
416 <goals>
417 <goal>copy-resources</goal>
418 </goals>
419 <configuration>
420 <outputDirectory>${basedir}/target/opt/app/datartr</outputDirectory>
421 <resources>
422 <resource>
423 <directory>${basedir}/data</directory>
424 <includes>
425 <include>misc/**</include>
426 <include>**/**</include>
427 </includes>
428 </resource>
429 </resources>
430 </configuration>
431 </execution>
432 <execution>
433 <id>copy-resources-4</id>
434 <phase>validate</phase>
435 <goals>
436 <goal>copy-resources</goal>
437 </goals>
438 <configuration>
Ronan Keoghce73ff52018-08-23 11:04:45 +0100439 <outputDirectory>${basedir}/target/opt/app/datartr/aaf_certs</outputDirectory>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100440 <resources>
441 <resource>
Ronan Keoghce73ff52018-08-23 11:04:45 +0100442 <directory>${basedir}/aaf_certs</directory>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100443 <includes>
444 <include>misc/**</include>
445 <include>**/**</include>
446 </includes>
447 </resource>
448 </resources>
449 </configuration>
450 </execution>
451 </executions>
452 </plugin>
453 <plugin>
454 <groupId>org.apache.maven.plugins</groupId>
455 <artifactId>maven-dependency-plugin</artifactId>
456 <version>2.10</version>
457 <executions>
458 <execution>
459 <id>copy-dependencies</id>
460 <phase>package</phase>
461 <goals>
462 <goal>copy-dependencies</goal>
463 </goals>
464 <configuration>
465 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
466 <overWriteReleases>false</overWriteReleases>
467 <overWriteSnapshots>false</overWriteSnapshots>
468 <overWriteIfNewer>true</overWriteIfNewer>
469 </configuration>
470 </execution>
471 </executions>
472 </plugin>
473 <plugin>
474 <groupId>org.apache.maven.plugins</groupId>
475 <artifactId>maven-javadoc-plugin</artifactId>
476 <configuration>
477 <failOnError>false</failOnError>
478 </configuration>
479 <executions>
480 <execution>
481 <id>attach-javadocs</id>
482 <goals>
483 <goal>jar</goal>
484 </goals>
485 </execution>
486 </executions>
487 </plugin>
488 <plugin>
489 <groupId>org.apache.maven.plugins</groupId>
490 <artifactId>maven-source-plugin</artifactId>
491 <version>2.2.1</version>
492 <executions>
493 <execution>
494 <id>attach-sources</id>
495 <goals>
496 <goal>jar-no-fork</goal>
497 </goals>
498 </execution>
499 </executions>
500 </plugin>
501 <plugin>
502 <groupId>org.codehaus.mojo</groupId>
503 <artifactId>cobertura-maven-plugin</artifactId>
504 <version>2.7</version>
505 <configuration>
506 <formats>
507 <format>html</format>
508 <format>xml</format>
509 </formats>
ezcoxemda23b252018-07-31 15:54:56 +0100510 <check/>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100511 </configuration>
512 </plugin>
513 <plugin>
514 <groupId>org.sonatype.plugins</groupId>
515 <artifactId>nexus-staging-maven-plugin</artifactId>
516 <version>1.6.7</version>
517 <extensions>true</extensions>
518 <configuration>
eronkeodcb5aef2018-08-07 16:58:43 +0100519 <nexusUrl>${onap.nexus.url}</nexusUrl>
Fiachra Corcoranfa1da982018-07-26 07:23:34 +0100520 <stagingProfileId>176c31dfe190a</stagingProfileId>
521 <serverId>ecomp-staging</serverId>
522 </configuration>
523 </plugin>
524 <plugin>
525 <groupId>org.jacoco</groupId>
526 <artifactId>jacoco-maven-plugin</artifactId>
527 <version>${jacoco.version}</version>
528 <configuration>
529 <excludes>
530 <exclude>**/gen/**</exclude>
531 <exclude>**/generated-sources/**</exclude>
532 <exclude>**/yang-gen/**</exclude>
533 <exclude>**/pax/**</exclude>
534 </excludes>
535 </configuration>
536 <executions>
537 <execution>
538 <id>pre-unit-test</id>
539 <goals>
540 <goal>prepare-agent</goal>
541 </goals>
542 <configuration>
543 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
544 <propertyName>surefireArgLine</propertyName>
545 </configuration>
546 </execution>
547 <execution>
548 <id>post-unit-test</id>
549 <phase>test</phase>
550 <goals>
551 <goal>report</goal>
552 </goals>
553 <configuration>
554 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
555 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
556 </configuration>
557 </execution>
558 <execution>
559 <id>pre-integration-test</id>
560 <phase>pre-integration-test</phase>
561 <goals>
562 <goal>prepare-agent</goal>
563 </goals>
564 <configuration>
565 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
566 <propertyName>failsafeArgLine</propertyName>
567 </configuration>
568 </execution>
569 <execution>
570 <id>post-integration-test</id>
571 <phase>post-integration-test</phase>
572 <goals>
573 <goal>report</goal>
574 </goals>
575 <configuration>
576 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
577 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
578 </configuration>
579 </execution>
580 </executions>
581 </plugin>
582 </plugins>
583 </build>
ezcoxemda23b252018-07-31 15:54:56 +0100584</project>