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.eclipse.jetty</groupId>
105 <artifactId>jetty-server</artifactId>
108 <groupId>org.eclipse.jetty</groupId>
109 <artifactId>jetty-continuation</artifactId>
112 <groupId>org.eclipse.jetty</groupId>
113 <artifactId>jetty-util</artifactId>
116 <groupId>org.eclipse.jetty</groupId>
117 <artifactId>jetty-servlet</artifactId>
120 <groupId>org.eclipse.jetty</groupId>
121 <artifactId>jetty-http</artifactId>
124 <groupId>org.eclipse.jetty</groupId>
125 <artifactId>jetty-io</artifactId>
128 <groupId>commons-io</groupId>
129 <artifactId>commons-io</artifactId>
132 <groupId>org.apache.httpcomponents</groupId>
133 <artifactId>httpcore</artifactId>
136 <groupId>org.apache.httpcomponents</groupId>
137 <artifactId>httpclient</artifactId>
140 <groupId>org.sonatype.http-testing-harness</groupId>
141 <artifactId>junit-runner</artifactId>
145 <artifactId>powermock-reflect</artifactId>
146 <groupId>org.powermock</groupId>
149 <artifactId>powermock-api-mockito</artifactId>
150 <groupId>org.powermock</groupId>
153 <artifactId>jetty-security</artifactId>
154 <groupId>org.eclipse.jetty</groupId>
157 <artifactId>jsr305</artifactId>
158 <groupId>com.google.code.findbugs</groupId>
163 <groupId>junit</groupId>
164 <artifactId>junit</artifactId>
168 <groupId>org.mockito</groupId>
169 <artifactId>mockito-core</artifactId>
173 <groupId>org.powermock</groupId>
174 <artifactId>powermock-module-junit4</artifactId>
178 <groupId>org.powermock</groupId>
179 <artifactId>powermock-api-mockito2</artifactId>
183 <groupId>org.powermock</groupId>
184 <artifactId>powermock-api-support</artifactId>
188 <groupId>org.powermock</groupId>
189 <artifactId>powermock-core</artifactId>
193 <groupId>org.powermock</groupId>
194 <artifactId>powermock-module-junit4-rule</artifactId>
197 <groupId>net.bytebuddy</groupId>
198 <artifactId>byte-buddy</artifactId>
201 <groupId>net.bytebuddy</groupId>
202 <artifactId>byte-buddy-agent</artifactId>
205 <groupId>org.objenesis</groupId>
206 <artifactId>objenesis</artifactId>
209 <groupId>org.javassist</groupId>
210 <artifactId>javassist</artifactId>
213 <groupId>com.h2database</groupId>
214 <artifactId>h2</artifactId>
215 <version>1.4.197</version>
219 <groupId>org.hibernate</groupId>
220 <artifactId>hibernate-core</artifactId>
221 <version>5.4.2.Final</version>
224 <groupId>dom4j</groupId>
225 <artifactId>dom4j</artifactId>
231 <groupId>org.hamcrest</groupId>
232 <artifactId>hamcrest-all</artifactId>
236 <groupId>org.hibernate.javax.persistence</groupId>
237 <artifactId>hibernate-jpa-2.1-api</artifactId>
238 <version>1.0.2.Final</version>
246 <skipTests>true</skipTests>
251 <groupId>org.codehaus.gmaven</groupId>
252 <artifactId>gmaven-plugin</artifactId>
255 <groupId>io.fabric8</groupId>
256 <artifactId>docker-maven-plugin</artifactId>
260 <name>${datarouter.prov.image.name}</name>
262 <cleanup>try</cleanup>
263 <noCache>true</noCache>
264 <optimise>true</optimise>
265 <contextDir>${basedir}/target/docker-stage</contextDir>
266 <dockerFile>Dockerfile</dockerFile>
268 <tag>${dockertag1}</tag>
269 <tag>${dockertag2}</tag>
277 <id>generate-images</id>
278 <phase>install</phase>
285 <phase>deploy</phase>
297 <finalName>datarouter-prov</finalName>
300 <directory>src/main/resources</directory>
301 <filtering>true</filtering>
303 <include>**/*.properties</include>
304 <include>**/logback.xml</include>
310 <artifactId>maven-assembly-plugin</artifactId>
311 <version>2.4</version>
314 <descriptorRef>jar-with-dependencies</descriptorRef>
316 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
319 <addClasspath>true</addClasspath>
320 <mainClass>org.onap.dmaap.datarouter.provisioning.ProvRunner</mainClass>
326 <id>make-assembly</id>
327 <!-- this is used for inheritance merges -->
328 <phase>package</phase>
329 <!-- bind to the packaging phase -->
337 <groupId>org.apache.maven.plugins</groupId>
338 <artifactId>maven-compiler-plugin</artifactId>
340 <!-- Copy files to docker-stage to be included in image -->
342 <artifactId>maven-resources-plugin</artifactId>
343 <version>2.7</version>
346 <id>copy-dockerfile</id>
347 <phase>validate</phase>
349 <goal>copy-resources</goal>
352 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
353 <overwrite>true</overwrite>
356 <directory>${basedir}/src/main/resources/docker</directory>
357 <filtering>true</filtering>
359 <include>Dockerfile</include>
366 <id>copy-startup-script</id>
367 <phase>validate</phase>
369 <goal>copy-resources</goal>
372 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
373 <overwrite>true</overwrite>
376 <directory>${basedir}/src/main/resources/docker</directory>
377 <filtering>true</filtering>
379 <include>startup.sh</include>
386 <id>copy-resources-etc</id>
387 <phase>validate</phase>
389 <goal>copy-resources</goal>
392 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
395 <directory>${basedir}/src/main/resources</directory>
397 <include>misc/**</include>
398 <include>**/**</include>
401 <exclude>docker/**</exclude>
410 <groupId>org.apache.maven.plugins</groupId>
411 <artifactId>maven-javadoc-plugin</artifactId>
414 <groupId>org.apache.maven.plugins</groupId>
415 <artifactId>maven-source-plugin</artifactId>
418 <groupId>org.codehaus.mojo</groupId>
419 <artifactId>cobertura-maven-plugin</artifactId>
422 <groupId>org.jacoco</groupId>
423 <artifactId>jacoco-maven-plugin</artifactId>
426 <exclude>**/src/main/java/org/onap/dmaap/datarouter/reports/**</exclude>
427 <exclude>src/main/java/org/onap/dmaap/datarouter/authz/impl/AuthRespSupplementImpl.java</exclude>
428 <exclude>src/main/java/org/onap/dmaap/datarouter/provisioning/ProvRunner.java</exclude>
429 <exclude>src/main/java/org/onap/dmaap/datarouter/provisioning/utils/DRRouteCLI.java</exclude>
434 <groupId>org.codehaus.mojo</groupId>
435 <artifactId>properties-maven-plugin</artifactId>