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/authz/impl/AuthRespSupplementImpl.java</sonar.exclusions>
41 <sonar.language>java</sonar.language>
42 <sonar.skip>false</sonar.skip>
46 <groupId>org.hamcrest</groupId>
47 <artifactId>hamcrest-library</artifactId>
50 <groupId>org.slf4j</groupId>
51 <artifactId>slf4j-api</artifactId>
54 <groupId>commons-codec</groupId>
55 <artifactId>commons-codec</artifactId>
58 <groupId>ch.qos.logback</groupId>
59 <artifactId>logback-classic</artifactId>
62 <groupId>ch.qos.logback</groupId>
63 <artifactId>logback-core</artifactId>
66 <groupId>org.json</groupId>
67 <artifactId>json</artifactId>
70 <groupId>com.intellij</groupId>
71 <artifactId>annotations</artifactId>
74 <groupId>javax.servlet</groupId>
75 <artifactId>javax.servlet-api</artifactId>
78 <groupId>javax.mail</groupId>
79 <artifactId>javax.mail-api</artifactId>
82 <groupId>com.att.eelf</groupId>
83 <artifactId>eelf-core</artifactId>
86 <groupId>org.onap.aaf.authz</groupId>
87 <artifactId>aaf-cadi-core</artifactId>
90 <groupId>org.eclipse.jetty</groupId>
91 <artifactId>jetty-server</artifactId>
94 <groupId>org.eclipse.jetty</groupId>
95 <artifactId>jetty-continuation</artifactId>
98 <groupId>org.eclipse.jetty</groupId>
99 <artifactId>jetty-util</artifactId>
102 <groupId>org.eclipse.jetty</groupId>
103 <artifactId>jetty-servlet</artifactId>
106 <groupId>org.eclipse.jetty</groupId>
107 <artifactId>jetty-http</artifactId>
110 <groupId>org.eclipse.jetty</groupId>
111 <artifactId>jetty-io</artifactId>
114 <groupId>commons-io</groupId>
115 <artifactId>commons-io</artifactId>
118 <groupId>org.apache.httpcomponents</groupId>
119 <artifactId>httpcore</artifactId>
122 <groupId>org.apache.httpcomponents</groupId>
123 <artifactId>httpclient</artifactId>
126 <groupId>org.sonatype.http-testing-harness</groupId>
127 <artifactId>junit-runner</artifactId>
130 <groupId>junit</groupId>
131 <artifactId>junit</artifactId>
134 <groupId>org.mockito</groupId>
135 <artifactId>mockito-core</artifactId>
138 <groupId>org.powermock</groupId>
139 <artifactId>powermock-module-junit4</artifactId>
142 <groupId>org.powermock</groupId>
143 <artifactId>powermock-api-mockito</artifactId>
146 <groupId>org.powermock</groupId>
147 <artifactId>powermock-api-support</artifactId>
150 <groupId>org.powermock</groupId>
151 <artifactId>powermock-core</artifactId>
154 <groupId>org.apache.commons</groupId>
155 <artifactId>commons-lang3</artifactId>
158 <groupId>org.mariadb.jdbc</groupId>
159 <artifactId>mariadb-java-client</artifactId>
160 <version>2.2.5</version>
163 <groupId>com.h2database</groupId>
164 <artifactId>h2</artifactId>
165 <version>1.4.197</version>
168 <groupId>org.hibernate</groupId>
169 <artifactId>hibernate-entitymanager</artifactId>
170 <version>5.2.9.Final</version>
173 <groupId>dom4j</groupId>
174 <artifactId>dom4j</artifactId>
179 <groupId>org.hamcrest</groupId>
180 <artifactId>hamcrest-core</artifactId>
181 <version>1.3</version>
185 <groupId>org.hibernate.javax.persistence</groupId>
186 <artifactId>hibernate-jpa-2.1-api</artifactId>
187 <version>1.0.2.Final</version>
190 <groupId>org.dom4j</groupId>
191 <artifactId>dom4j</artifactId>
192 <version>2.1.1</version>
199 <skipTests>true</skipTests>
204 <groupId>org.codehaus.gmaven</groupId>
205 <artifactId>gmaven-plugin</artifactId>
208 <groupId>io.fabric8</groupId>
209 <artifactId>docker-maven-plugin</artifactId>
213 <name>${datarouter.prov.image.name}</name>
215 <cleanup>try</cleanup>
216 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
217 <dockerFile>Dockerfile</dockerFile>
219 <tag>${dockertag1}</tag>
220 <tag>${dockertag2}</tag>
228 <id>generate-images</id>
229 <phase>install</phase>
236 <phase>deploy</phase>
248 <finalName>datarouter-prov</finalName>
251 <directory>src/main/resources</directory>
252 <filtering>true</filtering>
254 <include>**/*.properties</include>
258 <directory>src/main/resources</directory>
259 <filtering>true</filtering>
261 <include>**/provserver.properties</include>
265 <directory>src/main/resources</directory>
266 <filtering>true</filtering>
268 <include>**/EelfMessages.properties</include>
274 <artifactId>maven-assembly-plugin</artifactId>
275 <version>2.4</version>
278 <descriptorRef>jar-with-dependencies</descriptorRef>
280 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
283 <addClasspath>true</addClasspath>
284 <mainClass>org.onap.dmaap.datarouter.provisioning.Main</mainClass>
290 <id>make-assembly</id>
291 <!-- this is used for inheritance merges -->
292 <phase>package</phase>
293 <!-- bind to the packaging phase -->
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-compiler-plugin</artifactId>
304 <!-- Copy files to docker-stage to be included in image -->
306 <artifactId>maven-resources-plugin</artifactId>
307 <version>2.7</version>
310 <id>copy-dockerfile</id>
311 <phase>validate</phase>
313 <goal>copy-resources</goal>
316 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
317 <overwrite>true</overwrite>
320 <directory>${basedir}/src/main/resources/docker</directory>
321 <filtering>true</filtering>
323 <include>Dockerfile</include>
330 <id>copy-startup-script</id>
331 <phase>validate</phase>
333 <goal>copy-resources</goal>
336 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
337 <overwrite>true</overwrite>
340 <directory>${basedir}/src/main/resources/docker</directory>
341 <filtering>true</filtering>
343 <include>startup.sh</include>
350 <id>copy-resources-2</id>
351 <phase>validate</phase>
353 <goal>copy-resources</goal>
356 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
359 <directory>${basedir}/src/main/resources</directory>
361 <include>misc/**</include>
362 <include>**/**</include>
369 <id>copy-resources-3</id>
370 <phase>validate</phase>
372 <goal>copy-resources</goal>
375 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
378 <directory>${basedir}/data</directory>
380 <include>misc/**</include>
381 <include>**/**</include>
388 <id>copy-resources-4</id>
389 <phase>validate</phase>
391 <goal>copy-resources</goal>
394 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
397 <directory>${basedir}/aaf_certs</directory>
399 <include>misc/**</include>
400 <include>**/**</include>
409 <groupId>org.apache.maven.plugins</groupId>
410 <artifactId>maven-dependency-plugin</artifactId>
413 <id>copy-dependencies</id>
414 <phase>package</phase>
416 <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory>
422 <groupId>org.apache.maven.plugins</groupId>
423 <artifactId>maven-javadoc-plugin</artifactId>
426 <groupId>org.apache.maven.plugins</groupId>
427 <artifactId>maven-source-plugin</artifactId>
430 <groupId>org.codehaus.mojo</groupId>
431 <artifactId>cobertura-maven-plugin</artifactId>
434 <groupId>org.jacoco</groupId>
435 <artifactId>jacoco-maven-plugin</artifactId>
438 <exclude>**/src/main/java/org/onap/dmaap/datarouter/reports/**</exclude>
439 <exclude>**/src/main/java/org/onap/dmaap/authz/impl/AuthRespSupplementImpl.java</exclude>
444 <groupId>org.codehaus.mojo</groupId>
445 <artifactId>properties-maven-plugin</artifactId>