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.apache.commons</groupId>
49 <artifactId>commons-lang3</artifactId>
52 <groupId>org.mariadb.jdbc</groupId>
53 <artifactId>mariadb-java-client</artifactId>
54 <version>2.7.3</version>
57 <groupId>org.apache.commons</groupId>
58 <artifactId>commons-dbcp2</artifactId>
59 <version>2.8.0</version>
62 <groupId>org.slf4j</groupId>
63 <artifactId>slf4j-api</artifactId>
66 <groupId>commons-codec</groupId>
67 <artifactId>commons-codec</artifactId>
70 <groupId>ch.qos.logback</groupId>
71 <artifactId>logback-classic</artifactId>
74 <groupId>ch.qos.logback</groupId>
75 <artifactId>logback-core</artifactId>
78 <groupId>org.json</groupId>
79 <artifactId>json</artifactId>
82 <groupId>com.intellij</groupId>
83 <artifactId>annotations</artifactId>
86 <groupId>javax.servlet</groupId>
87 <artifactId>javax.servlet-api</artifactId>
90 <groupId>javax.mail</groupId>
91 <artifactId>javax.mail-api</artifactId>
94 <groupId>com.att.eelf</groupId>
95 <artifactId>eelf-core</artifactId>
98 <artifactId>powermock-api-mockito</artifactId>
99 <groupId>org.powermock</groupId>
104 <groupId>org.onap.aaf.authz</groupId>
105 <artifactId>aaf-cadi-core</artifactId>
108 <groupId>org.eclipse.jetty</groupId>
109 <artifactId>jetty-server</artifactId>
112 <groupId>org.eclipse.jetty</groupId>
113 <artifactId>jetty-continuation</artifactId>
116 <groupId>org.eclipse.jetty</groupId>
117 <artifactId>jetty-util</artifactId>
120 <groupId>org.eclipse.jetty</groupId>
121 <artifactId>jetty-servlet</artifactId>
124 <groupId>org.eclipse.jetty</groupId>
125 <artifactId>jetty-http</artifactId>
128 <groupId>org.eclipse.jetty</groupId>
129 <artifactId>jetty-io</artifactId>
132 <groupId>commons-io</groupId>
133 <artifactId>commons-io</artifactId>
136 <groupId>org.apache.httpcomponents</groupId>
137 <artifactId>httpcore</artifactId>
140 <groupId>org.apache.httpcomponents</groupId>
141 <artifactId>httpclient</artifactId>
144 <groupId>org.sonatype.http-testing-harness</groupId>
145 <artifactId>junit-runner</artifactId>
149 <artifactId>powermock-reflect</artifactId>
150 <groupId>org.powermock</groupId>
153 <artifactId>powermock-api-mockito</artifactId>
154 <groupId>org.powermock</groupId>
157 <artifactId>jetty-security</artifactId>
158 <groupId>org.eclipse.jetty</groupId>
161 <artifactId>jsr305</artifactId>
162 <groupId>com.google.code.findbugs</groupId>
167 <groupId>junit</groupId>
168 <artifactId>junit</artifactId>
172 <groupId>org.mockito</groupId>
173 <artifactId>mockito-core</artifactId>
177 <groupId>org.powermock</groupId>
178 <artifactId>powermock-module-junit4</artifactId>
182 <groupId>org.powermock</groupId>
183 <artifactId>powermock-api-mockito2</artifactId>
187 <groupId>org.powermock</groupId>
188 <artifactId>powermock-api-support</artifactId>
192 <groupId>org.powermock</groupId>
193 <artifactId>powermock-core</artifactId>
197 <groupId>org.powermock</groupId>
198 <artifactId>powermock-module-junit4-rule</artifactId>
201 <groupId>net.bytebuddy</groupId>
202 <artifactId>byte-buddy</artifactId>
205 <groupId>net.bytebuddy</groupId>
206 <artifactId>byte-buddy-agent</artifactId>
209 <groupId>org.objenesis</groupId>
210 <artifactId>objenesis</artifactId>
213 <groupId>org.javassist</groupId>
214 <artifactId>javassist</artifactId>
217 <groupId>com.h2database</groupId>
218 <artifactId>h2</artifactId>
219 <version>1.4.197</version>
223 <groupId>org.hibernate</groupId>
224 <artifactId>hibernate-core</artifactId>
225 <version>5.4.2.Final</version>
228 <groupId>dom4j</groupId>
229 <artifactId>dom4j</artifactId>
235 <groupId>org.hamcrest</groupId>
236 <artifactId>hamcrest-all</artifactId>
240 <groupId>org.hibernate.javax.persistence</groupId>
241 <artifactId>hibernate-jpa-2.1-api</artifactId>
242 <version>1.0.2.Final</version>
250 <skipTests>true</skipTests>
255 <groupId>org.codehaus.gmaven</groupId>
256 <artifactId>gmaven-plugin</artifactId>
259 <groupId>io.fabric8</groupId>
260 <artifactId>docker-maven-plugin</artifactId>
264 <name>${datarouter.prov.image.name}</name>
266 <cleanup>try</cleanup>
267 <noCache>true</noCache>
268 <optimise>true</optimise>
269 <contextDir>${basedir}/target/docker-stage</contextDir>
270 <dockerFile>Dockerfile</dockerFile>
272 <tag>${dockertag1}</tag>
273 <tag>${dockertag2}</tag>
281 <id>generate-images</id>
282 <phase>install</phase>
289 <phase>deploy</phase>
301 <finalName>datarouter-prov</finalName>
304 <directory>src/main/resources</directory>
305 <filtering>true</filtering>
307 <include>**/*.properties</include>
308 <include>**/logback.xml</include>
314 <artifactId>maven-assembly-plugin</artifactId>
315 <version>2.4</version>
318 <descriptorRef>jar-with-dependencies</descriptorRef>
320 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
323 <addClasspath>true</addClasspath>
324 <mainClass>org.onap.dmaap.datarouter.provisioning.ProvRunner</mainClass>
330 <id>make-assembly</id>
331 <!-- this is used for inheritance merges -->
332 <phase>package</phase>
333 <!-- bind to the packaging phase -->
341 <groupId>org.apache.maven.plugins</groupId>
342 <artifactId>maven-compiler-plugin</artifactId>
344 <!-- Copy files to docker-stage to be included in image -->
346 <artifactId>maven-resources-plugin</artifactId>
347 <version>2.7</version>
350 <id>copy-dockerfile</id>
351 <phase>validate</phase>
353 <goal>copy-resources</goal>
356 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
357 <overwrite>true</overwrite>
360 <directory>${basedir}/src/main/resources/docker</directory>
361 <filtering>true</filtering>
363 <include>Dockerfile</include>
370 <id>copy-startup-script</id>
371 <phase>validate</phase>
373 <goal>copy-resources</goal>
376 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
377 <overwrite>true</overwrite>
380 <directory>${basedir}/src/main/resources/docker</directory>
381 <filtering>true</filtering>
383 <include>startup.sh</include>
390 <id>copy-resources-etc</id>
391 <phase>validate</phase>
393 <goal>copy-resources</goal>
396 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
399 <directory>${basedir}/src/main/resources</directory>
401 <include>misc/**</include>
402 <include>**/**</include>
405 <exclude>aaf/**</exclude>
406 <exclude>docker/**</exclude>
413 <id>copy-aaf-props</id>
414 <phase>validate</phase>
416 <goal>copy-resources</goal>
419 <outputDirectory>${basedir}/target/docker-stage/opt/app/osaaf/local</outputDirectory>
422 <directory>${basedir}/src/main/resources/aaf</directory>
424 <include>**/**</include>
433 <groupId>org.apache.maven.plugins</groupId>
434 <artifactId>maven-javadoc-plugin</artifactId>
437 <groupId>org.apache.maven.plugins</groupId>
438 <artifactId>maven-source-plugin</artifactId>
441 <groupId>org.codehaus.mojo</groupId>
442 <artifactId>cobertura-maven-plugin</artifactId>
445 <groupId>org.jacoco</groupId>
446 <artifactId>jacoco-maven-plugin</artifactId>
449 <exclude>**/src/main/java/org/onap/dmaap/datarouter/reports/**</exclude>
450 <exclude>src/main/java/org/onap/dmaap/datarouter/authz/impl/AuthRespSupplementImpl.java</exclude>
451 <exclude>src/main/java/org/onap/dmaap/datarouter/provisioning/ProvRunner.java</exclude>
452 <exclude>src/main/java/org/onap/dmaap/datarouter/provisioning/utils/DRRouteCLI.java</exclude>
457 <groupId>org.codehaus.mojo</groupId>
458 <artifactId>properties-maven-plugin</artifactId>