blob: cbfe98b343cec59cbe57c17c330070149fafb2a9 [file] [log] [blame]
vasrazfa5bdf02019-08-26 13:39:26 +00001<project xmlns="http://maven.apache.org/POM/4.0.0"
ys969316a9fce2020-01-19 13:50:02 +02002 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
vasrazfa5bdf02019-08-26 13:39:26 +00005
ys969316a9fce2020-01-19 13:50:02 +02006 <artifactId>catalog-be</artifactId>
7 <packaging>war</packaging>
vasrazfa5bdf02019-08-26 13:39:26 +00008
ys969316a9fce2020-01-19 13:50:02 +02009 <parent>
10 <groupId>org.openecomp.sdc</groupId>
11 <artifactId>sdc-main</artifactId>
shrek200065f0aa32020-02-02 10:40:15 +020012 <version>1.6.1-SNAPSHOT</version>
ys969316a9fce2020-01-19 13:50:02 +020013 </parent>
vasrazfa5bdf02019-08-26 13:39:26 +000014
ys969316a9fce2020-01-19 13:50:02 +020015 <properties>
16 <java-hamcrest.version>2.0.0.0</java-hamcrest.version>
17 <swagger.version>2.0.8</swagger.version>
18 <swagger.jaxrs.version>1.5.22</swagger.jaxrs.version>
19 </properties>
vasrazfa5bdf02019-08-26 13:39:26 +000020
ys969316a9fce2020-01-19 13:50:02 +020021 <dependencies>
22 <!--JSON and YAML Parsing-->
23 <dependency>
24 <groupId>com.fasterxml.jackson.dataformat</groupId>
25 <artifactId>jackson-dataformat-yaml</artifactId>
26 <version>${jackson.version}</version>
27 <scope>compile</scope>
28 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +000029
ys969316a9fce2020-01-19 13:50:02 +020030 <dependency>
31 <groupId>com.fasterxml.jackson.core</groupId>
32 <artifactId>jackson-databind</artifactId>
33 <version>${jackson.version}</version>
34 <scope>compile</scope>
35 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +000036
ys969316a9fce2020-01-19 13:50:02 +020037 <dependency>
ys969316a9fce2020-01-19 13:50:02 +020038 <groupId>org.onap.sdc.common</groupId>
39 <artifactId>onap-generic-artifact-browser-service</artifactId>
40 <version>${project.version}</version>
41 <scope>compile</scope>
42 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +000043
ys969316a9fce2020-01-19 13:50:02 +020044 <!-- Swagger Dependencies Start -->
45 <dependency>
46 <groupId>io.swagger.core.v3</groupId>
47 <artifactId>swagger-annotations</artifactId>
48 <version>${swagger.version}</version>
49 </dependency>
50 <dependency>
51 <groupId>io.swagger</groupId>
52 <artifactId>swagger-jersey2-jaxrs</artifactId>
53 <version>${swagger.jaxrs.version}</version>
54 </dependency>
55 <!-- Swagger Dependencies End -->
vasrazfa5bdf02019-08-26 13:39:26 +000056
ys969316a9fce2020-01-19 13:50:02 +020057 <dependency>
58 <groupId>org.openecomp.sdc</groupId>
59 <artifactId>common-app-api</artifactId>
60 <version>${project.version}</version>
61 <scope>compile</scope>
62 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +000063
ys969316a9fce2020-01-19 13:50:02 +020064 <dependency>
65 <groupId>org.openecomp.sdc.be</groupId>
66 <artifactId>common-be</artifactId>
67 <version>${project.version}</version>
68 <scope>compile</scope>
69 </dependency>
70 <dependency>
71 <groupId>org.openecomp.sdc.be</groupId>
72 <artifactId>common-be</artifactId>
73 <version>${project.version}</version>
74 <type>test-jar</type>
75 <scope>test</scope>
76 </dependency>
77 <dependency>
78 <groupId>org.openecomp.sdc.be</groupId>
79 <artifactId>catalog-dao</artifactId>
80 <version>${project.version}</version>
81 <scope>compile</scope>
82 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +000083
ys969316a9fce2020-01-19 13:50:02 +020084 <dependency>
85 <groupId>org.openecomp.sdc.be</groupId>
86 <artifactId>catalog-model</artifactId>
87 <version>${project.version}</version>
88 <scope>compile</scope>
89 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +000090
ys969316a9fce2020-01-19 13:50:02 +020091 <dependency>
92 <groupId>ch.qos.logback</groupId>
93 <artifactId>logback-classic</artifactId>
94 <version>${logback.version}</version>
95 <scope>compile</scope>
96 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +000097
ys969316a9fce2020-01-19 13:50:02 +020098 <!-- Snake Yaml -->
99 <dependency>
100 <groupId>org.yaml</groupId>
101 <artifactId>snakeyaml</artifactId>
102 <version>${snakeyaml.version}</version>
103 <scope>compile</scope>
104 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000105
ys969316a9fce2020-01-19 13:50:02 +0200106 <!-- File changes listener -->
107 <dependency>
108 <groupId>org.apache.commons</groupId>
109 <artifactId>commons-jci-core</artifactId>
110 <version>${commons-jci-core.version}</version>
111 <scope>compile</scope>
112 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000113
ys969316a9fce2020-01-19 13:50:02 +0200114 <!-- Gson -->
115 <dependency>
116 <groupId>com.google.code.gson</groupId>
117 <artifactId>gson</artifactId>
118 <version>${gson.version}</version>
119 <scope>compile</scope>
120 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000121
ys969316a9fce2020-01-19 13:50:02 +0200122 <!-- jersey -->
123 <dependency>
124 <groupId>org.glassfish.jersey.media</groupId>
125 <artifactId>jersey-media-json-jackson</artifactId>
126 <version>${jersey-bom.version}</version>
127 <scope>compile</scope>
128 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000129
ys969316a9fce2020-01-19 13:50:02 +0200130 <dependency>
131 <groupId>org.glassfish.jersey.containers</groupId>
132 <artifactId>jersey-container-servlet-core</artifactId>
133 <version>${jersey-bom.version}</version>
134 <scope>compile</scope>
135 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000136
ys969316a9fce2020-01-19 13:50:02 +0200137 <dependency>
138 <groupId>org.glassfish.jersey.media</groupId>
139 <artifactId>jersey-media-multipart</artifactId>
140 <version>${jersey-bom.version}</version>
141 <scope>compile</scope>
142 </dependency>
143 <dependency>
144 <groupId>org.glassfish.jersey.ext</groupId>
145 <artifactId>jersey-spring4</artifactId>
146 <version>${jersey-bom.version}</version>
147 <exclusions>
148 <exclusion>
149 <groupId>org.springframework</groupId>
150 <artifactId>spring-web</artifactId>
151 </exclusion>
152 <exclusion>
153 <groupId>org.springframework</groupId>
154 <artifactId>spring-beans</artifactId>
155 </exclusion>
156 <exclusion>
157 <groupId>org.springframework</groupId>
158 <artifactId>spring-core</artifactId>
159 </exclusion>
160 <exclusion>
161 <groupId>org.springframework</groupId>
162 <artifactId>spring-aop</artifactId>
163 </exclusion>
164 <!-- Transitive dependency of spring-bridge -->
165 <exclusion>
166 <groupId>org.springframework</groupId>
167 <artifactId>spring-context</artifactId>
168 </exclusion>
169 </exclusions>
vasrazfa5bdf02019-08-26 13:39:26 +0000170
ys969316a9fce2020-01-19 13:50:02 +0200171 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000172
ys969316a9fce2020-01-19 13:50:02 +0200173 <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
174 currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
175 <dependency>
176 <groupId>org.glassfish.hk2.external</groupId>
177 <artifactId>asm-all-repackaged</artifactId>
178 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000179
ys969316a9fce2020-01-19 13:50:02 +0200180 <dependency>
181 <groupId>org.glassfish.jersey.ext</groupId>
182 <artifactId>jersey-bean-validation</artifactId>
183 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000184
ys969316a9fce2020-01-19 13:50:02 +0200185 <!-- http client -->
186 <dependency>
187 <groupId>org.apache.httpcomponents</groupId>
188 <artifactId>httpclient</artifactId>
189 <version>${httpclient.version}</version>
190 <scope>compile</scope>
191 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000192
ys969316a9fce2020-01-19 13:50:02 +0200193 <dependency>
194 <groupId>org.apache.httpcomponents</groupId>
195 <artifactId>httpcore</artifactId>
196 <version>${httpcore.version}</version>
197 <scope>compile</scope>
198 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000199
ys969316a9fce2020-01-19 13:50:02 +0200200 <dependency>
201 <groupId>commons-logging</groupId>
202 <artifactId>commons-logging</artifactId>
203 <version>${commons-logging}</version>
204 <scope>compile</scope>
205 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000206
ys969316a9fce2020-01-19 13:50:02 +0200207 <dependency>
208 <groupId>commons-codec</groupId>
209 <artifactId>commons-codec</artifactId>
210 <version>${commons-codec}</version>
211 <scope>compile</scope>
212 </dependency>
213 <!-- http client END -->
vasrazfa5bdf02019-08-26 13:39:26 +0000214
ys969316a9fce2020-01-19 13:50:02 +0200215 <dependency>
216 <groupId>javax.servlet</groupId>
217 <artifactId>javax.servlet-api</artifactId>
218 <version>${servlet-api.version}</version>
219 <scope>provided</scope>
220 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000221
ys969316a9fce2020-01-19 13:50:02 +0200222 <dependency>
223 <groupId>org.eclipse.jgit</groupId>
224 <artifactId>org.eclipse.jgit</artifactId>
225 <version>3.4.1.201406201815-r</version>
226 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000227
ys969316a9fce2020-01-19 13:50:02 +0200228 <!-- spring - used by A4C -->
229 <dependency>
230 <groupId>org.springframework</groupId>
231 <artifactId>spring-core</artifactId>
232 <version>${spring.version}</version>
233 <scope>compile</scope>
234 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000235
ys969316a9fce2020-01-19 13:50:02 +0200236 <dependency>
237 <groupId>org.springframework</groupId>
238 <artifactId>spring-context</artifactId>
239 <version>${spring.version}</version>
240 <scope>compile</scope>
241 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000242
ys969316a9fce2020-01-19 13:50:02 +0200243 <dependency>
244 <groupId>org.springframework</groupId>
245 <artifactId>spring-web</artifactId>
246 <version>${spring.version}</version>
247 <scope>compile</scope>
248 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000249
ys969316a9fce2020-01-19 13:50:02 +0200250 <dependency>
251 <groupId>org.springframework</groupId>
252 <artifactId>spring-webmvc</artifactId>
253 <version>${spring.version}</version>
254 <scope>compile</scope>
255 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000256
ys969316a9fce2020-01-19 13:50:02 +0200257 <dependency>
258 <groupId>org.springframework</groupId>
259 <artifactId>spring-aop</artifactId>
260 <version>${spring.version}</version>
261 <scope>compile</scope>
262 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000263
ys969316a9fce2020-01-19 13:50:02 +0200264 <dependency>
265 <groupId>org.springframework</groupId>
266 <artifactId>spring-beans</artifactId>
267 <version>${spring.version}</version>
268 <scope>compile</scope>
269 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000270
ys969316a9fce2020-01-19 13:50:02 +0200271 <dependency>
272 <groupId>org.springframework</groupId>
273 <artifactId>spring-expression</artifactId>
274 <version>${spring.version}</version>
275 <scope>compile</scope>
276 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000277
ys969316a9fce2020-01-19 13:50:02 +0200278 <!-- Spring integration (optional) -->
279 <dependency>
280 <groupId>org.togglz</groupId>
281 <artifactId>togglz-spring-web</artifactId>
282 <version>${togglz.version}</version>
283 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000284
ys969316a9fce2020-01-19 13:50:02 +0200285 <dependency>
286 <groupId>org.codehaus.janino</groupId>
287 <artifactId>janino</artifactId>
288 <version>${janino.version}</version>
289 <scope>compile</scope>
290 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000291
ys969316a9fce2020-01-19 13:50:02 +0200292 <dependency>
293 <groupId>org.codehaus.janino</groupId>
294 <artifactId>commons-compiler</artifactId>
295 <version>${janino.version}</version>
296 <scope>compile</scope>
297 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000298
ys969316a9fce2020-01-19 13:50:02 +0200299 <dependency>
300 <groupId>com.google.guava</groupId>
301 <artifactId>guava</artifactId>
302 <version>${guava.version}</version>
303 <scope>compile</scope>
304 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000305
ys969316a9fce2020-01-19 13:50:02 +0200306 <dependency>
307 <groupId>org.janusgraph</groupId>
308 <artifactId>janusgraph-core</artifactId>
309 <version>${janusgraph.version}</version>
310 <scope>compile</scope>
311 <exclusions>
312 <exclusion>
313 <groupId>org.json</groupId>
314 <artifactId>json</artifactId>
315 </exclusion>
316 <exclusion>
317 <artifactId>slf4j-log4j12</artifactId>
318 <groupId>org.slf4j</groupId>
319 </exclusion>
320 <exclusion>
321 <artifactId>commons-collections</artifactId>
322 <groupId>commons-collections</groupId>
323 </exclusion>
324 <exclusion>
325 <groupId>org.apache.thrift</groupId>
326 <artifactId>libthrift</artifactId>
327 </exclusion>
328 </exclusions>
329 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000330
ys969316a9fce2020-01-19 13:50:02 +0200331 <dependency>
332 <groupId>org.janusgraph</groupId>
shrek20000594c412020-01-30 14:52:49 +0200333 <artifactId>janusgraph-cql</artifactId>
ys969316a9fce2020-01-19 13:50:02 +0200334 <version>${janusgraph.version}</version>
335 <scope>compile</scope>
336 <exclusions>
337 <exclusion>
338 <groupId>org.slf4j</groupId>
339 <artifactId>slf4j-log4j12</artifactId>
340 </exclusion>
341 <exclusion>
shrek20000594c412020-01-30 14:52:49 +0200342 <groupId>org.json</groupId>
343 <artifactId>json</artifactId>
344 </exclusion>
345 <exclusion>
346 <artifactId>commons-collections</artifactId>
347 <groupId>commons-collections</groupId>
348 </exclusion>
349 <exclusion>
350 <artifactId>groovy</artifactId>
351 <groupId>org.codehaus.groovy</groupId>
352 </exclusion>
353 <exclusion>
ys969316a9fce2020-01-19 13:50:02 +0200354 <groupId>io.netty</groupId>
355 <artifactId>netty-all</artifactId>
356 </exclusion>
357 </exclusions>
358 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000359
ys969316a9fce2020-01-19 13:50:02 +0200360 <dependency>
361 <groupId>org.apache.commons</groupId>
362 <artifactId>commons-lang3</artifactId>
363 <version>${lang3.version}</version>
364 <scope>compile</scope>
365 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000366
ys969316a9fce2020-01-19 13:50:02 +0200367 <dependency>
368 <groupId>com.googlecode.json-simple</groupId>
369 <artifactId>json-simple</artifactId>
370 <version>${json-simple.version}</version>
371 <scope>compile</scope>
vasrazfa5bdf02019-08-26 13:39:26 +0000372
ys969316a9fce2020-01-19 13:50:02 +0200373 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000374
ys969316a9fce2020-01-19 13:50:02 +0200375 <!-- functional java -->
376 <dependency>
377 <groupId>org.functionaljava</groupId>
378 <artifactId>functionaljava</artifactId>
379 <version>${functionaljava.version}</version>
380 <scope>compile</scope>
381 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000382
ys969316a9fce2020-01-19 13:50:02 +0200383 <!-- Aspects -->
384 <dependency>
385 <groupId>com.jcabi</groupId>
386 <artifactId>jcabi-aspects</artifactId>
387 <version>${jcabi.version}</version>
388 <scope>compile</scope>
389 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000390
ys969316a9fce2020-01-19 13:50:02 +0200391 <dependency>
392 <groupId>org.aspectj</groupId>
393 <artifactId>aspectjrt</artifactId>
394 <version>${aspectjrt.version}</version>
395 <scope>compile</scope>
396 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000397
vasrazfa5bdf02019-08-26 13:39:26 +0000398
ys969316a9fce2020-01-19 13:50:02 +0200399 <!-- CAMBRIA CLIENT for U-EB -->
400 <dependency>
401 <groupId>com.att.nsa</groupId>
402 <artifactId>cambriaClient</artifactId>
403 <version>1.2.1-oss</version>
404 <scope>compile</scope>
405 <exclusions>
406 <exclusion>
407 <groupId>com.att.nsa</groupId>
408 <artifactId>saClientLibrary</artifactId>
409 </exclusion>
410 </exclusions>
411 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000412
ys969316a9fce2020-01-19 13:50:02 +0200413 <dependency>
414 <groupId>org.json</groupId>
415 <artifactId>json</artifactId>
416 <version>20131018</version>
417 <scope>compile</scope>
418 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000419
ys969316a9fce2020-01-19 13:50:02 +0200420 <!-- CASSANDRA -->
421 <dependency>
422 <groupId>com.datastax.cassandra</groupId>
423 <artifactId>cassandra-driver-core</artifactId>
424 <version>${cassandra.driver.version}</version>
425 <scope>compile</scope>
426 </dependency>
427 <dependency>
428 <groupId>com.datastax.cassandra</groupId>
429 <artifactId>cassandra-driver-mapping</artifactId>
430 <version>${cassandra.driver.version}</version>
431 <scope>compile</scope>
432 </dependency>
433 <dependency>
434 <groupId>org.apache.thrift</groupId>
435 <artifactId>libthrift</artifactId>
436 <version>${libthrift.version}</version>
437 </dependency>
438 <!-- CASSANDRA END -->
vasrazfa5bdf02019-08-26 13:39:26 +0000439
ys969316a9fce2020-01-19 13:50:02 +0200440 <!-- Inserted for ECOMP Portal Integration -->
441 <dependency>
442 <groupId>org.onap.portal.sdk</groupId>
443 <artifactId>epsdk-fw</artifactId>
444 <version>${ecomp.version}</version>
445 <scope>compile</scope>
446 <exclusions>
447 <exclusion>
448 <groupId>com.att.nsa</groupId>
449 <artifactId>cambriaClient</artifactId>
450 </exclusion>
451 <exclusion>
452 <artifactId>slf4j-log4j12</artifactId>
453 <groupId>org.slf4j</groupId>
454 </exclusion>
455 <exclusion>
456 <artifactId>powermock-api-mockito</artifactId>
457 <groupId>org.powermock</groupId>
458 </exclusion>
459 <exclusion>
460 <groupId> org.onap.aaf.authz</groupId>
461 <artifactId> aaf-cadi-aaf</artifactId>
462 </exclusion>
463 <exclusion>
464 <artifactId>aaf-cadi-core</artifactId>
465 <groupId>org.onap.aaf.authz</groupId>
466 </exclusion>
467 <exclusion>
468 <artifactId>commons-codec</artifactId>
469 <groupId>commons-codec</groupId>
470 </exclusion>
471 </exclusions>
472 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000473
ys969316a9fce2020-01-19 13:50:02 +0200474 <!--Jetty Proxy-->
475 <dependency>
476 <groupId>org.eclipse.jetty</groupId>
477 <artifactId>jetty-proxy</artifactId>
478 <version>${jetty.version}</version>
479 <scope>compile</scope>
480 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000481
ys969316a9fce2020-01-19 13:50:02 +0200482 <dependency>
483 <groupId>org.eclipse.jetty</groupId>
484 <artifactId>jetty-servlets</artifactId>
485 <version>${jetty.version}</version>
486 <scope>compile</scope>
487 </dependency>
488 <!-- System metrics -->
489 <dependency>
490 <groupId>org.fusesource</groupId>
491 <artifactId>sigar</artifactId>
492 <version>${sigar.version}</version>
493 <scope>compile</scope>
494 </dependency>
495 <dependency>
496 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
497 <artifactId>dmaapClient</artifactId>
498 <version>1.1.3</version>
499 <scope>compile</scope>
500 <exclusions>
501 <exclusion>
502 <groupId>com.att.aft</groupId>
503 <artifactId>dme2</artifactId>
504 </exclusion>
505 </exclusions>
506 </dependency>
507 <dependency>
508 <groupId>com.att.aft</groupId>
509 <artifactId>dme2</artifactId>
510 <version>3.1.200-oss</version>
511 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000512
ys969316a9fce2020-01-19 13:50:02 +0200513 <dependency>
514 <groupId>javax.jms</groupId>
515 <artifactId>jms</artifactId>
516 <version>1.1</version>
517 <scope>provided</scope>
518 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000519
ys969316a9fce2020-01-19 13:50:02 +0200520 <!-- CADI -->
521 <dependency>
522 <groupId>org.onap.aaf.authz</groupId>
523 <artifactId>aaf-cadi-aaf</artifactId>
524 <version>${cadi.version}</version>
525 <exclusions>
526 <exclusion>
527 <groupId>com.datastax.cassandra</groupId>
528 <artifactId>cassandra-driver-core</artifactId>
529 </exclusion>
530 <exclusion>
531 <groupId>org.slf4j</groupId>
532 <artifactId>slf4j-log4j12</artifactId>
533 </exclusion>
534 </exclusions>
535 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000536
ys969316a9fce2020-01-19 13:50:02 +0200537 <!-- TEST -->
538 <dependency>
539 <groupId>org.assertj</groupId>
540 <artifactId>assertj-core</artifactId>
541 <scope>test</scope>
542 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000543
ys969316a9fce2020-01-19 13:50:02 +0200544 <dependency>
545 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
546 <artifactId>jersey-test-framework-provider-bundle</artifactId>
547 <version>${jersey-bom.version}</version>
548 <type>pom</type>
549 <scope>test</scope>
550 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000551
ys969316a9fce2020-01-19 13:50:02 +0200552 <dependency>
553 <groupId>org.glassfish.jersey.core</groupId>
554 <artifactId>jersey-client</artifactId>
555 <version>${jersey-bom.version}</version>
556 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000557
ys969316a9fce2020-01-19 13:50:02 +0200558 <dependency>
559 <groupId>com.github.tomakehurst</groupId>
560 <artifactId>wiremock-standalone</artifactId>
561 <scope>test</scope>
562 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000563
ys969316a9fce2020-01-19 13:50:02 +0200564 <dependency>
565 <groupId>org.eclipse.jetty</groupId>
566 <artifactId>jetty-webapp</artifactId>
567 <version>${jetty.version}</version>
568 <scope>test</scope>
569 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000570
ys969316a9fce2020-01-19 13:50:02 +0200571 <dependency>
572 <groupId>junit</groupId>
573 <artifactId>junit</artifactId>
574 <version>${junit.version}</version>
575 <scope>test</scope>
576 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000577
ys969316a9fce2020-01-19 13:50:02 +0200578 <dependency>
579 <groupId>org.mockito</groupId>
580 <artifactId>mockito-core</artifactId>
581 <scope>test</scope>
582 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000583
ys969316a9fce2020-01-19 13:50:02 +0200584 <dependency>
585 <groupId>org.springframework</groupId>
586 <artifactId>spring-test</artifactId>
587 <version>${spring.version}</version>
588 <scope>test</scope>
589 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000590
ys969316a9fce2020-01-19 13:50:02 +0200591 <dependency>
592 <groupId>org.springframework</groupId>
593 <artifactId>spring-tx</artifactId>
594 <version>${spring.version}</version>
595 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000596
ys969316a9fce2020-01-19 13:50:02 +0200597 <dependency>
598 <groupId>io.cucumber</groupId>
599 <artifactId>cucumber-java</artifactId>
600 <scope>test</scope>
601 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000602
ys969316a9fce2020-01-19 13:50:02 +0200603 <dependency>
604 <groupId>io.cucumber</groupId>
605 <artifactId>cucumber-junit</artifactId>
606 <scope>test</scope>
607 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000608
ys969316a9fce2020-01-19 13:50:02 +0200609 <dependency>
610 <groupId>org.jmockit</groupId>
611 <artifactId>jmockit</artifactId>
612 <version>${jmockit.version}</version>
613 <scope>test</scope>
614 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000615
ys969316a9fce2020-01-19 13:50:02 +0200616 <dependency>
617 <groupId>com.google.code.bean-matchers</groupId>
618 <artifactId>bean-matchers</artifactId>
619 <version>0.11</version>
620 <scope>test</scope>
621 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000622
ys969316a9fce2020-01-19 13:50:02 +0200623 <dependency>
624 <groupId>org.hamcrest</groupId>
625 <artifactId>java-hamcrest</artifactId>
626 <version>${java-hamcrest.version}</version>
627 <scope>test</scope>
628 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000629
ys969316a9fce2020-01-19 13:50:02 +0200630 <dependency>
631 <groupId>org.codehaus.groovy</groupId>
632 <artifactId>groovy</artifactId>
633 <version>2.4.8</version>
634 </dependency>
vasrazfa5bdf02019-08-26 13:39:26 +0000635
ys969316a9fce2020-01-19 13:50:02 +0200636 <dependency>
637 <groupId>io.netty</groupId>
638 <artifactId>netty-handler</artifactId>
639 </dependency>
640 <dependency>
641 <groupId>org.onap.sdc.common</groupId>
642 <artifactId>onap-tosca-datatype</artifactId>
643 <version>${project.version}</version>
644 </dependency>
645 <dependency>
646 <groupId>org.apache.commons</groupId>
647 <artifactId>commons-collections4</artifactId>
648 <version>${commons.collections.version}</version>
649 </dependency>
650 <dependency>
651 <groupId>org.codehaus.jackson</groupId>
652 <artifactId>jackson-mapper-asl</artifactId>
653 <version>${jackson.mapper.version}</version>
654 </dependency>
655 <dependency>
656 <groupId>org.onap.sdc.sdc-be-common</groupId>
657 <artifactId>security-util-lib</artifactId>
Yuli Shlosberg47fc40a2020-01-23 11:50:40 +0200658 <version>${security.util.lib.version}</version>
ys969316a9fce2020-01-19 13:50:02 +0200659 </dependency>
660 </dependencies>
vasrazfa5bdf02019-08-26 13:39:26 +0000661
ys969316a9fce2020-01-19 13:50:02 +0200662 <build>
vasrazfa5bdf02019-08-26 13:39:26 +0000663
ys969316a9fce2020-01-19 13:50:02 +0200664 <finalName>${project.artifactId}-${project.version}</finalName>
vasrazfa5bdf02019-08-26 13:39:26 +0000665
vasrazfa5bdf02019-08-26 13:39:26 +0000666 <plugins>
ys969316a9fce2020-01-19 13:50:02 +0200667 <plugin>
668 <groupId>org.apache.maven.plugins</groupId>
669 <artifactId>maven-war-plugin</artifactId>
vasrazfa5bdf02019-08-26 13:39:26 +0000670 <configuration>
ys969316a9fce2020-01-19 13:50:02 +0200671 <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
672 WEB-INF/classes/elasticsearch.yml,
673 WEB-INF/classes/portal.properties
674 </packagingExcludes>
675 <archive>
676 <manifestEntries>
677 <SDC-Version>${project.version}</SDC-Version>
678 </manifestEntries>
679 <manifest>
680 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
681 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
682 </manifest>
683 </archive>
vasrazfa5bdf02019-08-26 13:39:26 +0000684
ys969316a9fce2020-01-19 13:50:02 +0200685 <webResources>
686 <resource>
687 <directory>src/main/resources</directory>
688 <directory>src/main/resources/swagger</directory>
689 </resource>
690 </webResources>
691 <attachClasses>true</attachClasses>
vasrazfa5bdf02019-08-26 13:39:26 +0000692 </configuration>
ys969316a9fce2020-01-19 13:50:02 +0200693 </plugin>
694 <plugin>
695 <groupId>com.github.sylvainlaurent.maven</groupId>
696 <artifactId>yaml-json-validator-maven-plugin</artifactId>
697 <executions>
698 <execution>
699 <id>validate</id>
700 <phase>validate</phase>
701 <goals>
702 <goal>validate</goal>
703 </goals>
704 <configuration>
705 <validationSets>
706 <validationSet>
707 <includes>
708 <include>src/main/resources/**/*.y*ml</include>
709 <include>src/test/resources/**/*.y*ml</include>
710 </includes>
711 <excludes>
712 <exclude>src/test/resources/artifacts/pnfSoftwareInformation/**</exclude>
713 </excludes>
714 </validationSet>
715 <validationSet>
716 <includes>
717 <include>src/main/resources/**/*.json</include>
718 <include>src/test/resources/**/*.json</include>
719 </includes>
720 </validationSet>
721 </validationSets>
722 </configuration>
723 </execution>
724 </executions>
725 </plugin>
726 <plugin>
727 <groupId>com.jcabi</groupId>
728 <artifactId>jcabi-maven-plugin</artifactId>
729 <version>${jcabi.maven.plugin.version}</version>
730 <executions>
731 <execution>
732 <goals>
733 <goal>ajc</goal>
734 </goals>
735 </execution>
736 </executions>
737 </plugin>
738 <plugin>
739 <groupId>org.apache.maven.plugins</groupId>
740 <artifactId>maven-assembly-plugin</artifactId>
741 <executions>
742 <execution>
743 <id>normatives</id>
744 <phase>package</phase>
745 <goals>
746 <goal>single</goal>
747 </goals>
748 <configuration>
749 <finalName>normatives</finalName>
750 <appendAssemblyId>false</appendAssemblyId>
751 <descriptors>
752 <descriptor>${project.basedir}/normatives.xml</descriptor>
753 </descriptors>
754 </configuration>
755 </execution>
756 </executions>
757 </plugin>
758 <plugin>
759 <groupId>org.apache.maven.plugins</groupId>
760 <artifactId>maven-clean-plugin</artifactId>
761 <executions>
762 <execution>
763 <id>clean.sdc.backend.folder</id>
764 <phase>clean</phase>
765 <goals>
766 <goal>clean</goal>
767 </goals>
768 <configuration>
769 <filesets>
770 <!-- static configuration files -->
771 <fileset>
772 <directory>
773 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
774 </directory>
775 <followSymlinks>false</followSymlinks>
776 <includes>
777 <include>Artifact-Generator.properties</include>
778 <include>error-configuration.yaml</include>
779 <include>ecomp-error-configuration.yaml</include>
780 <include>logback.xml</include>
781 </includes>
782 </fileset>
783 <!-- BE WAR's -->
784 <fileset>
785 <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
786 <followSymlinks>false</followSymlinks>
787 <includes>
788 <include>*.war</include>
789 </includes>
790 </fileset>
791 <fileset>
792 <directory>
793 ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
794 </directory>
795 <followSymlinks>false</followSymlinks>
796 <includes>
797 <include>normatives.tar.gz</include>
798 </includes>
799 </fileset>
vasrazfa5bdf02019-08-26 13:39:26 +0000800
vasrazfa5bdf02019-08-26 13:39:26 +0000801
ys969316a9fce2020-01-19 13:50:02 +0200802 </filesets>
803 </configuration>
804 </execution>
vasrazfa5bdf02019-08-26 13:39:26 +0000805
ys969316a9fce2020-01-19 13:50:02 +0200806 <execution>
807 <id>clean-static-files</id>
808 <phase>clean</phase>
809 <goals>
810 <goal>clean</goal>
811 </goals>
812 <configuration>
813 <filesets>
814 <!-- tosca files -->
815 <fileset>
816 <directory>${project.parent.basedir}/asdctool/tosca</directory>
817 <followSymlinks>false</followSymlinks>
818 </fileset>
819 </filesets>
820 </configuration>
821 </execution>
822 </executions>
823 </plugin>
824 <plugin>
825 <groupId>org.apache.maven.plugins</groupId>
826 <artifactId>maven-resources-plugin</artifactId>
827 <executions>
828 <execution>
829 <id>copy-static-configuration-files</id>
830 <phase>verify</phase>
831 <goals>
832 <goal>copy-resources</goal>
833 </goals>
834 <configuration>
835 <outputDirectory>
836 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
837 </outputDirectory>
838 <resources>
839 <resource>
840 <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
841 </directory>
842 <includes>
843 <include>Artifact-Generator.properties</include>
844 <include>error-configuration.yaml</include>
845 <include>ecomp-error-configuration.yaml</include>
846 <include>logback.xml</include>
847 </includes>
848 </resource>
849 </resources>
850 </configuration>
851 </execution>
852 <execution>
853 <id>copy-tosca-folder</id>
854 <!-- here the phase you need -->
855 <phase>install</phase>
856 <goals>
857 <goal>copy-resources</goal>
858 </goals>
859 <configuration>
860 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
861 <resources>
862 <resource>
863 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
864 </directory>
865 <filtering>true</filtering>
866 </resource>
867 </resources>
868 </configuration>
869 </execution>
870 </executions>
871 </plugin>
872 <plugin>
873 <groupId>com.github.kongchen</groupId>
874 <artifactId>swagger-maven-plugin</artifactId>
875 <version>3.1.0</version>
vasrazfa5bdf02019-08-26 13:39:26 +0000876 <configuration>
ys969316a9fce2020-01-19 13:50:02 +0200877 <apiSources>
878 <apiSource>
879 <springmvc>false</springmvc>
880 <schemes>http</schemes>
881 <basePath>/sdc</basePath>
882 <locations>
883 io.swagger.jaxrs.json;org.openecomp.sdc.be.externalapi.servlet;org.openecomp.sdc.be.distribution.servlet;org.openecomp.normative.api
884 </locations>
885 <info>
886 <title>External Rest API</title>
887 <version>v1.0</version>
888 <description>External Rest API Documentation</description>
889 <termsOfService>
890 http://www.github.com/kongchen/swagger-maven-plugin
891 </termsOfService>
892 </info>
893 <templatePath>${basedir}/templates/strapdown.html.hbs</templatePath>
894 <outputPath>${basedir}/target/generated/swagger-ui/api.html</outputPath>
895 <swaggerDirectory>${basedir}/target/generated/swagger-ui
896 </swaggerDirectory>
897 <swaggerApiReader>io.swagger.jaxrs.config.DefaultJaxrsConfig</swaggerApiReader>
898 </apiSource>
899 </apiSources>
vasrazfa5bdf02019-08-26 13:39:26 +0000900 </configuration>
ys969316a9fce2020-01-19 13:50:02 +0200901 <executions>
902 <execution>
903 <phase>compile</phase>
904 <goals>
905 <goal>generate</goal>
906 </goals>
907 </execution>
908 </executions>
909 </plugin>
vasrazfa5bdf02019-08-26 13:39:26 +0000910 </plugins>
ys969316a9fce2020-01-19 13:50:02 +0200911
912 <pluginManagement>
913 <plugins>
914 <!--This plugin's configuration is used to store Eclipse m2e settings
915 only. It has no influence on the Maven build itself. -->
916 <plugin>
917 <groupId>org.eclipse.m2e</groupId>
918 <artifactId>lifecycle-mapping</artifactId>
919 <version>1.0.0</version>
920 <configuration>
921 <lifecycleMappingMetadata>
922 <pluginExecutions>
923 <pluginExecution>
924 <pluginExecutionFilter>
925 <groupId>com.googlecode.maven-download-plugin</groupId>
926 <artifactId>download-maven-plugin</artifactId>
927 <versionRange>[1.2.1,)</versionRange>
928 <goals>
929 <goal>wget</goal>
930 </goals>
931 </pluginExecutionFilter>
932 <action>
933 <ignore></ignore>
934 </action>
935 </pluginExecution>
936
937 <pluginExecution>
938 <pluginExecutionFilter>
939 <groupId>com.jcabi</groupId>
940 <artifactId>jcabi-maven-plugin</artifactId>
941 <versionRange>[0.0,)</versionRange>
942 <goals>
943 <goal>ajc</goal>
944 </goals>
945 </pluginExecutionFilter>
946 <action>
947 <execute/>
948 </action>
949 </pluginExecution>
950
951 </pluginExecutions>
952 </lifecycleMappingMetadata>
953 </configuration>
954 </plugin>
955 </plugins>
956 </pluginManagement>
957 <!-- Swagger Plugins End -->
958 </build>
959
960 <profiles>
961 <profile>
962 <id>docker-staging</id>
963 <properties>
964 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
965 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
966 </properties>
967 </profile>
968
969 <profile>
970 <id>docker</id>
971 <activation>
972 <activeByDefault>false</activeByDefault>
973 </activation>
974 <build>
975 <plugins>
976 <plugin>
MichaelMorris580e5362020-02-08 22:55:49 +0000977 <artifactId>maven-antrun-plugin</artifactId>
978 <version>1.8</version>
979 <executions>
980 <execution>
981 <id>copy-context-file</id>
982 <phase>validate</phase>
983 <configuration>
984 <target>
985 <copy file="sdc-backend/context.xml.template" tofile="sdc-backend/context.xml"/>
986 </target>
987 </configuration>
988 <goals>
989 <goal>run</goal>
990 </goals>
991 </execution>
992 <execution>
993 <id>set-version-in-context-file</id>
994 <phase>generate-resources</phase>
995 <configuration>
996 <target>
997 <replace file="sdc-backend/context.xml">
998 <replacetoken>projectversion</replacetoken>
999 <replacevalue>${project.version}</replacevalue>
1000 </replace>
1001 </target>
1002 </configuration>
1003 <goals>
1004 <goal>run</goal>
1005 </goals>
1006 </execution>
1007 </executions>
1008 </plugin>
1009 <plugin>
ys969316a9fce2020-01-19 13:50:02 +02001010 <groupId>org.apache.maven.plugins</groupId>
1011 <artifactId>maven-resources-plugin</artifactId>
1012 <executions>
1013 <execution>
1014 <id>copy-resources-apidocs</id>
1015 <phase>verify</phase>
1016 <goals>
1017 <goal>copy-resources</goal>
1018 </goals>
1019 <configuration>
1020 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
1021 <resources>
1022 <resource>
1023 <directory>
1024 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
1025 </directory>
1026 <includes>
1027 <include>api-docs.war</include>
1028 </includes>
1029 </resource>
1030 </resources>
1031 </configuration>
1032 </execution>
1033
1034 <execution>
1035 <id>copy-resources-be</id>
1036 <phase>verify</phase>
1037 <goals>
1038 <goal>copy-resources</goal>
1039 </goals>
1040 <configuration>
1041 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
1042 <resources>
1043 <resource>
1044 <directory>${project.parent.basedir}/catalog-be/target</directory>
1045 <includes>
1046 <include>catalog-be-${project.version}.war</include>
1047 </includes>
1048 </resource>
1049 <resource>
1050 <directory>
1051 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
1052 </directory>
1053 <includes>
1054 <include>onboarding-be-${project.version}.war</include>
1055 </includes>
1056 </resource>
1057 </resources>
1058 </configuration>
1059 </execution>
1060 <execution>
1061 <id>copy-normatives</id>
1062 <phase>verify</phase>
1063 <goals>
1064 <goal>copy-resources</goal>
1065 </goals>
1066 <configuration>
1067 <outputDirectory>
1068 sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
1069 </outputDirectory>
1070 <resources>
1071 <resource>
1072 <directory>${project.parent.basedir}/catalog-be/target</directory>
1073 <includes>
1074 <include>normatives.tar.gz</include>
1075 </includes>
1076 </resource>
1077 </resources>
1078 </configuration>
1079 </execution>
1080 </executions>
1081 </plugin>
1082 <plugin>
1083 <groupId>io.fabric8</groupId>
1084 <artifactId>docker-maven-plugin</artifactId>
1085 <configuration>
1086 <apiVersion>1.23</apiVersion>
1087 <registry>nexus3.onap.org:10001</registry>
1088 <authConfig>
1089 <pull>
1090 <username>docker</username>
1091 <password>docker</password>
1092 </pull>
1093 </authConfig>
1094 <images>
1095
1096 <!-- Build backend image -->
1097 <image>
1098 <name>onap/sdc-backend</name>
1099 <alias>sdc-backend</alias>
1100 <build>
1101 <cleanup>try</cleanup>
1102 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
1103 <tags>
1104 <tag>${docker.tag}</tag>
1105 <tag>
1106 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1107 </tag>
1108 </tags>
1109 </build>
1110 </image>
1111 <!-- Build backend-init image -->
1112 <image>
1113 <name>onap/sdc-backend-init</name>
1114 <alias>sdc-backend-init</alias>
1115 <build>
1116 <cleanup>try</cleanup>
1117 <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1118 <tags>
1119 <tag>${docker.tag}</tag>
1120 <tag>
1121 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1122 </tag>
1123 </tags>
1124 </build>
1125 </image>
1126 </images>
1127 </configuration>
1128 <executions>
1129 <execution>
1130 <id>clean-images</id>
1131 <phase>pre-clean</phase>
1132 <goals>
1133 <goal>remove</goal>
1134 </goals>
1135 <configuration>
1136 <removeAll>true</removeAll>
1137 <image>onap/sdc-backend,onap/sdc-backend-init</image>
1138 </configuration>
1139 </execution>
1140
1141 <execution>
1142 <id>generate-images</id>
1143 <phase>install</phase>
1144 <goals>
1145 <goal>build</goal>
1146 </goals>
1147 </execution>
1148
1149 <execution>
1150 <id>push-images</id>
1151 <phase>deploy</phase>
1152 <goals>
1153 <goal>push</goal>
1154 </goals>
1155 <configuration>
1156 <image>onap/sdc-backend,onap/sdc-backend-init</image>
1157 </configuration>
1158 </execution>
1159 </executions>
1160 </plugin>
1161 </plugins>
1162 </build>
1163 </profile>
1164 </profiles>
MichaelMorris580e5362020-02-08 22:55:49 +00001165</project>