2 ============LICENSE_START==================================================
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * Modifications Copyright (C) 2018 Nokia. All rights reserved.
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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====================================================
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
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>
27 <groupId>org.onap.dmaap.datarouter</groupId>
28 <artifactId>parent</artifactId>
29 <version>${revision}</version>
30 <relativePath>../pom.xml</relativePath>
32 <artifactId>datarouter-prov</artifactId>
33 <packaging>jar</packaging>
34 <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
36 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
37 <docker.location>${basedir}/target/${project.artifactId}</docker.location>
38 <datarouter.prov.image.name>${docker.image.root}${project.artifactId}</datarouter.prov.image.name>
39 <sonar.exclusions>**/src/main/java/org/onap/dmaap/datarouter/reports/**,
40 src/main/java/org/onap/dmaap/datarouter/authz/impl/AuthRespSupplementImpl.java,
41 src/main/java/org/onap/dmaap/datarouter/provisioning/Main.java,
42 src/main/java/org/onap/dmaap/datarouter/provisioning/utils/DRRouteCLI.java</sonar.exclusions>
43 <sonar.language>java</sonar.language>
44 <sonar.skip>false</sonar.skip>
48 <groupId>org.hamcrest</groupId>
49 <artifactId>hamcrest-library</artifactId>
52 <groupId>org.slf4j</groupId>
53 <artifactId>slf4j-api</artifactId>
56 <groupId>commons-codec</groupId>
57 <artifactId>commons-codec</artifactId>
60 <groupId>ch.qos.logback</groupId>
61 <artifactId>logback-classic</artifactId>
64 <groupId>ch.qos.logback</groupId>
65 <artifactId>logback-core</artifactId>
68 <groupId>org.json</groupId>
69 <artifactId>json</artifactId>
72 <groupId>com.intellij</groupId>
73 <artifactId>annotations</artifactId>
76 <groupId>javax.servlet</groupId>
77 <artifactId>javax.servlet-api</artifactId>
80 <groupId>javax.mail</groupId>
81 <artifactId>javax.mail-api</artifactId>
84 <groupId>com.att.eelf</groupId>
85 <artifactId>eelf-core</artifactId>
88 <groupId>org.onap.aaf.authz</groupId>
89 <artifactId>aaf-cadi-core</artifactId>
92 <groupId>org.eclipse.jetty</groupId>
93 <artifactId>jetty-server</artifactId>
96 <groupId>org.eclipse.jetty</groupId>
97 <artifactId>jetty-continuation</artifactId>
100 <groupId>org.eclipse.jetty</groupId>
101 <artifactId>jetty-util</artifactId>
104 <groupId>org.eclipse.jetty</groupId>
105 <artifactId>jetty-servlet</artifactId>
108 <groupId>org.eclipse.jetty</groupId>
109 <artifactId>jetty-http</artifactId>
112 <groupId>org.eclipse.jetty</groupId>
113 <artifactId>jetty-io</artifactId>
116 <groupId>commons-io</groupId>
117 <artifactId>commons-io</artifactId>
120 <groupId>org.apache.httpcomponents</groupId>
121 <artifactId>httpcore</artifactId>
124 <groupId>org.apache.httpcomponents</groupId>
125 <artifactId>httpclient</artifactId>
128 <groupId>org.sonatype.http-testing-harness</groupId>
129 <artifactId>junit-runner</artifactId>
132 <groupId>junit</groupId>
133 <artifactId>junit</artifactId>
136 <groupId>org.mockito</groupId>
137 <artifactId>mockito-core</artifactId>
140 <groupId>org.powermock</groupId>
141 <artifactId>powermock-module-junit4</artifactId>
144 <groupId>org.powermock</groupId>
145 <artifactId>powermock-api-mockito</artifactId>
148 <groupId>org.powermock</groupId>
149 <artifactId>powermock-api-support</artifactId>
152 <groupId>org.powermock</groupId>
153 <artifactId>powermock-core</artifactId>
156 <groupId>org.apache.commons</groupId>
157 <artifactId>commons-lang3</artifactId>
160 <groupId>org.mariadb.jdbc</groupId>
161 <artifactId>mariadb-java-client</artifactId>
162 <version>2.3.0</version>
165 <groupId>com.h2database</groupId>
166 <artifactId>h2</artifactId>
167 <version>1.4.197</version>
170 <groupId>org.hibernate</groupId>
171 <artifactId>hibernate-core</artifactId>
172 <version>5.4.2.Final</version>
175 <groupId>dom4j</groupId>
176 <artifactId>dom4j</artifactId>
181 <groupId>org.hamcrest</groupId>
182 <artifactId>hamcrest-core</artifactId>
183 <version>1.3</version>
187 <groupId>org.hibernate.javax.persistence</groupId>
188 <artifactId>hibernate-jpa-2.1-api</artifactId>
189 <version>1.0.2.Final</version>
192 <groupId>org.dom4j</groupId>
193 <artifactId>dom4j</artifactId>
194 <version>2.1.1</version>
201 <skipTests>true</skipTests>
206 <groupId>org.codehaus.gmaven</groupId>
207 <artifactId>gmaven-plugin</artifactId>
210 <groupId>io.fabric8</groupId>
211 <artifactId>docker-maven-plugin</artifactId>
215 <name>${datarouter.prov.image.name}</name>
217 <cleanup>try</cleanup>
218 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
219 <dockerFile>Dockerfile</dockerFile>
221 <tag>${dockertag1}</tag>
222 <tag>${dockertag2}</tag>
230 <id>generate-images</id>
231 <phase>install</phase>
238 <phase>deploy</phase>
250 <finalName>datarouter-prov</finalName>
253 <directory>src/main/resources</directory>
254 <filtering>true</filtering>
256 <include>**/*.properties</include>
260 <directory>src/main/resources</directory>
261 <filtering>true</filtering>
263 <include>**/provserver.properties</include>
267 <directory>src/main/resources</directory>
268 <filtering>true</filtering>
270 <include>**/EelfMessages.properties</include>
276 <artifactId>maven-assembly-plugin</artifactId>
277 <version>2.4</version>
280 <descriptorRef>jar-with-dependencies</descriptorRef>
282 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
285 <addClasspath>true</addClasspath>
286 <mainClass>org.onap.dmaap.datarouter.provisioning.Main</mainClass>
292 <id>make-assembly</id>
293 <!-- this is used for inheritance merges -->
294 <phase>package</phase>
295 <!-- bind to the packaging phase -->
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-compiler-plugin</artifactId>
306 <!-- Copy files to docker-stage to be included in image -->
308 <artifactId>maven-resources-plugin</artifactId>
309 <version>2.7</version>
312 <id>copy-dockerfile</id>
313 <phase>validate</phase>
315 <goal>copy-resources</goal>
318 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
319 <overwrite>true</overwrite>
322 <directory>${basedir}/src/main/resources/docker</directory>
323 <filtering>true</filtering>
325 <include>Dockerfile</include>
332 <id>copy-startup-script</id>
333 <phase>validate</phase>
335 <goal>copy-resources</goal>
338 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
339 <overwrite>true</overwrite>
342 <directory>${basedir}/src/main/resources/docker</directory>
343 <filtering>true</filtering>
345 <include>startup.sh</include>
352 <id>copy-resources-2</id>
353 <phase>validate</phase>
355 <goal>copy-resources</goal>
358 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
361 <directory>${basedir}/src/main/resources</directory>
363 <include>misc/**</include>
364 <include>**/**</include>
371 <id>copy-resources-3</id>
372 <phase>validate</phase>
374 <goal>copy-resources</goal>
377 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
380 <directory>${basedir}/data</directory>
382 <include>misc/**</include>
383 <include>**/**</include>
390 <id>copy-resources-4</id>
391 <phase>validate</phase>
393 <goal>copy-resources</goal>
396 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
399 <directory>${basedir}/aaf_certs</directory>
401 <include>misc/**</include>
402 <include>**/**</include>
411 <groupId>org.apache.maven.plugins</groupId>
412 <artifactId>maven-dependency-plugin</artifactId>
415 <id>copy-dependencies</id>
416 <phase>package</phase>
418 <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory>
424 <groupId>org.apache.maven.plugins</groupId>
425 <artifactId>maven-javadoc-plugin</artifactId>
428 <groupId>org.apache.maven.plugins</groupId>
429 <artifactId>maven-source-plugin</artifactId>
432 <groupId>org.codehaus.mojo</groupId>
433 <artifactId>cobertura-maven-plugin</artifactId>
436 <groupId>org.jacoco</groupId>
437 <artifactId>jacoco-maven-plugin</artifactId>
440 <exclude>**/src/main/java/org/onap/dmaap/datarouter/reports/**</exclude>
441 <exclude>src/main/java/org/onap/dmaap/datarouter/authz/impl/AuthRespSupplementImpl.java</exclude>
442 <exclude>src/main/java/org/onap/dmaap/datarouter/provisioning/Main.java</exclude>
443 <exclude>src/main/java/org/onap/dmaap/datarouter/provisioning/utils/DRRouteCLI.java</exclude>
448 <groupId>org.codehaus.mojo</groupId>
449 <artifactId>properties-maven-plugin</artifactId>