blob: c71d877b60be29ac97927aee52d7a146aff228db [file] [log] [blame]
efiacor1c11ab82019-04-09 13:52:17 +00001<!--
2 ============LICENSE_START==================================================
3 * org.onap.dmaap
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
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
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====================================================
20 *
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 *
23-->
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>
26 <parent>
27 <groupId>org.onap.dmaap.datarouter</groupId>
28 <artifactId>parent</artifactId>
29 <version>${revision}</version>
30 <relativePath>../pom.xml</relativePath>
31 </parent>
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>
35 <properties>
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>
42 </properties>
43 <dependencies>
44 <dependency>
45 <groupId>org.hamcrest</groupId>
46 <artifactId>hamcrest-library</artifactId>
47 </dependency>
48 <dependency>
49 <groupId>org.slf4j</groupId>
50 <artifactId>slf4j-api</artifactId>
51 </dependency>
52 <dependency>
53 <groupId>commons-codec</groupId>
54 <artifactId>commons-codec</artifactId>
55 </dependency>
56 <dependency>
57 <groupId>ch.qos.logback</groupId>
58 <artifactId>logback-classic</artifactId>
59 </dependency>
60 <dependency>
61 <groupId>ch.qos.logback</groupId>
62 <artifactId>logback-core</artifactId>
63 </dependency>
64 <dependency>
65 <groupId>org.json</groupId>
66 <artifactId>json</artifactId>
67 </dependency>
68 <dependency>
69 <groupId>com.intellij</groupId>
70 <artifactId>annotations</artifactId>
71 </dependency>
72 <dependency>
73 <groupId>javax.servlet</groupId>
74 <artifactId>javax.servlet-api</artifactId>
75 </dependency>
76 <dependency>
77 <groupId>javax.mail</groupId>
78 <artifactId>javax.mail-api</artifactId>
79 </dependency>
80 <dependency>
81 <groupId>com.att.eelf</groupId>
82 <artifactId>eelf-core</artifactId>
83 </dependency>
84 <dependency>
85 <groupId>org.onap.aaf.authz</groupId>
86 <artifactId>aaf-cadi-core</artifactId>
87 </dependency>
88 <dependency>
89 <groupId>org.eclipse.jetty</groupId>
90 <artifactId>jetty-server</artifactId>
91 </dependency>
92 <dependency>
93 <groupId>org.eclipse.jetty</groupId>
94 <artifactId>jetty-continuation</artifactId>
95 </dependency>
96 <dependency>
97 <groupId>org.eclipse.jetty</groupId>
98 <artifactId>jetty-util</artifactId>
99 </dependency>
100 <dependency>
101 <groupId>org.eclipse.jetty</groupId>
102 <artifactId>jetty-servlet</artifactId>
103 </dependency>
104 <dependency>
105 <groupId>org.eclipse.jetty</groupId>
106 <artifactId>jetty-http</artifactId>
107 </dependency>
108 <dependency>
109 <groupId>org.eclipse.jetty</groupId>
110 <artifactId>jetty-io</artifactId>
111 </dependency>
112 <dependency>
113 <groupId>commons-io</groupId>
114 <artifactId>commons-io</artifactId>
115 </dependency>
116 <dependency>
117 <groupId>org.apache.httpcomponents</groupId>
118 <artifactId>httpcore</artifactId>
119 </dependency>
120 <dependency>
121 <groupId>org.apache.httpcomponents</groupId>
122 <artifactId>httpclient</artifactId>
123 </dependency>
124 <dependency>
125 <groupId>org.sonatype.http-testing-harness</groupId>
126 <artifactId>junit-runner</artifactId>
127 </dependency>
128 <dependency>
129 <groupId>junit</groupId>
130 <artifactId>junit</artifactId>
131 </dependency>
132 <dependency>
133 <groupId>org.mockito</groupId>
134 <artifactId>mockito-core</artifactId>
135 </dependency>
136 <dependency>
137 <groupId>org.powermock</groupId>
138 <artifactId>powermock-module-junit4</artifactId>
139 </dependency>
140 <dependency>
141 <groupId>org.powermock</groupId>
142 <artifactId>powermock-api-mockito</artifactId>
143 </dependency>
144 <dependency>
145 <groupId>org.powermock</groupId>
146 <artifactId>powermock-api-support</artifactId>
147 </dependency>
148 <dependency>
149 <groupId>org.powermock</groupId>
150 <artifactId>powermock-core</artifactId>
151 </dependency>
152 <dependency>
153 <groupId>org.apache.commons</groupId>
154 <artifactId>commons-lang3</artifactId>
155 </dependency>
156 <dependency>
157 <groupId>org.mariadb.jdbc</groupId>
158 <artifactId>mariadb-java-client</artifactId>
159 <version>2.2.5</version>
160 </dependency>
161 <dependency>
162 <groupId>com.h2database</groupId>
163 <artifactId>h2</artifactId>
164 <version>1.4.197</version>
165 </dependency>
166 <dependency>
167 <groupId>org.hibernate</groupId>
168 <artifactId>hibernate-entitymanager</artifactId>
econwar74b69ed2019-04-26 13:32:21 +0000169 <version>5.2.9.Final</version>
170 <exclusions>
171 <exclusion>
172 <groupId>dom4j</groupId>
173 <artifactId>dom4j</artifactId>
174 </exclusion>
175 </exclusions>
efiacor1c11ab82019-04-09 13:52:17 +0000176 </dependency>
177 <dependency>
178 <groupId>org.hamcrest</groupId>
179 <artifactId>hamcrest-core</artifactId>
180 <version>1.3</version>
181 <scope>test</scope>
182 </dependency>
183 <dependency>
184 <groupId>org.hibernate.javax.persistence</groupId>
185 <artifactId>hibernate-jpa-2.1-api</artifactId>
186 <version>1.0.2.Final</version>
187 </dependency>
econwarbceb18d2019-04-23 13:32:22 +0000188 <dependency>
econwar74b69ed2019-04-26 13:32:21 +0000189 <groupId>org.dom4j</groupId>
190 <artifactId>dom4j</artifactId>
191 <version>2.1.1</version>
econwarbceb18d2019-04-23 13:32:22 +0000192 </dependency>
efiacor1c11ab82019-04-09 13:52:17 +0000193 </dependencies>
194 <profiles>
195 <profile>
196 <id>docker</id>
197 <properties>
198 <skipTests>true</skipTests>
199 </properties>
200 <build>
201 <plugins>
202 <plugin>
203 <groupId>org.codehaus.gmaven</groupId>
204 <artifactId>gmaven-plugin</artifactId>
205 </plugin>
206 <plugin>
207 <groupId>io.fabric8</groupId>
208 <artifactId>docker-maven-plugin</artifactId>
209 <configuration>
210 <images>
211 <image>
212 <name>${datarouter.prov.image.name}</name>
213 <build>
214 <cleanup>try</cleanup>
215 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
216 <dockerFile>Dockerfile</dockerFile>
217 <tags>
218 <tag>${dockertag1}</tag>
219 <tag>${dockertag2}</tag>
220 </tags>
221 </build>
222 </image>
223 </images>
224 </configuration>
225 <executions>
226 <execution>
227 <id>generate-images</id>
228 <phase>install</phase>
229 <goals>
230 <goal>build</goal>
231 </goals>
232 </execution>
233 <execution>
234 <id>push-images</id>
235 <phase>deploy</phase>
236 <goals>
237 <goal>push</goal>
238 </goals>
239 </execution>
240 </executions>
241 </plugin>
242 </plugins>
243 </build>
244 </profile>
245 </profiles>
246 <build>
247 <finalName>datarouter-prov</finalName>
248 <resources>
249 <resource>
250 <directory>src/main/resources</directory>
251 <filtering>true</filtering>
252 <includes>
253 <include>**/*.properties</include>
254 </includes>
255 </resource>
256 <resource>
257 <directory>src/main/resources</directory>
258 <filtering>true</filtering>
259 <includes>
260 <include>**/provserver.properties</include>
261 </includes>
262 </resource>
263 <resource>
264 <directory>src/main/resources</directory>
265 <filtering>true</filtering>
266 <includes>
267 <include>**/EelfMessages.properties</include>
268 </includes>
269 </resource>
270 </resources>
271 <plugins>
272 <plugin>
273 <artifactId>maven-assembly-plugin</artifactId>
274 <version>2.4</version>
275 <configuration>
276 <descriptorRefs>
277 <descriptorRef>jar-with-dependencies</descriptorRef>
278 </descriptorRefs>
279 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
280 <archive>
281 <manifest>
282 <addClasspath>true</addClasspath>
283 <mainClass>org.onap.dmaap.datarouter.provisioning.Main</mainClass>
284 </manifest>
285 </archive>
286 </configuration>
287 <executions>
288 <execution>
289 <id>make-assembly</id>
290 <!-- this is used for inheritance merges -->
291 <phase>package</phase>
292 <!-- bind to the packaging phase -->
293 <goals>
294 <goal>single</goal>
295 </goals>
296 </execution>
297 </executions>
298 </plugin>
299 <plugin>
300 <groupId>org.apache.maven.plugins</groupId>
301 <artifactId>maven-compiler-plugin</artifactId>
302 </plugin>
303 <!-- Copy files to docker-stage to be included in image -->
304 <plugin>
305 <artifactId>maven-resources-plugin</artifactId>
306 <version>2.7</version>
307 <executions>
308 <execution>
309 <id>copy-dockerfile</id>
310 <phase>validate</phase>
311 <goals>
312 <goal>copy-resources</goal>
313 </goals>
314 <configuration>
315 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
316 <overwrite>true</overwrite>
317 <resources>
318 <resource>
319 <directory>${basedir}/src/main/resources/docker</directory>
320 <filtering>true</filtering>
321 <includes>
322 <include>Dockerfile</include>
323 </includes>
324 </resource>
325 </resources>
326 </configuration>
327 </execution>
328 <execution>
329 <id>copy-startup-script</id>
330 <phase>validate</phase>
331 <goals>
332 <goal>copy-resources</goal>
333 </goals>
334 <configuration>
335 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
336 <overwrite>true</overwrite>
337 <resources>
338 <resource>
339 <directory>${basedir}/src/main/resources/docker</directory>
340 <filtering>true</filtering>
341 <includes>
342 <include>startup.sh</include>
343 </includes>
344 </resource>
345 </resources>
346 </configuration>
347 </execution>
348 <execution>
349 <id>copy-resources-2</id>
350 <phase>validate</phase>
351 <goals>
352 <goal>copy-resources</goal>
353 </goals>
354 <configuration>
355 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
356 <resources>
357 <resource>
358 <directory>${basedir}/src/main/resources</directory>
359 <includes>
360 <include>misc/**</include>
361 <include>**/**</include>
362 </includes>
363 </resource>
364 </resources>
365 </configuration>
366 </execution>
367 <execution>
368 <id>copy-resources-3</id>
369 <phase>validate</phase>
370 <goals>
371 <goal>copy-resources</goal>
372 </goals>
373 <configuration>
374 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
375 <resources>
376 <resource>
377 <directory>${basedir}/data</directory>
378 <includes>
379 <include>misc/**</include>
380 <include>**/**</include>
381 </includes>
382 </resource>
383 </resources>
384 </configuration>
385 </execution>
386 <execution>
387 <id>copy-resources-4</id>
388 <phase>validate</phase>
389 <goals>
390 <goal>copy-resources</goal>
391 </goals>
392 <configuration>
393 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
394 <resources>
395 <resource>
396 <directory>${basedir}/aaf_certs</directory>
397 <includes>
398 <include>misc/**</include>
399 <include>**/**</include>
400 </includes>
401 </resource>
402 </resources>
403 </configuration>
404 </execution>
405 </executions>
406 </plugin>
407 <plugin>
408 <groupId>org.apache.maven.plugins</groupId>
409 <artifactId>maven-dependency-plugin</artifactId>
410 <executions>
411 <execution>
412 <id>copy-dependencies</id>
413 <phase>package</phase>
414 <configuration>
415 <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory>
416 </configuration>
417 </execution>
418 </executions>
419 </plugin>
420 <plugin>
421 <groupId>org.apache.maven.plugins</groupId>
422 <artifactId>maven-javadoc-plugin</artifactId>
423 </plugin>
424 <plugin>
425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-source-plugin</artifactId>
427 </plugin>
428 <plugin>
429 <groupId>org.codehaus.mojo</groupId>
430 <artifactId>cobertura-maven-plugin</artifactId>
431 </plugin>
432 <plugin>
efiacor1c11ab82019-04-09 13:52:17 +0000433 <groupId>org.jacoco</groupId>
434 <artifactId>jacoco-maven-plugin</artifactId>
435 <configuration>
436 <excludes>
437 <exclude>**/src/main/java/org/onap/dmaap/datarouter/reports/**</exclude>
438 </excludes>
439 </configuration>
440 </plugin>
441 <plugin>
442 <groupId>org.codehaus.mojo</groupId>
443 <artifactId>properties-maven-plugin</artifactId>
444 </plugin>
445 </plugins>
446 </build>
447</project>