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