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/**</sonar.exclusions>
40 <sonar.language>java</sonar.language>
41 <sonar.skip>false</sonar.skip>
45 <groupId>org.hamcrest</groupId>
46 <artifactId>hamcrest-library</artifactId>
49 <groupId>org.slf4j</groupId>
50 <artifactId>slf4j-api</artifactId>
53 <groupId>commons-codec</groupId>
54 <artifactId>commons-codec</artifactId>
57 <groupId>ch.qos.logback</groupId>
58 <artifactId>logback-classic</artifactId>
61 <groupId>ch.qos.logback</groupId>
62 <artifactId>logback-core</artifactId>
65 <groupId>org.json</groupId>
66 <artifactId>json</artifactId>
69 <groupId>com.intellij</groupId>
70 <artifactId>annotations</artifactId>
73 <groupId>javax.servlet</groupId>
74 <artifactId>javax.servlet-api</artifactId>
77 <groupId>javax.mail</groupId>
78 <artifactId>javax.mail-api</artifactId>
81 <groupId>com.att.eelf</groupId>
82 <artifactId>eelf-core</artifactId>
85 <groupId>org.onap.aaf.authz</groupId>
86 <artifactId>aaf-cadi-core</artifactId>
89 <groupId>org.eclipse.jetty</groupId>
90 <artifactId>jetty-server</artifactId>
93 <groupId>org.eclipse.jetty</groupId>
94 <artifactId>jetty-continuation</artifactId>
97 <groupId>org.eclipse.jetty</groupId>
98 <artifactId>jetty-util</artifactId>
101 <groupId>org.eclipse.jetty</groupId>
102 <artifactId>jetty-servlet</artifactId>
105 <groupId>org.eclipse.jetty</groupId>
106 <artifactId>jetty-http</artifactId>
109 <groupId>org.eclipse.jetty</groupId>
110 <artifactId>jetty-io</artifactId>
113 <groupId>commons-io</groupId>
114 <artifactId>commons-io</artifactId>
117 <groupId>org.apache.httpcomponents</groupId>
118 <artifactId>httpcore</artifactId>
121 <groupId>org.apache.httpcomponents</groupId>
122 <artifactId>httpclient</artifactId>
125 <groupId>org.sonatype.http-testing-harness</groupId>
126 <artifactId>junit-runner</artifactId>
129 <groupId>junit</groupId>
130 <artifactId>junit</artifactId>
133 <groupId>org.mockito</groupId>
134 <artifactId>mockito-core</artifactId>
137 <groupId>org.powermock</groupId>
138 <artifactId>powermock-module-junit4</artifactId>
141 <groupId>org.powermock</groupId>
142 <artifactId>powermock-api-mockito</artifactId>
145 <groupId>org.powermock</groupId>
146 <artifactId>powermock-api-support</artifactId>
149 <groupId>org.powermock</groupId>
150 <artifactId>powermock-core</artifactId>
153 <groupId>org.apache.commons</groupId>
154 <artifactId>commons-lang3</artifactId>
157 <groupId>org.mariadb.jdbc</groupId>
158 <artifactId>mariadb-java-client</artifactId>
159 <version>2.2.5</version>
162 <groupId>com.h2database</groupId>
163 <artifactId>h2</artifactId>
164 <version>1.4.197</version>
167 <groupId>org.hibernate</groupId>
168 <artifactId>hibernate-entitymanager</artifactId>
169 <version>5.2.9.Final</version>
172 <groupId>dom4j</groupId>
173 <artifactId>dom4j</artifactId>
178 <groupId>org.hamcrest</groupId>
179 <artifactId>hamcrest-core</artifactId>
180 <version>1.3</version>
184 <groupId>org.hibernate.javax.persistence</groupId>
185 <artifactId>hibernate-jpa-2.1-api</artifactId>
186 <version>1.0.2.Final</version>
189 <groupId>org.dom4j</groupId>
190 <artifactId>dom4j</artifactId>
191 <version>2.1.1</version>
198 <skipTests>true</skipTests>
203 <groupId>org.codehaus.gmaven</groupId>
204 <artifactId>gmaven-plugin</artifactId>
207 <groupId>io.fabric8</groupId>
208 <artifactId>docker-maven-plugin</artifactId>
212 <name>${datarouter.prov.image.name}</name>
214 <cleanup>try</cleanup>
215 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
216 <dockerFile>Dockerfile</dockerFile>
218 <tag>${dockertag1}</tag>
219 <tag>${dockertag2}</tag>
227 <id>generate-images</id>
228 <phase>install</phase>
235 <phase>deploy</phase>
247 <finalName>datarouter-prov</finalName>
250 <directory>src/main/resources</directory>
251 <filtering>true</filtering>
253 <include>**/*.properties</include>
257 <directory>src/main/resources</directory>
258 <filtering>true</filtering>
260 <include>**/provserver.properties</include>
264 <directory>src/main/resources</directory>
265 <filtering>true</filtering>
267 <include>**/EelfMessages.properties</include>
273 <artifactId>maven-assembly-plugin</artifactId>
274 <version>2.4</version>
277 <descriptorRef>jar-with-dependencies</descriptorRef>
279 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
282 <addClasspath>true</addClasspath>
283 <mainClass>org.onap.dmaap.datarouter.provisioning.Main</mainClass>
289 <id>make-assembly</id>
290 <!-- this is used for inheritance merges -->
291 <phase>package</phase>
292 <!-- bind to the packaging phase -->
300 <groupId>org.apache.maven.plugins</groupId>
301 <artifactId>maven-compiler-plugin</artifactId>
303 <!-- Copy files to docker-stage to be included in image -->
305 <artifactId>maven-resources-plugin</artifactId>
306 <version>2.7</version>
309 <id>copy-dockerfile</id>
310 <phase>validate</phase>
312 <goal>copy-resources</goal>
315 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
316 <overwrite>true</overwrite>
319 <directory>${basedir}/src/main/resources/docker</directory>
320 <filtering>true</filtering>
322 <include>Dockerfile</include>
329 <id>copy-startup-script</id>
330 <phase>validate</phase>
332 <goal>copy-resources</goal>
335 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
336 <overwrite>true</overwrite>
339 <directory>${basedir}/src/main/resources/docker</directory>
340 <filtering>true</filtering>
342 <include>startup.sh</include>
349 <id>copy-resources-2</id>
350 <phase>validate</phase>
352 <goal>copy-resources</goal>
355 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
358 <directory>${basedir}/src/main/resources</directory>
360 <include>misc/**</include>
361 <include>**/**</include>
368 <id>copy-resources-3</id>
369 <phase>validate</phase>
371 <goal>copy-resources</goal>
374 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
377 <directory>${basedir}/data</directory>
379 <include>misc/**</include>
380 <include>**/**</include>
387 <id>copy-resources-4</id>
388 <phase>validate</phase>
390 <goal>copy-resources</goal>
393 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
396 <directory>${basedir}/aaf_certs</directory>
398 <include>misc/**</include>
399 <include>**/**</include>
408 <groupId>org.apache.maven.plugins</groupId>
409 <artifactId>maven-dependency-plugin</artifactId>
412 <id>copy-dependencies</id>
413 <phase>package</phase>
415 <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory>
421 <groupId>org.apache.maven.plugins</groupId>
422 <artifactId>maven-javadoc-plugin</artifactId>
425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-source-plugin</artifactId>
429 <groupId>org.codehaus.mojo</groupId>
430 <artifactId>cobertura-maven-plugin</artifactId>
433 <groupId>org.sonatype.plugins</groupId>
434 <artifactId>nexus-staging-maven-plugin</artifactId>
437 <groupId>org.jacoco</groupId>
438 <artifactId>jacoco-maven-plugin</artifactId>
441 <exclude>**/src/main/java/org/onap/dmaap/datarouter/reports/**</exclude>
446 <groupId>org.codehaus.mojo</groupId>
447 <artifactId>properties-maven-plugin</artifactId>