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>org.hamcrest</groupId>
173 <artifactId>hamcrest-core</artifactId>
174 <version>1.3</version>
178 <groupId>org.hibernate.javax.persistence</groupId>
179 <artifactId>hibernate-jpa-2.1-api</artifactId>
180 <version>1.0.2.Final</version>
187 <skipTests>true</skipTests>
192 <groupId>org.codehaus.gmaven</groupId>
193 <artifactId>gmaven-plugin</artifactId>
196 <groupId>io.fabric8</groupId>
197 <artifactId>docker-maven-plugin</artifactId>
201 <name>${datarouter.prov.image.name}</name>
203 <cleanup>try</cleanup>
204 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
205 <dockerFile>Dockerfile</dockerFile>
207 <tag>${dockertag1}</tag>
208 <tag>${dockertag2}</tag>
216 <id>generate-images</id>
217 <phase>install</phase>
224 <phase>deploy</phase>
236 <finalName>datarouter-prov</finalName>
239 <directory>src/main/resources</directory>
240 <filtering>true</filtering>
242 <include>**/*.properties</include>
246 <directory>src/main/resources</directory>
247 <filtering>true</filtering>
249 <include>**/provserver.properties</include>
253 <directory>src/main/resources</directory>
254 <filtering>true</filtering>
256 <include>**/EelfMessages.properties</include>
262 <artifactId>maven-assembly-plugin</artifactId>
263 <version>2.4</version>
266 <descriptorRef>jar-with-dependencies</descriptorRef>
268 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
271 <addClasspath>true</addClasspath>
272 <mainClass>org.onap.dmaap.datarouter.provisioning.Main</mainClass>
278 <id>make-assembly</id>
279 <!-- this is used for inheritance merges -->
280 <phase>package</phase>
281 <!-- bind to the packaging phase -->
289 <groupId>org.apache.maven.plugins</groupId>
290 <artifactId>maven-compiler-plugin</artifactId>
292 <!-- Copy files to docker-stage to be included in image -->
294 <artifactId>maven-resources-plugin</artifactId>
295 <version>2.7</version>
298 <id>copy-dockerfile</id>
299 <phase>validate</phase>
301 <goal>copy-resources</goal>
304 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
305 <overwrite>true</overwrite>
308 <directory>${basedir}/src/main/resources/docker</directory>
309 <filtering>true</filtering>
311 <include>Dockerfile</include>
318 <id>copy-startup-script</id>
319 <phase>validate</phase>
321 <goal>copy-resources</goal>
324 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
325 <overwrite>true</overwrite>
328 <directory>${basedir}/src/main/resources/docker</directory>
329 <filtering>true</filtering>
331 <include>startup.sh</include>
338 <id>copy-resources-2</id>
339 <phase>validate</phase>
341 <goal>copy-resources</goal>
344 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
347 <directory>${basedir}/src/main/resources</directory>
349 <include>misc/**</include>
350 <include>**/**</include>
357 <id>copy-resources-3</id>
358 <phase>validate</phase>
360 <goal>copy-resources</goal>
363 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
366 <directory>${basedir}/data</directory>
368 <include>misc/**</include>
369 <include>**/**</include>
376 <id>copy-resources-4</id>
377 <phase>validate</phase>
379 <goal>copy-resources</goal>
382 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
385 <directory>${basedir}/aaf_certs</directory>
387 <include>misc/**</include>
388 <include>**/**</include>
397 <groupId>org.apache.maven.plugins</groupId>
398 <artifactId>maven-dependency-plugin</artifactId>
401 <id>copy-dependencies</id>
402 <phase>package</phase>
404 <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory>
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.sonatype.plugins</groupId>
423 <artifactId>nexus-staging-maven-plugin</artifactId>
426 <groupId>org.jacoco</groupId>
427 <artifactId>jacoco-maven-plugin</artifactId>
430 <exclude>**/src/main/java/org/onap/dmaap/datarouter/reports/**</exclude>
435 <groupId>org.codehaus.mojo</groupId>
436 <artifactId>properties-maven-plugin</artifactId>