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.3.0</version>
57 <groupId>org.hamcrest</groupId>
58 <artifactId>hamcrest-library</artifactId>
61 <groupId>org.slf4j</groupId>
62 <artifactId>slf4j-api</artifactId>
65 <groupId>commons-codec</groupId>
66 <artifactId>commons-codec</artifactId>
69 <groupId>ch.qos.logback</groupId>
70 <artifactId>logback-classic</artifactId>
73 <groupId>ch.qos.logback</groupId>
74 <artifactId>logback-core</artifactId>
77 <groupId>org.json</groupId>
78 <artifactId>json</artifactId>
81 <groupId>com.intellij</groupId>
82 <artifactId>annotations</artifactId>
85 <groupId>javax.servlet</groupId>
86 <artifactId>javax.servlet-api</artifactId>
89 <groupId>javax.mail</groupId>
90 <artifactId>javax.mail-api</artifactId>
93 <groupId>com.att.eelf</groupId>
94 <artifactId>eelf-core</artifactId>
97 <groupId>org.onap.aaf.authz</groupId>
98 <artifactId>aaf-cadi-core</artifactId>
101 <groupId>org.eclipse.jetty</groupId>
102 <artifactId>jetty-server</artifactId>
105 <groupId>org.eclipse.jetty</groupId>
106 <artifactId>jetty-continuation</artifactId>
109 <groupId>org.eclipse.jetty</groupId>
110 <artifactId>jetty-util</artifactId>
113 <groupId>org.eclipse.jetty</groupId>
114 <artifactId>jetty-servlet</artifactId>
117 <groupId>org.eclipse.jetty</groupId>
118 <artifactId>jetty-http</artifactId>
121 <groupId>org.eclipse.jetty</groupId>
122 <artifactId>jetty-io</artifactId>
125 <groupId>commons-io</groupId>
126 <artifactId>commons-io</artifactId>
129 <groupId>org.apache.httpcomponents</groupId>
130 <artifactId>httpcore</artifactId>
133 <groupId>org.apache.httpcomponents</groupId>
134 <artifactId>httpclient</artifactId>
137 <groupId>org.dom4j</groupId>
138 <artifactId>dom4j</artifactId>
139 <version>2.1.1</version>
142 <groupId>org.sonatype.http-testing-harness</groupId>
143 <artifactId>junit-runner</artifactId>
147 <groupId>junit</groupId>
148 <artifactId>junit</artifactId>
152 <groupId>org.mockito</groupId>
153 <artifactId>mockito-core</artifactId>
157 <groupId>org.powermock</groupId>
158 <artifactId>powermock-module-junit4</artifactId>
162 <groupId>org.powermock</groupId>
163 <artifactId>powermock-api-mockito</artifactId>
167 <groupId>org.powermock</groupId>
168 <artifactId>powermock-api-support</artifactId>
172 <groupId>org.powermock</groupId>
173 <artifactId>powermock-core</artifactId>
177 <groupId>com.h2database</groupId>
178 <artifactId>h2</artifactId>
179 <version>1.4.197</version>
183 <groupId>org.hibernate</groupId>
184 <artifactId>hibernate-core</artifactId>
185 <version>5.4.2.Final</version>
188 <groupId>dom4j</groupId>
189 <artifactId>dom4j</artifactId>
195 <groupId>org.hamcrest</groupId>
196 <artifactId>hamcrest-library</artifactId>
200 <groupId>org.hibernate.javax.persistence</groupId>
201 <artifactId>hibernate-jpa-2.1-api</artifactId>
202 <version>1.0.2.Final</version>
210 <skipTests>true</skipTests>
215 <groupId>org.codehaus.gmaven</groupId>
216 <artifactId>gmaven-plugin</artifactId>
219 <groupId>io.fabric8</groupId>
220 <artifactId>docker-maven-plugin</artifactId>
224 <name>${datarouter.prov.image.name}</name>
226 <cleanup>try</cleanup>
227 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
228 <dockerFile>Dockerfile</dockerFile>
230 <tag>${dockertag1}</tag>
231 <tag>${dockertag2}</tag>
239 <id>generate-images</id>
240 <phase>install</phase>
247 <phase>deploy</phase>
259 <finalName>datarouter-prov</finalName>
262 <directory>src/main/resources</directory>
263 <filtering>true</filtering>
265 <include>**/*.properties</include>
266 <include>**/logback.xml</include>
272 <artifactId>maven-assembly-plugin</artifactId>
273 <version>2.4</version>
276 <descriptorRef>jar-with-dependencies</descriptorRef>
278 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
281 <addClasspath>true</addClasspath>
282 <mainClass>org.onap.dmaap.datarouter.provisioning.Main</mainClass>
288 <id>make-assembly</id>
289 <!-- this is used for inheritance merges -->
290 <phase>package</phase>
291 <!-- bind to the packaging phase -->
299 <groupId>org.apache.maven.plugins</groupId>
300 <artifactId>maven-compiler-plugin</artifactId>
302 <!-- Copy files to docker-stage to be included in image -->
304 <artifactId>maven-resources-plugin</artifactId>
305 <version>2.7</version>
308 <id>copy-dockerfile</id>
309 <phase>validate</phase>
311 <goal>copy-resources</goal>
314 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
315 <overwrite>true</overwrite>
318 <directory>${basedir}/src/main/resources/docker</directory>
319 <filtering>true</filtering>
321 <include>Dockerfile</include>
328 <id>copy-startup-script</id>
329 <phase>validate</phase>
331 <goal>copy-resources</goal>
334 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
335 <overwrite>true</overwrite>
338 <directory>${basedir}/src/main/resources/docker</directory>
339 <filtering>true</filtering>
341 <include>startup.sh</include>
348 <id>copy-resources-etc</id>
349 <phase>validate</phase>
351 <goal>copy-resources</goal>
354 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
357 <directory>${basedir}/src/main/resources</directory>
359 <include>misc/**</include>
360 <include>**/**</include>
363 <exclude>aaf/**</exclude>
364 <exclude>docker/**</exclude>
371 <id>copy-aaf-props</id>
372 <phase>validate</phase>
374 <goal>copy-resources</goal>
377 <outputDirectory>${basedir}/target/docker-stage/opt/app/osaaf/local</outputDirectory>
380 <directory>${basedir}/src/main/resources/aaf</directory>
382 <include>**/**</include>
391 <groupId>org.apache.maven.plugins</groupId>
392 <artifactId>maven-javadoc-plugin</artifactId>
395 <groupId>org.apache.maven.plugins</groupId>
396 <artifactId>maven-source-plugin</artifactId>
399 <groupId>org.codehaus.mojo</groupId>
400 <artifactId>cobertura-maven-plugin</artifactId>
403 <groupId>org.jacoco</groupId>
404 <artifactId>jacoco-maven-plugin</artifactId>
407 <exclude>**/src/main/java/org/onap/dmaap/datarouter/reports/**</exclude>
408 <exclude>src/main/java/org/onap/dmaap/datarouter/authz/impl/AuthRespSupplementImpl.java</exclude>
409 <exclude>src/main/java/org/onap/dmaap/datarouter/provisioning/Main.java</exclude>
410 <exclude>src/main/java/org/onap/dmaap/datarouter/provisioning/utils/DRRouteCLI.java</exclude>
415 <groupId>org.codehaus.mojo</groupId>
416 <artifactId>properties-maven-plugin</artifactId>